Quiz 2 Information and Review Problems

The quiz will focus on the material that we covered in lecture from chapters 3-6 of the textbook. The corresponding lecture notes begin with the notes on methods with parameters and return values and end with the notes on file processing.

You will have the full 50 minutes of class for the quiz. You may use one 3-inch by 5-inch index card of handwritten notes.

You should be sure to review all of the relevant material, including problem sets 4-6.

The following Self-Check Problems from the textbook are good review problems for the quiz; the answers are in the back of the book.

Chapter 3 (pp. 165-170): 1, 3, 5, 7, 9, 12, 13, 16, 19 [note: for question 12, there is a typo in the last expression. It should be:
str2.toLowerCase().substring(9, 13) + str3.substring(18, str3.length() - 7)]

Chapter 4 (pp. 260-266): 1, 4, 6, 9, 12, 13, 26

Chapter 5 (pp. 318-324): 1, 2, 3, 11, 12, 13, 16, 17, 22, 23

Chapter 6 (pp. 369-370): 3, 7, 8, 9, 11, 13

If you get a problem wrong, try to figure out what you did wrong (asking for help as needed), and then see if there's another similar problem that you can try. For example, question 2 from Chapter 3 is similar to question 1.

Feel free to email us (cs111-staff @ cs . bu . edu) with any questions.