## CS 1401, Quiz #5

**Date:** Monday, October 1, 2007

**Name:** ____________________________________________________________

**Class section** (9:30 am or 11:30 am): _______________________________
1. For each of the following topics,
write "yes" or "no" depending on whether this topic is covered in
Chapter 5, the chapter that you were supposed to read before the class:

for loops

2-dimensional arrays

while loops

linked lists

2. Draw truth tables for "and" and "or" and use these truth tables
to find the truth value of the statement
(('a' > 'b') || ('c' > 'b')) && (2 * 2 == 4).

3. Write down a statement that, given three real numbers *a*,
*b*, and *x*, prints "in"
if *x* is strictly between
*a* and *b* (i.e., if *a < x < b*) and "out" otherwise.