wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ISTQB Section 4

Total questions: 25

Worksheet time: 28mins

Name
Class
Date
1.

In a system designed to work out the tax to be paid:

An employee has £4000 of salary tax free. The next £1500 is taxed at 10% The next £28000 is taxed at 22% Any further amount is taxed at 40% Which of these groups of numbers would fall into the same equivalence class?

a)

£4800; £14000; £28000

b)

£5200; £5500; £28000

c)

£28001; £32000; £35000

d)

£5800; £28000; £32000

2.

Which of the following is true about White and Black Box Testing Techniques:

a)

Equivalance partitioning, Decision Table and Control flow are White box Testing Techniques.

b)

Equivalence partitioning , Boundary Value Analysis , Data Flow are Black Box Testing Techniques.

c)

Equivalence partitioning , State Transition , Use Case Testing are black box Testing Techniques.

d)

Equivalence Partioning , State Transition , Use Case Testing and Decision Table are White Box Testing

Techniques.

3.

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

4.

White Box Techniques are also called

a)

Structural Testing

b)

Design Based Testing

c)

Error Guessing Technique

d)

Experience Based Technique

5.

What is an equivalence partition (also known as an equivalence class)?

a)

A set of test cases for testing classes of objects

b)

An input or output range of values such that only one value in the range becomes a test case

c)

An input or output range of values such that each value in the range becomes a test case

d)

An input or output range of values such that every tenth value in the range becomes a test case.

6.

Error guessing is best used

a)

As the first approach to deriving test cases

b)

After more formal techniques have been applied

c)

By inexperienced testers

d)

After the system has gone live

e)

Only by end users

7.

Consider the following techniques. Which are static and which are dynamic techniques?


i. Equivalence Partitioning.

ii. Use Case Testing.

iii.Data Flow Analysis.

iv.Exploratory Testing.

v. Decision Testing.

vi Inspections

a)

i-iv are static, v-vi are dynamic.

b)

iii and vi are static, i, ii, iv and v are dynamic.

c)

ii, iii and vi are static, i, iv and v are dynamic.

d)

vi is static, i-v are dynamic.

8.

Test charters are used in

a)

Exploratory testing

b)

Usability testing

c)

Component testing

d)

Maintainability testing

9.

A series of probing questions about the completeness and attributes of an application system is called

a)

Checklist

b)

Checkpoint review

c)

Decision table

d)

Decision tree

10.

Given the decision table above, what is the expected result for the following cases?

A: Fred is a 32 year old smoker resident in London

B: Jean-Michel is a 65 year non-smoker resident in Paris

a)

A – Insure, 10% discount, B – Insure, no discount.

b)

A – Don’t insure, B – Don’t insure.

c)

A – Insure, no discount, B – Don’t insure.

d)

A – Insure, no discount, B – Insure with 10% discount.

11.

. Given the above state transition diagram, which of the following series of state transitions will provide 0-switch coverage?

a)

A, B, E, B, C, F, D.

b)

A, B, E, B, C, F, F.

c)

A, B, E, B, C, D.

d)

A, B, C, F, F, D.

12.

Use cases can be performed to test

a)

Performance testing

b)

Unit testing

c)

Business scenarios

d)

Static testing

13.

Given that data on a person age should be between 1 to 99, which is the appropriate set of values to perform BVA?

a)

0,1,2,99

b)

1, 99, 100, 98

c)

0, 1, 99, 100

d)

–1, 0, 1, 99

14.

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.

a)

ii is True; i, iii, iv & v are False

b)

i & v are True; ii, iii & iv are False

c)

ii & iii are True; i, iv & v are False

d)

ii, iii & iv are True; i & v are False

15.

Minimum Tests Required for Statement Coverage and Branch Coverage:


Read P

Read Q

If p+q > 100 then

Print “Large”

End if

If p > 50 then

Print “pLarge”

End if

a)

Statement coverage is 2, Branch Coverage is 2

b)

Statement coverage is 3 and branch coverage is 2

c)

Statement coverage is 1 and branch coverage is 2

d)

Statement Coverage is 4 and Branch coverage is 4

16.

Minimum Tests Required for Statement Coverage :


Disc = 0

Order-qty = 0

Read Order-qty

If Order-qty >=20 then

Disc = 0.05

If Order-qty >=100 then

Disc =0.1

End if

End if

a)

Statement coverage is 4

b)

Statement coverage is 1

c)

Statement coverage is 3

d)

Statement Coverage is 2

17.

Given the following code, which is true about the minimum number of test cases required for

full statement and branch coverage:


IF A > B THEN

C = A – B

ELSE

C = A + B

ENDIF

Read D

IF C = D Then

Print “Error”

ENDIF

a)

1 test for statement coverage, 3 for branch coverage

b)

2 tests for statement coverage, 2 for branch coverage

c)

2 tests for statement coverage. 3 for branch coverage

d)

3 tests for statement coverage, 3 for branch coverage

e)

3 tests for statement coverage, 2 for branch coverage

18.

Given the following code, which 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”

ENDIF

a)

1 test for statement coverage, 3 for branch coverage

b)

1 test for statement coverage, 2 for branch coverage

c)

1 test for statement coverage, 1 for branch coverage

d)

2 tests for statement coverage, 3 for branch coverage

e)

2 tests for statement coverage, 2 for branch coverage

19.

Given the following fragment of code, how many tests are required for 100% decision coverage?


if width > length then

biggest_dimension = width

if height > width then

biggest_dimension = height

end_if

else

biggest_dimension = length

if height > length then

biggest_dimension = height

end_if

end_if

a)

3

b)

4

c)

2

d)

1

20.

You have designed test cases to provide 100% statement and 100% decision coverage for the following fragment of code:

if width > length then

biggest_dimension = width else

biggest_dimension = length end_if

The following has been added to the bottom of the code fragment above:

print "Biggest dimension is " & biggest_dimension

print "Width: " & width

print "Length: " & length


How many more test cases are required?

a)

One more test case will be required for 100 % decision coverage.

b)

Two more test cases will be required for 100 % statement coverage, one of which will be used to provide 100% decision coverage.

c)

None, existing test cases can be used.

d)

One more test case will be required for 100" statement coverage.

21.

Consider the following:


Pick up and read the newspaper

Look at what is on television

If there is a program that you are interested in watching then switch the the television on and watch the program

Otherwise

Continue reading the newspaper

If there is a crossword in the newspaper then try and complete the crossword

a)

SC = 1 and DC = 1

b)

SC = 1 and DC = 2

c)

SC = 1 and DC = 3

d)

SC = 2 and DC = 2

e)

SC = 2 and DC = 3

22.

Given the following:


Switch PC on

Start “outlook”

IF outlook appears THEN

Send an email

Close outlook

a)

1 test for statement coverage, 1 for branch coverage

b)

1 test for statement coverage, 2 for branch coverage

c)

1 test for statement coverage. 3 for branch coverage

d)

2 tests for statement coverage, 2 for branch coverage

e)

2 tests for statement coverage, 3 for branch coverage

23.

Which of the following is NOT a white box technique?

a)

Statement testing

b)

Path testing

c)

Data flow testing

d)

State transition testing

24.

The following statements are used to describe the basis for creating test cases using either black or white box techniques:


i information about how the software is constructed.

ii models of the system, software or components.

iii analysis of the test basis documentation.

iv analysis of the internal structure of the components.


Which combination of the statements describes the basis for black box techniques?

a)

ii and iii.

b)

ii and iv.

c)

i and iv.

d)

i and iii.

25.

Data flow analysis studies:

a)

possible communications bottlenecks in a program.

b)

the rate of change of data values as a program executes.

c)

the use of data on paths through the code.

d)

the intrinsic complexity of the code.