- 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 of the paper, where a staple would hit it. (It helps when sorting quizzes!)
Mitchell, W.
- 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.
- Three minutes; six ½-point questions, plus one extra credit question.
- Can everybody see this line?
Quiz 2, August 29, 2022
Three minutes; six ½-point questions, plus one EC question
- Does
System.out.println(3+4)
have a side effect? (yes/no)
- Write a Java expression that has both a side effect and a type of
String
.
- Write a Python expression that has type
list
and no side effect.
- In Java, given
int i = 5;
, what is the value and type of i++
?
- Write a Python expression with a value of
None
.
- What are the three aspects of expressions discussed on Haskell slides 30-40?
EC ½ pt: What is the output of print(print("print"))
?