Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ST 6th B Module 2 and 3

Total questions: 15

Worksheet time: 20mins

Name
Class
Date
1.

A particular text field accepts only alpha characters. Which of the following is invalid Equivalence Partition?

a)

APPLE

b)

apple

c)

aPPle

d)

a2pple

2.

A Online Bus Reservation System asks number of seats to be reserved by user where user can reserve seats till its capacity will be full. If a tester wants to test that particular field using Boundary Value, what do you think will be a correct set of input values?

a)

1, 2, capacity -1, capacity, capacity + 1

b)

0, 1, capacity, capacity + 1

c)

0, 1, 2, capacity + 1, a very large number

d)

0, 1, 10, 100, capacity, capacity+1

3.

The speedometer of a car uses 7 colours to show the speed. Each colour covers a range of 20 km, with an operating minimum and maximum of 0 and 140. Which of the following values is LEAST likely to have been identified when applying the Boundary Value Test Design Technique?

a)

-1

b)

0

c)

7

d)

121

4.

To pass an Exam, a candidate has to score minimum of 50 marks in order to clear the exam. The maximum that he can score is 100 marks. Identify the Valid Equivalence values if the student passes the exam.

a)

50, 58, 75

b)

49, 50, 51

c)

52, 60, 99

d)

0, 15, 50

5.

A program 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 covers the MOST boundary values?

a)

9,10,11,22

b)

9,10,21,22

c)

10,11,21,22

d)

10,11,20,21

6.

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 after that is taxed at 22%.

Any further amount is taxed at 40%.

To the nearest whole pound, which of these groups of numbers fall into three DIFFERENT equivalence classes?

a)

£4000; £5000; £5500

b)

£32001; £34000; £36500

c)

£28000; £28001; £32001

d)

£4000; £4200; £5600

7.

Given the following specification, which of the following values for age are in the SAME equivalence partition?

If you are less than 18, you are too young to be insured.

Between 18 and 30 inclusive, you will receive a 20% discount.Anyone over 30 is not eligible for a discount.

a)

17, 18, 19

b)

29, 30, 31

c)

18, 29, 30

d)

17, 29, 31

8.

Given the following code, which statement 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, 2 for branch coverage

9.

If the pseudo code below were a programming language, how many tests are required to achieve 100% statement coverage?

If x=3 then

Display_messageX;

If y=2 then

Display_messageY;

Else

Display_messageZ;

Else

Display_messageZ;

a)

1

b)

2

c)

3

d)

4

10.

A program 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, 21

b)

3, 20, 21

c)

3, 10, 22

d)

10, 21, 22

11.

Given the Following program

IF X < Y

THEN Statement 1;

ELSE IF Y >= Z

THEN Statement 2;

END

Cyclomatic Complexity is :

a)

2

b)

3

c)

4

d)

5

12.

A city field in software accepts 3 to 25 alpha characters only. Using BVA technique what will be possible number of combinations?

a)

3,4,24,25

b)

2,3,25,26

c)

2,3,24,25

d)

3,5,25,26

13.

Equivalence partitioning and boundary value analysis techniques are used only during system testing. True or false.

a)

True

b)

False

14.

Which of the following is not a specification based technique?

a)

Cause-effect table

b)

State transition testing

c)

Decision coverage

d)

Use case testing

15.

What is an equivalence partition?

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)

None of the above