Exercise Solution - I Software Testing Chapter 4
Exercise Solution - I Software Testing Chapter 4
Exercise Solution - I Software Testing Chapter 4
Q1: What are the partitions and boundary values to test the password if characters are
between 6-12 exclusive all the special characters and spaces. Password can be
alphanumeric.
c) What are the valid partitions and which are invalid partitions?
5, 13
Page 1 of 4
Q2: Look at the following program written in high-level language.
READ X
READ Y
IF "X > Y"
PRINT X is greater that Y
ENDIF
2
c) Write down the possible test sets to achieve 100% statement coverage.
X=10, Y=5
2 TESTS
2 TESTS
c) Write down the possible test sets to achieve 100% statement coverage.
TEST_1: Order = 50
TEST_2 Order= 120
_________________________________________________________________________
Page 2 of 4
Q4: Look at the following program written in high-level language.
Read A, B
IF A is less than B
BIG = B
SMALL = A
ELSE
BIG = A
SMALL = B
Write (Display) BIG, SMALL
b) Test_01 A=3
B=5
Test_02 A=8
B=6
Conditions/Causes R1 R2 R3 R4
New Customer Y Y N N
Repeat customer Y N Y N
Actions/Outcomes
Discount % X 20% Free shipping 0%
Page 3 of 4
Q6: The state transition diagram is shown below.
…………………………………….END OF SOLUTION…………………………………….
Page 4 of 4