27. 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%
To the nearest whole pound, which of these is a valid Boundary Value Analysis test case?
- a) £1500
b) £32001
c) £33501
d) £28000
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
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”
ENDIF
Now 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.
- a) 3
b) 4
c) 5
d) 6
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
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
…………
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