
CS 2335 Final Exam
Fall 2001
Name: _______________________________________
Gt Number: ___________________________________
This exam counts for 10% of your course grade and covers the testing phase of the course.
Part I. (2 Points each, 20 Points Total) Multiple Choice. Select the best, most correct answer
to each question.
1. Equivalence partition testing assumes:
a. That the potential input can be separated into sets where if any member in a set
succeeds, all the members will succeed.
b. That the source code can be divided into basic blocks that execute contiguously.
c. That test cases are derived from the specification.
d. Both a and c are correct.
2. The difference between Halsteads and McCabes complexity measure is:
a. McCabe believed the number of operators and operands in a program determined
complexity, while Halstead believed it was the number of decision points.
b. McCabe believed that complexity was determined by whether the program was
comparable to a CS2130 lab, while Halstead believed that the complexity should be
compared to UGA graduate labs.
c. McCabe believed that the number of decisions (predicates) determined the
complexity, while Halstead believed the number of operands and operators in a
module determined it.
d. McCabe believed that complexity was determined by analysis of the algorithm used in
a module, while Halstead believed it was solely determined by characteristics of the
source code.
3. If test cases are determined by analysis of the source code, the test technique is:
a. Blackbox
b. Whitebox
c. Mutation
d. Random
4. If the test cases are derived by analysis of the requirements (specifications), this is:
a. Blackbox
b. Whitebox
c. Mutation
d. Random