Quiz Stuff

Quiz 4; September 14; 3'30"; 4×½+1 points; 3 points total

  1. If a function f has two Int parameters and returns a Char, what is the type of f?
  2. What is the type of the "cons" (:) operator?
  3. Briefly describe the bindings created by the following:
    a:b:c = [1,2,3,4]
    
  4. Fill in the blank with any pattern that will match the right-hand side:
    ___________ = [1]++[2,3]
    
  5. In Java we might generate some "ASCII art" (like charbox in the slides) with prints inside nested loops but in Haskell we'll use a different approach. Briefly describe the approach we'll be using in Haskell.

EC: In Monday's lecture, whm tried 'printN 5.5'. How many lines of output were produced?