This online ISTQB practice exam (mock test) is designed to test your knowledge of Software Testing – white box testing techniques – questions with answers.
ISTQB Sample Exam - White Box Testing
Quiz-summary
0 of 19 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
Information
This online Scrum quiz contains 30 questions to test your knowledge of Agile Methodology and the Scrum Framework.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 19 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- Answered
- Review
-
Question 1 of 19
1. Question
Analyse the following highly simplified procedure:
Ask: “What type of ticket do you require, single or return?”
IF the customer wants ‘return’
Ask: “What rate, Standard or Cheap-day?”
IF the customer replies ‘Cheap-day’
Say: “That will be £11:20”
ELSE
Say: “That will be £19:50”
ENDIF
ELSE
Say: “That will be £9:75”
ENDIFNow decide the minimum number of tests that are needed to ensure that all the questions have been asked, all combinations have occurred and all replies given.
Correct
Incorrect
-
Question 2 of 19
2. Question
Which of the following statements is NOT correct?
Correct
Incorrect
-
Question 3 of 19
3. Question
Which of the following is NOT a white box technique?
Correct
Incorrect
-
Question 4 of 19
4. Question
An important benefit of code inspections is that they:
Correct
Incorrect
-
Question 5 of 19
5. Question
Given the following code, which statement is true about the minimum number of test cases required for full statement and branch coverage?
Read p
Read q
IF p+q > 100 THEN
Print “Large”
ENDIFIF p > 50 THEN
Print “p Large”
ENDIFCorrect
Incorrect
-
Question 6 of 19
6. Question
Consider the following statements:
i. 100% statement coverage guarantees 100% branch coverage.
ii. 100% branch coverage guarantees 100% statement coverage.
iii. 100% branch coverage guarantees 100% decision coverage.
iv. 100% decision coverage guarantees 100% branch coverage.
v. 100% statement coverage guarantees 100% decision coverage.Correct
Incorrect
-
Question 7 of 19
7. Question
What can static analysis NOT find?
Correct
Incorrect
-
Question 8 of 19
8. Question
Which of the following techniques is NOT a black box technique?
Correct
Incorrect
-
Question 9 of 19
9. Question
If the pseudocode below were a programming language ,how many tests are required to achieve 100% statement coverage?
1. If x=3 then
2. Display_messageX;
3. If y=2 then
4. Display_messageY;
5. Else
6. Display_messageZ;
7. Else
8. Display_messageZ;Correct
Incorrect
-
Question 10 of 19
10. Question
Which of the following tools would you use to detect a memory leak?
Correct
Incorrect
-
Question 11 of 19
11. Question
Incorrect form of Logic coverage is:
Correct
Incorrect
-
Question 12 of 19
12. Question
Which of the following is the odd one out?
Correct
Incorrect
-
Question 13 of 19
13. Question
Given the Following program
IF X < Y THEN Statement 1; ELSE IF Y >= Z
THEN Statement 2;
ENDMcCabe’s Cyclomatic Complexity is :
Correct
Incorrect
-
Question 14 of 19
14. Question
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
…………Correct
Incorrect
-
Question 15 of 19
15. Question
Given the following code, which statement is true about the minimum number of test cases required for full statement and branch coverage?
Read p
Read q
IF p+q > 100 THEN
Print “Large”
ENDIF
IF p > 50 THEN
Print “p Large”
ENDIFCorrect
Incorrect
-
Question 16 of 19
16. Question
Code Coverage is used as a measure of what?
Correct
Incorrect
-
Question 17 of 19
17. Question
Statement Coverage will not check for the following:
Correct
Incorrect
-
Question 18 of 19
18. Question
Consider the following statements:
i. 100% statement coverage guarantees 100% branch coverage.
ii. 100% branch coverage guarantees 100% statement coverage.
iii. 100% branch coverage guarantees 100% decision coverage.
iv. 100% decision coverage guarantees 100% branch coverage.
v. 100% statement coverage guarantees 100% decision coverage.Correct
Incorrect
-
Question 19 of 19
19. Question
Unreachable code would best be found using:
Correct
Incorrect
Other ISTQB Mock Tests on TestingExcellence.com
ISTQB Sample Exam Questions – Testing Fundamentals
ISTQB Sample Exam Questions – Test Management
ISTQB Online Mock Test (68 questions)
ISTQB Foundation Practice Exam 1 (40 questions)
ISTQB Foundation Practice Exam 2 (40 questions)