CS 1401, Quiz 11 (based on Test 3), MW 12-1:20 version

Date: Wednesday, November 13, 2013
Name (please type legibly, ideally in block letters): ______________________________________________________________________

4a. Write a method that, given an array a of ages of different students and the array n of their names, finds the name of the youngest student. Assume the arrays have been declared, initialized, and have the same non-zero length.

4b. To check the correctness of your method, write a piece of code that defines new arrays age consisting of 3 elements 23, 20, and 25, and names with elements K, L, and V.

4c. Trace step-by-step how the piece of code you wrote in Part 4a will find the name of the youngest student. Hint: L is the youngest, he is only 20 years old.

5a. Describe what is white-box and black-box testing.

5b. Describe the main rules for testing.