Podcast
Questions and Answers
In computing, a compiler is a computer program that
In computing, a compiler is a computer program that
- is used to compile big sets of data.
- has been used in the early days of computing to work with piles of punched cards.
- translates source code from a high-level programming language to a lower level language to create an executable program. (correct)
In the imperative programming paradigm the programmer.
In the imperative programming paradigm the programmer.
- gives explanations of the program's logic in a natural language interspersed with snippets of traditional source code.
- instructs the machine how to change its state. (correct)
- declares properties of the desired result, but not how to compute it.
Purely functional languages don't have loops, because...
Purely functional languages don't have loops, because...
- loops are inefficient.
- loops use too much memory.
- they don't have mutable variables. (correct)
All but one of the following Haskell expressions are equivalent. Which one is different?
All but one of the following Haskell expressions are equivalent. Which one is different?
What makes a recursive function definition tail recursive?
What makes a recursive function definition tail recursive?
Which technique can be used to transform a recursive function definition into an equivalent tail recursive function definition?
Which technique can be used to transform a recursive function definition into an equivalent tail recursive function definition?
Evaluate the Haskell expression foldr (-) 1 [2,3]
Evaluate the Haskell expression foldr (-) 1 [2,3]
In Haskell a list [1, 2, 3] is just syntactic sugar for
In Haskell a list [1, 2, 3] is just syntactic sugar for
The worst case time complexity to access a random element is...
The worst case time complexity to access a random element is...
Which of the following Haskell data type definitions uses type recursion?
Which of the following Haskell data type definitions uses type recursion?