- Use a full sheet of 8½ x 11" paper. (Half sheet? Half credit!)
- Put your last name and first initial in the far upper left hand corner!
- No need to write out questions.
- Numbering responses may help you avoid overlooking a question; it's ok to go ahead and pre-number your sheet.
- Parameters: 3'30"; 4×½+1 points; 3 points total plus a ½-point EC
- Can everybody see this line?
Quiz 4; September 14; 3'30"; 4×½+1 points; 3 points total
- If a function
f
has two Int
parameters and returns a Char
, what is the type of f
?
- What is the type of the "cons" (
:
) operator?
- Briefly describe the bindings created by the following:
a:b:c = [1,2,3,4]
- Fill in the blank with any pattern that will match the right-hand side:
___________ = [1]++[2,3]
- In Java we might generate some "ASCII art" (like
charbox
in the slides) with print
s 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?