NEW
Font size
WorksheetsTesting CH3 + CH4
Total questions: 11
Worksheet time: 33mins
Which of the following is a benefit of static analysis?
a. Defects can be identified that might not be caught by dynamic testing
b. Early defect identification requires less documentation
c. Early execution of the code provides a gauge of code quality
d. Tools are not needed because reviews are used instead of executing code
Which of the following techniques is a form of static testing?
a. Error guessing
b. Automated regression testing
c. Providing inputs and examining the resulting outputs
d. Code review
If a review session is led by the author of the work product, what type of review is it?
a. Ad hoc
b. Walkthrough
c. Inspection
d. Audit
What is the main difference between static and dynamic testing?
a. Static testing is performed by developers; dynamic testing is performed by testers
b. Manual test cases are used for dynamic testing; automated tests are used for static testing
c. Static testing must be executed before dynamic testing
d. Dynamic testing requires executing the software; the software is not executed during static testing
In a formal review, which role is normally responsible for documenting all the open issues?
a. The facilitator
b. The author
c. The scribe
d. The manager
How is statement coverage determined?
a. Number of test decision points divided by the number of test cases
b. Number of decision outcomes tested divided by the total number of executable statements
c. Number of possible test case outcomes divided by the total number of function points
d. Number of executable statements tested divided by the total number of executable statements
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. 1
b. 2
c. 5
d. Unknown with this information
What is error guessing?
a. A testing technique used to guess where a developer is likely to have made a mistake
b. A technique used for assessing defect metrics
c. A development technique to verify that all error paths have been coded
d. A planning technique used to anticipate likely schedule variances due to faults
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. 6
b. 8
c. 10
d. 12
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. 8
b. 10
c. 12
d. 14
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. 1
b. 2
c. 4
d. 5
