CS 2401 Quiz #1

Date: Monday, August 31, 2009.

1. Let an array labSize[i] contain number of students in each lab section, and let ta[i] contains the name of the TA who teaches the i-th section. Write down a piece of code that finds the name of the TA who teaches the smallest lab section. Trace this code on an example of 3 lab sections taught by Cuauhtemoc, Manali, and Rafael, with lab section containing 17, 20, and 16 students.















































Turn over, please.

2. Please answer questions about the reading assignment:

2a. can an array be 2-dimensional?

2b. can an array be 3-dimensional?

2c. is it possible to have a 2-dimensional array with rows of different size?