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

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

On November 6, 1528, conquistador Alvar Nunez Cabeza de Vaca became the first European to set foot in what is now Texas.

4a. Several people claimed to be the first to discover Texas. Write a method that, given an array t of years when each of them reaches Texas first and the array n of their names, finds the name of the person who arrived in Texas first. 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 inTexas consisting of 3 elements 1530, 1528, and 1529, and names with elements V, N, and C.

4c. Trace step-by-step how the piece of code you wrote in Part 4a will find the name of the first European to arrive in Texas. Hint: Nunez (N) is the one.

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

5b. Describe the main rules for testing.