Question
1 Which of the following statements is NOT correct?
a) Syntax Testing is a Black Box technique.
b) A test for 100% statement coverage will generally detect more faults than
one that achieves 100% branch coverage.
c) Coverage measurement for Statement testing is calculated by the number of
statements executed divided by the total number of Statements
d) Data flow testing is a White Box technique
2 For the following code:
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 $15:20”
ENDIF
ELSE
Say: “That will be $9:75”
ENDIF
Which is the correct combination of test required to achieve 100% Statement
coverage and 100% Branch coverage?
a) 2 Statements Tests, 3 Branch Tests
b) 2 Statements Tests, 2 Branch Tests
c) 3 Statements Tests, 3 Branch Tests
d) 4 Statements Tests, 4 Branch Tests
3 Error guessing:
a) supplements formal test design techniques.
b) can only be used in component, integration and system testing.
c) is only performed in user acceptance testing.
d) is not repeatable and should not be used.
4 Which of the following is not a Test Design Technique?
a) syntax testing
b) equivalence partitioning
c) stress testing
d) modified condition/decision coverage
Question
5 Given the following decision table
Rule 1 Rule 2 Rule 3 Rule 4
Conditions
Single Don’t T F T
care
Travelling before T F F F
9am
Student Card Don’t F F T
care
Actions
Full Fare T F F F
Super Saver Fare F T F T
Std Saver Fare F F T F
What will be the expected results of the following tests?
TEST A - Hillary is travelling to Paris on the 9:50am train and will returning
on the 6:30pm express. She is not a student card holder
TEST B - Dudley is travelling on the 7:15am express to Berlin. He holds a
student card.
a) TESTA = Std Saver, TESTB = Super Saver
b) TESTA = Std Saver, TESTB = Full Fare
c) TESTA = Full Fare, TESTB = Full Fare
d) TESTA = Std Saver, TESTB = Std Saver
6 Which of the following is NOT a white box technique?
a) Statement testing
b) LCSAJ
c) Data flow testing
d) State transition testing
7 Which of the following statements is NOT true about Test Procedures
a) They are also know as Test Scripts
b) They specify the sequence of actions for a test
c) They define who should execute the test scripts
d) They are formed into a test execution schedule
Question
8 In a system designed to work out the interest rate to be charged for a bank
account that is overdrawn, the interest rate bands are: first $100 overdrawn
is interest free, next $200 charged at a 1.5% rate, next $700 charged at 5%
rate, any further amount charged at 10%.
To the nearest whole dollar, which of these is a valid Boundary Value
Analysis test case?
a) $200
b) $399
c) $1001
d) $700
9
For the following code, calculate Statement and Branch coverage.
Read H, Q, A, B
If H > Q then
if A > B then
DO A
End if
Else
If B > A then
DO B
End if
End if
a) 3 Statement Tests, 3 Branch Tests
b) 2 Statement Tests, 3 Branch Tests
c) 2 Statement Tests, 4 Branch Tests
d) 1 Statement Tests, 4 Branch Tests
10 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
Question
11
The following state transition diagram represents a series of valid transitions
between 5 states.
A B D
S1 S2 S3 S4 S5
Which of the following series of state transitions below will provide a full range of
0-switch tests?
A A, B, D, E A
B A, B, C, B, D, E, F. B
C A, B, C, B, D, E, D D
D A, B, D, E, F, F
12
Which of the following statements regarding Test Conditions is False
a) They are sometimes referred to as Test Items
b) They should be prioritised
c) They should be directly linked to one or many Test Scripts
d) They determine a system’s fitness for purpose