GoConqr has a new look! Let us know what you think.

Quiz

Survey of Programming Languages 3

Grant King 20 questions

Take the quiz

Questions in this quiz (20)

  1. 1What does a lambda expression specify?
    1. AA named function that performs some behavior.
    2. BA variable assignment.
    3. CA nameless function that performs some behavior.
    4. DFunction composition of two unrelated functions.
  2. 2In what common data structure are LISP lists normally stored?
    1. AAn array.
    2. BA multidimensional cubic table structure.
    3. CA tree structure in which each node can have any amount of children
    4. DA linked list structure in which each node has two pointers
  3. 3Which of the following is not true regarding the original Scheme programming language mentioned in the Text Book?
    1. AThe Scheme language is a dialect of LISP.
    2. BComplex numbers are supported in Scheme.
    3. CScheme like LISP before it uses dynamic scoping
    4. DScheme requires that the scheme language processing systems convert all tail recursive functions to iterations.
  4. 4What data type(s) were parts of the original LISP?
    1. AAtoms and lists
    2. BLists and strings
    3. CIntegers, lists, arrays, strings
    4. DLists
  5. 5If a function is called tail recursive then?
    1. AIt contains at least one parameter.
    2. BThe last statement with the function returns a constant making it easier to convert to an iterative statement.
    3. CThe last statement within the function is a recursive call to the function itself.
    4. DThe function is one of two functions which together make a recursive function.
  6. 6What does the following expression in Scheme evaluate to (- 5 (* 6 3))?
    1. A-13
    2. B13
    3. C6
    4. D3
  7. 7What was the type of scoping used in the original LISP?
    1. ADynamic
    2. BStatic
    3. CNA, scope does not make sense in the original LISP
    4. DLexical
  8. 8How do Functional Programming languages handle I/O?
    1. AThey are a fundamental part of any programming language and cannot be avoided.
    2. BInput and output operations change the state a program and therefore cannot be part of any pure functional programming language.
    3. CTypical support should exist for I/O as it us a fundamental part of any pure functional programming language.
    4. DThey handle them the same way as Imperative Programming Languages do.
  9. 9The Apply-to-All Functional Form is achieved in Scheme by using the following keyword:
    1. Acompose
    2. Bmap
    3. CDEFINE
    4. DLET
  10. 10Which of the following is not a characteristic of Purely Functional Programming Language?
    1. AThey are designed to mimic mathematical functions.
    2. BThey do not use variables or assignment statements.
    3. CThey do not always produce the same results when executing the same function with the same parameters.
    4. DThey must specify repetition through recursion rather than iteration.

Information

Description
Quiz on Survey of Programming Languages 3, created by Grant King on 12/10/2017.
Language
English
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?