Thursday, December 24, 2009

Testing Multiple Choice Questions-7

Debugging Multiple Choice Questions

1
Debugging is a two-step process that begins when you find an error as a result of a successful test case. Step 1 is the determination of the exact nature and location of the suspected error within the program. Step 2 consists of .......

A) viewing the error
B) locating the error
C) fixing the error
D) filing the error

2
Debugging schemes includes ......

A) Brute Force
B) Induction
C) Deduction
D) Backtracking
E) Testing

3
....... establishes the existence of errors. ......... locates and corrects the errors.

A) DEBUGGING, TESTING
B) TESTING, DEBUGGING
C) Testing, Verifying
D) Testing, Validation

4
....... take memory dumps, do run-time tracing, put print statements everywhere, you will be swamped with data!!

A) Brute force
B) Induction
C) Backtracking
D) Testing

5
........ Begin at the point where the symptom occurs…… trace backwards step by step, by hand, Only feasible for small programs

A) Brute force
B) Induction
C) Backtracking
D) Testing

6
........ uses deduction to list all possible causes devise tests to eliminate them one by one
(try to find the simplest input that shows the symptom)
A) Brute force
B) Induction
C) Deduction
D) Cause elimination

7
The biggest problem with the brute-force methods is that they ignore the most powerful debugging tool in existence, a well trained and disciplined human brain.

A) True
B) False

8
Testing and subsequent debugging can account for ......... of software development effort.

A) 5-10 percent
B) 10-20 percent
C) 30-40 percent
D) 80-90 percent

9
Debugging occurs as a consequence of unsuccessful testing.

A) True
B) False

10
.......... is a fairly common debugging approach that can be used successfully in small programs.(the simplest input that shows the symptom)

A) Brute force
B) Induction
C) Backtracking
D) Cause elimination

1) c, 2) a,b,c,d,e 3) b, 4) a, 5) c, 6) d, 7) a, 8) c, 9) b, 10) c