- 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.
- Time: 3:00; five regular questions plus two EC questions
- Can everybody see this line?
Quiz 2; January 23; 3:00 minutes; one point per question
- What is one characteristic of the imperative programming paradigm?
- Write a Java expression that has a side effect.
- Write a Python expression that has a side effect.
- In a Haskell expression, what has higher precedence than any operator?
- 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'