Quiz Stuff

Quiz 2, January 22, 2018
2 minutes; 1 + ½ + ½ + ½ + ½ + 1 points; 4 (corrected; was 3) points total

  1. What are the three aspects of an expression that we often consider?
  2. What operation in Haskell has higher precedence than any operator?
  3. How would the following type be read aloud? f :: Int -> Bool
  4. Name one characteristic of the functional paradigm.
  5. What is an example of (1) a Haskell type (2) a Haskell type class?
  6. Tell me something you learned from the flipped lecture on paradigms.
EC ½ point: What does REPL stand for?

Answers

  1. What are the three aspects of an expression that we often consider?
    Value, type, and side-effect (reversed vest: t-se-v)
  2. What operation in Haskell has higher precedence than any operator?
    function call
  3. How would the following type be read aloud? f :: Int -> Bool
    "f has type int to bool"
  4. Name one characteristic of the functional paradigm.
    Functions that are like mathematical functions; no side-effects; functions are values; recursion in place of looping.
  5. What is an example of (1) a Haskell type (2) a Haskell type class?
    Types: Int, Char, Bool
    Classes: Num, Fractional, Bounded, Eq, Ord
  6. Tell me something you learned from the flipped lecture on paradigms.
    A paradigm provides a conceptual framework for understanding and solving problems; a paradigm has a world view, vocabulary, and a set of techniques for solving problems.