wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Testing CH3 + CH4

Total questions: 11

Worksheet time: 33mins

Name
Class
Date
1.

Which of the following is a benefit of static analysis?

a)

a. Defects can be identified that might not be caught by dynamic testing

b)

b. Early defect identification requires less documentation

c)

c. Early execution of the code provides a gauge of code quality

d)

d. Tools are not needed because reviews are used instead of executing code

2.

Which of the following techniques is a form of static testing?

a)

a. Error guessing

b)

b. Automated regression testing

c)

c. Providing inputs and examining the resulting outputs

d)

d. Code review

3.

If a review session is led by the author of the work product, what type of review is it?

a)

a. Ad hoc

b)

b. Walkthrough

c)

c. Inspection

d)

d. Audit

4.

What is the main difference between static and dynamic testing?

a)

a. Static testing is performed by developers; dynamic testing is performed by testers

b)

b. Manual test cases are used for dynamic testing; automated tests are used for static testing

c)

c. Static testing must be executed before dynamic testing

d)

d. Dynamic testing requires executing the software; the software is not executed during static testing

5.

In a formal review, which role is normally responsible for documenting all the open issues?

a)

a. The facilitator

b)

b. The author

c)

c. The scribe

d)

d. The manager

6.

How is statement coverage determined?

a)

a. Number of test decision points divided by the number of test cases

b)

b. Number of decision outcomes tested divided by the total number of executable statements

c)

c. Number of possible test case outcomes divided by the total number of function points

d)

d. Number of executable statements tested divided by the total number of executable statements

7.

If you have a section of code that has one simple IF statement, how many tests will be needed to achieve 100% decision coverage?

a)

a. 1

b)

b. 2

c)

c. 5

d)

d. Unknown with this information

8.

What is error guessing?

a)

a. A testing technique used to guess where a developer is likely to have made a mistake

b)

b. A technique used for assessing defect metrics

c)

c. A development technique to verify that all error paths have been coded

d)

d. A planning technique used to anticipate likely schedule variances due to faults

9.

You are testing a machine that scores exam papers and assigns grades. Based on the score achieved the grades are as follows: 1-49 = F, 50-59 = D-, 60-69 = D, 70-79 = C, 80-89 = B, 90-100=A If you apply equivalence partitioning, how many test cases will you need to achieve minimum test coverage?

a)

a. 6

b)

b. 8

c)

c. 10

d)

d. 12

10.

You are testing a machine that scores exam papers and assigns grades. Based on the score achieved the grades are as follows: 1-49 = F, 50-59 = D-, 60-69 = D, 70-79 = C, 80-89 = B, 90-100=A If you apply two-value boundary value analysis, how many test cases will you need to achieve minimum test coverage?

a)

a. 8

b)

b. 10

c)

c. 12

d)

d. 14

11.

You have been given the following requirement: A user must log in to the system with a valid username and password. If they fail to enter the correct combination three times, they will receive an error and will have to wait 10 minutes before trying again. The test terminates when the user successfully logs in. How many test cases are needed to provide 100% state transition coverage?

a)

a. 1

b)

b. 2

c)

c. 4

d)

d. 5