WorksheetsST 6th B Module 2 and 3
Total questions: 15
Worksheet time: 20mins
A particular text field accepts only alpha characters. Which of the following is invalid Equivalence Partition?
APPLE
apple
aPPle
a2pple
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?
1, 2, capacity -1, capacity, capacity + 1
0, 1, capacity, capacity + 1
0, 1, 2, capacity + 1, a very large number
0, 1, 10, 100, capacity, capacity+1
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?
-1
0
7
121
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.
50, 58, 75
49, 50, 51
52, 60, 99
0, 15, 50
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?
9,10,11,22
9,10,21,22
10,11,21,22
10,11,20,21
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?
£4000; £5000; £5500
£32001; £34000; £36500
£28000; £28001; £32001
£4000; £4200; £5600
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.
17, 18, 19
29, 30, 31
18, 29, 30
17, 29, 31
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
1 test for statement coverage, 3 for branch coverage
1 test for statement coverage, 2 for branch coverage
1 test for statement coverage, 1 for branch coverage
2 tests for statement coverage, 2 for branch coverage
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;
1
2
3
4
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?
10, 11, 21
3, 20, 21
3, 10, 22
10, 21, 22
Given the Following program
IF X < Y
THEN Statement 1;
ELSE IF Y >= Z
THEN Statement 2;
END
Cyclomatic Complexity is :
2
3
4
5
A city field in software accepts 3 to 25 alpha characters only. Using BVA technique what will be possible number of combinations?
3,4,24,25
2,3,25,26
2,3,24,25
3,5,25,26
Equivalence partitioning and boundary value analysis techniques are used only during system testing. True or false.
True
False
Which of the following is not a specification based technique?
Cause-effect table
State transition testing
Decision coverage
Use case testing
What is an equivalence partition?
A set of test cases for testing classes of objects
An input or output range of values such that only one value in the range becomes a test case
An input or output range of values such that each value in the range becomes a test case
None of the above
