Quiz Stuff

Quiz 2; January 23; 3:00 minutes; one point per question

  1. What is one characteristic of the imperative programming paradigm?
  2. Write a Java expression that has a side effect.
  3. Write a Python expression that has a side effect.
  4. In a Haskell expression, what has higher precedence than any operator?
  5. As ghci would display it, what is the type of a function that accepts a Char argument and returns a Bool? (like isUpper)
EC ½ point: Write a Python expression that has both a side effect and a type of int.
EC ½ point: What is the type of the following Haskell expression?
not 'p' == toLower 'P'