ASTQB ISTQB Foundation Level Exam Practice Test

Page: 1 / 14
Total 219 questions
Question 1

Which of the following is not decided in the test-planning phase..?



Answer : D


Question 2

In a review meeting a moderator is a person who:



Answer : B


Question 3

To test a function, the programmer has to write a _________, which calls the function to be tested and passes it test data:



Answer : B


Question 4

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 1else statement 2if (Condition 2)then statement 3



Answer : A


Question 5

Code Coverage is used as a measure of what?



Answer : C


Question 6

A software component has the code shown below:

Program BiggestA, Biggest: Integer Begin Read A Biggest = 10 While A > 0 Do If A > Biggest Then Biggest = A Endif Read A Enddo End

The component has exit criteria for component testing that include 100% statement coverage. Which of the following test cases will satisfy this criterion?



Answer : D


Question 7

Consider the following pseudo code:

1 Begin 2 Read Time 3 If Time < 12 Then 4 Print(Time, "am") 5 Endif 6 If Time > 12 Then 7 Print(Time 12, "pm") 8 Endif 9 If Time = 12 Then 10 Print (Time, "noon") 11 Endif 12 End

If the test cases Time = 11 and Time = 15 were input, what level of decision coverage would be achieved?



Answer : D

Test case 1 exercises the decision outcomes True, False, False Test case 2 exercises the decision outcomes False, True, False This leaves the True outcome of decision 3 not exercised. Of the 6 possible decision outcomes, 5 have been exercised, so the decision coverage is 5/6 (about 83%).


Page:    1 / 14   
Total 219 questions