ISTQB Foundation Sample Question Paper No. 5
1. An input field takes the year of birth between 1900 and 2004
The boundary values for testing this field are
a. 0,1900,2004,2005
b. 1900, 2004
c. 1899,1900,2004,2005
d. 1899, 1900, 1901,2003,2004,2005
2. Which one of the following are non-functional testing methods?
a. System testing
b. Usability testing
c. Performance testing
d. Both b & c
3. Which of the following tools would be involved in the automation of regression test?
a. Data tester
b. Boundary tester
c. Capture/Playback
d. Output comparator.
4. Incorrect form of Logic coverage is:
a. Statement Coverage
b. Pole Coverage
c. Condition Coverage
d. Path Coverage
5. Which of the following is not a quality characteristic listed in ISO 9126 Standard?
a. Functionality
b. Usability
c. Supportability
d. Maintainability
6. To test a function, the programmer has to write a _________, which calls the function to be tested and passes it test data.
a. Stub
b. Driver
c. Proxy
d. None of the above
7. Boundary value testing
a. Is the same as equivalence partitioning tests
b. Test boundary conditions on, below and above the edges of input and output equivalence classes
c. Tests combinations of input circumstances
d. Is used in white box testing strategy
8. Pick the best definition of quality
a. Quality is job one
b. Zero defects
c. Conformance to requirements
d. Work as designed
9. Fault Masking is
a. Error condition hiding another error condition
b. Creating a test case which does not reveal a fault
c. Masking a fault by developer
d. Masking a fault by a tester
10. One Key reason why developers have difficulty testing their own work is :
a. Lack of technical documentation
b. Lack of test tools on the market for developers
c. Lack of training
d. Lack of Objectivity
11. During the software development process, at what point can the test process start?
a. When the code is complete.
b. When the design is complete.
c. When the software requirements have been approved.
d. When the first code module is ready for unit testing
12. In a review meeting a moderator is a person who
a. Takes minutes of the meeting
b. Mediates between people
c. Takes telephone calls
d. Writes the documents to be reviewed
13. Given the Following program
IF X < Y
THEN Statement 1;
ELSE IF Y >= Z
THEN Statement 2;
END
McCabe’s Cyclomatic Complexity is :
a. 2
b. 3
c. 4
d. 5
14. How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment? Assume that the two conditions are independent of each other : -
…………
if (Condition 1)
then statement 1
else statement 2
fi
if (Condition 2)
then statement 3
fi
…………
a. 2 Test Cases
b. 3 Test Cases
c. 4 Test Cases
d. Not achievable
15. Acceptance test cases are based on what?
a. Requirements
b. Design
c. Code
d. Decision table
16. “How much testing is enough?”
a. This question is impossible to answer
b. This question is easy to answer
c. The answer depends on the risk for your industry, contract and special requirements
d. This answer depends on the maturity of your developers
17. A common test technique during component test is
a. Statement and branch testing
b. Usability testing
c. Security testing
d. Performance testing
18. Statement Coverage will not check for the following.
a. Missing Statements
b. Unused Branches
c. Dead Code
d. Unused Statement
19. Independent Verification & Validation is
a. Done by the Developer
b. Done by the Test Engineers
c. Done By Management
d. Done by an Entity Outside the Project’s sphere of influence
20. Code Coverage is used as a measure of what ?
a. Defects
b. Trends analysis
c. Test Effectiveness
d. Time Spent Testing
Answers
1 c
2 d
3 c
4 b
5 c
6 b
7 b
8 c
9 a
10 d
11 c
12 b
13 b
14 c
15 a
16 c
17 a
18 a
19 d
20 c
The boundary values for testing this field are
a. 0,1900,2004,2005
b. 1900, 2004
c. 1899,1900,2004,2005
d. 1899, 1900, 1901,2003,2004,2005
2. Which one of the following are non-functional testing methods?
a. System testing
b. Usability testing
c. Performance testing
d. Both b & c
3. Which of the following tools would be involved in the automation of regression test?
a. Data tester
b. Boundary tester
c. Capture/Playback
d. Output comparator.
4. Incorrect form of Logic coverage is:
a. Statement Coverage
b. Pole Coverage
c. Condition Coverage
d. Path Coverage
5. Which of the following is not a quality characteristic listed in ISO 9126 Standard?
a. Functionality
b. Usability
c. Supportability
d. Maintainability
6. To test a function, the programmer has to write a _________, which calls the function to be tested and passes it test data.
a. Stub
b. Driver
c. Proxy
d. None of the above
7. Boundary value testing
a. Is the same as equivalence partitioning tests
b. Test boundary conditions on, below and above the edges of input and output equivalence classes
c. Tests combinations of input circumstances
d. Is used in white box testing strategy
8. Pick the best definition of quality
a. Quality is job one
b. Zero defects
c. Conformance to requirements
d. Work as designed
9. Fault Masking is
a. Error condition hiding another error condition
b. Creating a test case which does not reveal a fault
c. Masking a fault by developer
d. Masking a fault by a tester
10. One Key reason why developers have difficulty testing their own work is :
a. Lack of technical documentation
b. Lack of test tools on the market for developers
c. Lack of training
d. Lack of Objectivity
11. During the software development process, at what point can the test process start?
a. When the code is complete.
b. When the design is complete.
c. When the software requirements have been approved.
d. When the first code module is ready for unit testing
12. In a review meeting a moderator is a person who
a. Takes minutes of the meeting
b. Mediates between people
c. Takes telephone calls
d. Writes the documents to be reviewed
13. Given the Following program
IF X < Y
THEN Statement 1;
ELSE IF Y >= Z
THEN Statement 2;
END
McCabe’s Cyclomatic Complexity is :
a. 2
b. 3
c. 4
d. 5
14. How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment? Assume that the two conditions are independent of each other : -
…………
if (Condition 1)
then statement 1
else statement 2
fi
if (Condition 2)
then statement 3
fi
…………
a. 2 Test Cases
b. 3 Test Cases
c. 4 Test Cases
d. Not achievable
15. Acceptance test cases are based on what?
a. Requirements
b. Design
c. Code
d. Decision table
16. “How much testing is enough?”
a. This question is impossible to answer
b. This question is easy to answer
c. The answer depends on the risk for your industry, contract and special requirements
d. This answer depends on the maturity of your developers
17. A common test technique during component test is
a. Statement and branch testing
b. Usability testing
c. Security testing
d. Performance testing
18. Statement Coverage will not check for the following.
a. Missing Statements
b. Unused Branches
c. Dead Code
d. Unused Statement
19. Independent Verification & Validation is
a. Done by the Developer
b. Done by the Test Engineers
c. Done By Management
d. Done by an Entity Outside the Project’s sphere of influence
20. Code Coverage is used as a measure of what ?
a. Defects
b. Trends analysis
c. Test Effectiveness
d. Time Spent Testing
Answers
1 c
2 d
3 c
4 b
5 c
6 b
7 b
8 c
9 a
10 d
11 c
12 b
13 b
14 c
15 a
16 c
17 a
18 a
19 d
20 c
I believe that there is something wrong with the answer to question 14.
ReplyDeleteIt says "...sequences of statements (PATHS)..." and to my understanding that code fragment has 4 of them :
Statement_1, exit
(Condition_1 == TRUE, Condition_2 == FALSE)
Statement_2, exit
(Condition_1 == FALSE, Condition_2 == FALSE)
Statement_1, Statement_3, exit
(Condition_1 == TRUE, Condition_2 == TRUE)
Statement_2, Statement_3, exit
(Condition_1 == FALSE, Condition_2 == TRUE)
Thus requiring 4 tests. Answer C.
If it was regarding statement coverage - then only two tests would suffice, for example :
Statement_2, exit
(Condition_1 == FALSE, Condition_2 == FALSE)
Statement_1, Statement_3, exit
(Condition_1 == TRUE, Condition_2 == TRUE)
Please tell me if I'm wrong.
Hello Bartosz,
DeleteThe typo for the question 14 is corrected with the correct option in the answer section.
Thanks for pointing.
Sincerely,
This comment has been removed by the author.
DeleteI think for the given example the following answers are correct:
ReplyDeletePath coverage - 4 tests.
Decision/Branch coverage - 2 tests.
Statement coverage - 1 test.
Bartosz, the "statement coverage" you have introduced is a "Decision/Branch coverage".
But as to path coverage I agree with you it should be 4 tests.
Thanks,Artak
Hello Artak,
DeleteThe typo for the question 14 is corrected with the correct option in the answer section.
Thanks for the explanation.
Sincerely,
This comment has been removed by the author.
DeletePC=4
DeleteDC=3
SC=2
for Q1 the correct answer is D.
ReplyDeleteHello Florin,
DeleteThe correct answer for question#1 is C.
As you can see in the question it will accept numbers between 1900 to 2004.
So the MOST boundary values that covers will be: 1899,1900,2004,2005.
That is what we check in 'Boundary Value' testing.
According to ISTQB:
Boundary value analysis (BVA) is based on testing at the boundaries between partitions. If you have ever done 'range checking', you were probably using the boundary value analysis technique, even if you weren't aware of it. Note that we have both valid boundaries (in the valid partitions) and invalid boundaries (in the invalid partitions).
As an example, consider a printer that has an input option of the number of copies to be made, from 1 to 99.
To apply boundary value analysis, we will take the minimum and maximum (boundary) values from the valid partition (1 and 99 in this case) together with copies to be made, from 1 to 99.
The first or last value respectively in each of the invalid partitions adjacent to the valid partition (0 and 100 in this case). In this example we would have three equivalence partitioning tests (one from each of the three partitions) and four boundary value tests.
So in the end we get: 0,1,99,100
Sincerely,
yes.. but also the BV with 3 values are correctly. So in our exercise it is not mentioned what type of BV we use. Also a comment it takes me the attention: 'If you use the two-value approach together
Deletewith equivalence partitioning, you are equally effective and slightly more
efficient than the three-value approach.' But in our exercise it is not mentioned the EP
This comment has been removed by the author.
ReplyDeleteso for Q1 which is the correct answer???According to Q7 it should be D?????
ReplyDeleteyeah answer should be D
DeleteWhy are there only 20 questions for this test?
ReplyDelete