0% found this document useful (0 votes)
62 views3 pages

ToSend 01-1

This document contains questions and answers from a quality control exam. It tests knowledge of different types of structural testing techniques like statement coverage and decision coverage. It also addresses best practices for regression testing after a defect is fixed. The minimum number of test cases needed for 100% coverage of different structures is discussed.

Uploaded by

Brahim Ben Saada
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views3 pages

ToSend 01-1

This document contains questions and answers from a quality control exam. It tests knowledge of different types of structural testing techniques like statement coverage and decision coverage. It also addresses best practices for regression testing after a defect is fixed. The minimum number of test cases needed for 100% coverage of different structures is discussed.

Uploaded by

Brahim Ben Saada
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

QCM4

Q6. Which of the following provides the weakest level of structural coverage?
A. Statement coverage
B. Decision coverage
C. Condition coverage
D. Multiple condition coverage

Correct Answer: A

Q10. Which input combinations will a knowledgeable tester MOST LIKELY use to uncover
potential errors when testing a surname field?

A) Cameroon, de la Cruz, and Patil


B) Go, Stephanopoulos, and Ramachandran
C) Smit, Smyth, and Smithsonian
D) O’Brien, Zeta‐Jones, and Young Paw
Correct Answer: D

Q11. To test an input field that accepts a two‐digit day based on a particular month, which
data set demonstrates boundary value analysis?

A. 0, 1, 16, 31, and 100


B. 1, 27, 28, 30, and 31
C. 2, 26, 27, 29, and 30
D. ‐1, 0, 15, 32, and 99

Correct Answer: B

Q13. Consider the following sequence of events in the project, in which you work as a tester:

1. Execution of Test Case 001 for component X—test failed


2. Execution of Test Case 002 for component X—test passed
3. Execution of Test Case 003 for component Y—test passed
4. Fix done in component X
5. Execution of Test Case 001 for component X—test passed
6. Execution of Test Case 003 for component Y—test passed
7. Execution of Test Case 004 for component Y—test failed

A) Confirmation test only in step 6, regression test only in step 5


B) Confirmation test only in step 5, regression test only in step 6
C) No confirmation tests, regression tests only in steps 5, 6 and 7
D) Confirmation tests only in steps 5, 6, and 7, no regression tests

Correct Answer: B

Q14. The following program part is given


IF (condition A) or (condition B)
then DO C
END IF

How many test cases are necessary in order to achieve 100% decision coverage?
A. 4
B. 2
C. 1
D. 3

Correct Answer: B

Q15. Given the following two programs:

Program X:

if A > B then

execute Function_A( )

else

execute Function_B ( )

endif

execute Function_C ( )

Program Y:

if D > E then

execute Function_D ( )

endif

execute Function_E ( )

execute Function_F ( )

Which one of the following is a CORRECT statement about the programs?

A. The minimum number of test cases to achieve 100% statement coverage of Program X will
cause all functions to be executed only 1 time.

B. The minimum number of test cases to achieve 100% decision coverage of Program X will cause
all functions to be executed only 1 time.

C. The minimum number of test cases to achieve 100% statement coverage of Program Y will cause
all functions to be executed only 1 time.
D. The minimum number of test cases to achieve 100% decision coverage of Program Y will cause
all functions to be executed only 1 time.

Correct Answer: C

Q21. A test engineer finds a defect while testing. After the developer has fixed the defect, the
test engineer decides to re‐run a complete section of the tests. Which of the following is
correct?
A. The test engineer should not re‐run the tests, as they have already been run, and result recorded
B. The test engineer should re‐run the tests, in order to ensure that new defects have not been
introduced by the fix
C. The test engineer should re‐run the tests, because the defect show that the test cases need to be
updated
D. The test engineer should not re‐run the tests, they should be part of the developer tests.

Correct Answer: B

Q22. In which of the following test documents would you expect to find test exit‐criteria
described?
A. Requirements specification
B. Test design specification
C. Test plan
D. Project plan

Correct Answer: C

Q26. Consider the following Pseudo code:


If (A>B) THEN: If (A>C)
THEN: if (A>D)
THEN: If (A>E)
THEN: Print "A is huge"
End IF
End IF
End IF
End IF

How many minimum test cases are required to cover 100% Statement coverage and Decision
coverage?

A. 1 for Statement, 5 for Decision


B. 2 for Statement, 5 for Decision
C. 1 for Statement, 2 for Decision
D. 5 for Statement, 1 for Decision

Correct Answer: A

You might also like