Professional Documents
Culture Documents
Chapter 2:
1- A document specifying a sequence of actions for the execution of a test. Also known as test
script or manual test script.
a) Test Design Specification
b) Test Case Specification
c) Test Procedure Specification
d) Test Summary Report
2- An employee's bonus needs to be calculated. It cannot become negative, but it can be
calculated to zero. The bonus is based on the duration of the employment, an employee can be
employed for less than or equal to 2 years, more than 2 years but less than 5 years, 5
to 10 years, or longer than 10 years. Depending on this period of employment, an employee will
get either no bonus or a bonus of 10 %, 25 % or 35 %.
• How many valid equivalence partitions are needed to test the calculation of the bonus?
a) 3
b) 5
c) 2
d) 4
3- Which of the following statements are true for the equivalence partitioning test techniques?
a) Divides possible inputs into classes that have the same behavior.
b) Uses both valid and invalid partitions.
c) Makes use only of valid partitions.
d) Must include at least two values from every equivalence partition.
e) Can be used only for testing equivalence partitions inputs from a Graphical User
Interface.
4- 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
5- A programmer validates a numeric field as follows:
Values less than 10 are rejected, values between 10 and 21 are accepted values greater than or
equal to 22 are rejected Which of the following input values cover all of the equivalence
partitions?
a) 10, 11, 12
b) 3, 20, 21
c) 3, 10, 22
d) 10, 21, 22
6- Order numbers on a stock control system can range between 10000 and 99999 inclusive. Which
of the following inputs might be a result of designing tests for only valid equivalence classes and
valid boundaries.
a) 1000, 5000, 99999
b) 9999, 50000, 100000
c) 10000, 50000, 99999
d) 10000, 99999
e) 9999, 10500, 50000, 99999, 10000
7- A programmer validates a numeric field as follows:
Values less than 10 are rejected, values between 10 and 21 are accepted values greater than or
equal to 22 are rejected Which of the following input values cover the most boundary values?
a) 9, 10, 11, 12
b) 9, 10, 21, 22
c) 10, 11, 21, 22
d) 10,11, 20, 21
8- 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
9- What is the expected result for each of the following test cases?
A. Citibank card member, holding a silver room.
B. Non-Citibank member, holding a platinum room.
Rule 1 Rule 2 Rule 3 Rule 4
Conditions
Citibank Card Member Yes Yes No No
Type of Room Silver Platinum Silver Platinum
a) Off to ON
b) On to Off
c) Fault to On
13- Consider the following state transition diagram and test case table:
Which of the following statements are true?
Test Case 1 2 3 4 5 6 7
Start State S1 S1 S2 S2 S3 S3 S3
Input Press Power Press Power Press RC Press RC On Press RC Off Press Power Press RC Off
On On On Off
Expected Output TV Stand By TV Stand By TV Play TV Play TV Stand By TV OFF TV Stand By
Next State S2 S2 S3 S3 S2 S1 S2
Input Press Power Press RC On Press Press RC Off Press RC On Press Power Press Power
Off Power Off On Off
Expected Output TV OFF TV Play TV OFF TV Stand By TV Play TV Stand By TV OFF
Finish State S1 S3 S1 S2 S3 S2 S1
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
15- How many test cases are necessary to cover all the possible sequences of statements (paths) for
the following program fragment?
a) 1
b) 2
c) 3
d) 4
16- Statement Coverage will not check for the following
a) Missing statements
b) Unused Branches
c) Dead Code
d) Unused Statement
17- Minimum Tests required for statement coverage and branch coverage
Read p
Read Q
If p + q > 100 t
Print "Large"
End if
If p > 50 then
Print "P Large”
End if
If A > B Then
C=A-B
ELSE
C=A+B
ENDIF
Read D
If C = D Then
Print "Error"
ENDIF
Switch PC on
Start "outlook"
If outlook appears Then
Send an email
Close outlook
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
Chapter 5:
1- Given the following types of tool, which tools would typically be used by developers and which
by an independent test team:
i. static analysis
ii. performance testing
iii. test management
iv. dynamic analysis
v. test running
vi. test data preparation
a) developers would typically use i, iv and vi; test team ii, iii and v
b) developers would typically use i and iv; test team ii, iii, v and vi
c) developers would typically use i, ii, iii and iv; test team v and vi
d) developers would typically use ii, iv and vi; test team i, iii and v
e) developers would typically use i, iii, iv and v; test team ii and vi
2- A typical commercial test execution tool would be able to perform all of the following except:
a) Generating expected output
b) Replaying inputs according to a programmed script
c) comparison of expected outcomes with actual outcomes
d) recording test inputs
e) reading test values from a data file
3- A tool that supports traceability, recording of incidents or scheduling of tests is called:
a) dynamic analysis tool
b) test execution tool
c) debugging tool
d) test management tool
e) configuration management tool
4- Which of the following tools would be involved in the automation of regression test?
a) Data tester
b) Boundary tester
c) Capture/Playback
d) Output comparator.