Ask: "What type of bread do you require, white or brown?"
IF the customer wants 'brown'
Ask: "Which type, sliced or un-sliced?"
IF the customer replies 'un-sliced'
Say: "That will be 95p"
ELSE
Say: "That will be 65p"
ENDIF
ELSE
Say: "That will be 75p"
ENDIF
How many tests are required to achieve full Branch Coverage?
Select one:
A.
4
B.
5
C.
6
D.
3
Correct Answer D. 3
2.
Assume postal rates for 'light letters' are:
$0.25 up to 10 grams
$0.35 up to 50 grams
$0.45 up to 75 grams
$0.55 up to 100 grams
Which test inputs (in grams) would be selected using boundary value analysis?
Select one:
Based on the error guessing test design technique, which of the following will an experienced tester MOST LIKELY test in calender software.
I. First two letters of the month, e.g., MA can represent March or May
II. First letter of the day, e.g., T can mean Tuesday or Thursday
III. Leap year
IV. Number of days in a month
V. Three-digit days and months
Select one:
A.
III and IV
B.
I, II and V
C.
I, II, IV and V
D.
I, II, III and IV
Correct Answer D. I, II, III and IV
4.
Before delivering a new release,we want to know whether or not we have tested all of the specified requirements in the requirement specification. We have the list of the tests that have passed-was every requirement is tested, This example explains?
Select one:
A.
Why Trace-ability is important
B.
Why testing is important
C.
Why understanding document is important
D.
Why test plan is important
Correct Answer A. Why Trace-ability is important
5.
By creating future tests based on the results of previous tests, a tester is demonstrating what type of informal test design technique?
Select one:
A.
Non-functional testing
B.
Exploratory testing
C.
Interoperability testing
D.
Security testing
Correct Answer B. Exploratory testing
6.
Code Coverage is used as a measure of what ?
Select one:
A.
Test Effectiveness
B.
Defects
C.
Time Spent Testing
D.
Trends analysis
Correct Answer A. Test Effectiveness
7.
Consider the following pseudo-code,
INTEGER K
If k>=1 and k<=30 Then
PRINT "K is greater than 0 and less than 31"
End if
Which of the following sets of test input values is the result of a correct boundary values analysis?
Select one:
A.
-3, -2,-1, 0 , 30, 31, 32, 33
B.
1, 2, 29, 30
C.
0, 1, 30, 31
D.
-1, 0, 1, 2, 29, 30, 31
Correct Answer B. 1, 2, 29, 30
8.
Data flow analysis studies ?
Select one:
A.
Possible communications bottlenecks in a program
B.
The use of data on paths through the code.
C.
The rate of change of data values as a program executes.
D.
The intrinsic complexity of the code.
Correct Answer C. The rate of change of data values as a program executes.
9.
Error seeding?
Select one:
A.
Errors inserted by the developers intentionally to make the system malfunctioning.
B.
For identifying existing errors
C.
Evaluates the thoroughness with which a computer program is tested by purposely inserting errors into a supposedly correct program.
D.
Both Evaluates the thoroughness and errors inserted by the developers
Correct Answer C. Evaluates the thoroughness with which a computer program is tested by purposely inserting errors into a supposedly correct program.
10.
Expected results does not include?
Select one:
A.
Information displayed on a screen in response to input
B.
Changes to states
C.
Changes to data
D.
Personal information
Correct Answer D. Personal information
11.
Features to be tested, approach refinements, and feature pass/fail criteria BUT not environmental needs should be specified in which document?
Select one:
A.
Test case specification
B.
Test design specification
C.
Test procedure specification
D.
Test plan
Correct Answer B. Test design specification
12.
Features to be tested, approach, item pass/fail criteria, and test deliverables should be specified in which document?
Select one:
A.
Test case specification
B.
Test procedure specification
C.
Test plan
D.
Test design specification
Correct Answer C. Test plan
13.
Find the Equivalence class for the following test case:
Enter a number to test the validity of being accepting the numbers between 1 and 99.
Select one:
A.
All numbers > 99
B.
All numbers between 1 and 99
C.
Number = 0
D.
All numbers < 1
Correct Answer B. All numbers between 1 and 99
14.
Find the invalid equivalence class for the following test case:
Draw a line up to the length of 4 inches.
Select one:
A.
Line with 1 dot-width
B.
CurveĀ
C.
Line with 1 inch
D.
Line with 4 inches
Correct Answer B. CurveĀ
15.
For the code fragment given below, which answer correctly represents minimum tests required for statement and branch coverage respectively:
discountRate = 1;
fare = 1000;
If ((person=="senior citizen") and (travelmonth==January))
Bonus points=100+bonuspoints
If (class=="first")
discountRate = 5;
Fare = fare * discountRate;
Select one:
For withdrawing money from an automated Teller Machine ATM,the following conditions are required,
1. The bank card is valid,
2. The pin card is valid,
3. Money is available in the users account
4. The following are some possible instructions between the user and the ATM,
A. The entered card is invalid, The card is rejected
B. The PIN code is wrong, The ATM asks for another PIN code
C. The requested amount more than available in the users account, The ATM asks for another amount.
D. The requested amount is available in the users account The ATM dispenses the money.
Which test design technique should be used to cover all possible Combinations of the input conditions?
Select one:
A.
Use case based testing.
B.
Equivalence class partitioning.
C.
Boundary value analysis
D.
Decision table.
Correct Answer D. Decision table.
17.
Four Equivalence classes are given for integer values,
0 < X <100
100 <= X <= 200
200 < X < 500
X >= 500
Which is the following options represent correct set of data for valid equivalence class partitions ?
Select one:
A.
0, 50, 100, 150, 200, 350, 500
B.
0, 1, 99, 100, 200, 201, 499, 500
C.
50, 100, 250, 1000
D.
50, 100, 200, 1000
Correct Answer C. 50, 100, 250, 1000
18.
Given the following two programs:
Program X:
If A>B then
Execute function _A()
Else
Execute function _B()
Endif
Execute function _C()
Program Y:
If D > E Then
Execute function _D()
endif
Execute function _E()
Execute function _F()
Which one of the following is an INCORRECT statement about the programs?
Select one:
A.
At least 2 test cases are needed to achieve 100% decision coverage of program Y
B.
At least 2 test cases are needed to achieve 100% statement coverage of program Y
C.
At least 2 test cases are needed to achieve 100% decision coverage of program X
D.
At least 2 test cases are needed to achieve 100% statement coverage of program X
Correct Answer B. At least 2 test cases are needed to achieve 100% statement coverage of program Y
19.
How are error guessing and exploratory testing similar?
Select one:
A.
Both are experience-based testing
B.
Both are effective at all testing levels
C.
Both are widely used formal techniques
D.
Both are white-box test design techniques
Correct Answer A. Both are experience-based testing
20.
If ((A>1) & (B=0)) then Do;
X=X/A;
END;
If ((A==2) | (X>1)) then Do;
X=X+1;
END;
Calculate statement coverage and branch coverage ?
Select one:
If a candidate is given an exam of 40 questions, should get 25 marks to pass (61%) and should get 80% for distinction, what is equivalence class?
Select one:
A.
0, 12, 25
B.
30, 36, 39
C.
23, 24, 25
D.
32, 37, 40
Correct Answer D. 32, 37, 40
22.
If the code below was part of a program, how many tests are required to achieve 100% statement coverage:
Read A
IF A<0 THEN
Print "A negative"
ENDIF
IF A>0 THEN
Print "A positive"
ENDIF ?
Select one:
A.
3
B.
4
C.
2
D.
1
Correct Answer C. 2
23.
If the code below was part of a program, how many tests are required to achieve 100% statement coverage:
Read A
Read B
IF A<0 THEN
Print "A negative"
ENDIF
IF B<0 THEN
Print "B negative"
ENDIF ?
Select one:
A.
2
B.
3
C.
1
D.
4
Correct Answer C. 1
24.
If the pseudo code below were a programming language, how many tests are required to achieve 100% statement coverage:
If A = 3 then
Display_message A;
If B = 2 then
Display_message B;
Else
Display_message C;
Select one:
A.
4
B.
1
C.
3
D.
2
Correct Answer D. 2
25.
If the temperature falls below 18 degrees, the heating system is switched on. When the temperature reaches 21 degrees, the heating system is switched off.
What is the minimum set of test input values to cover all valid equivalence partitions?
Select one:
A.
15, 19 and 25 degrees
B.
17, 18, 20 and 21 degrees
C.
18, 20 and 22 degrees
D.
16 and 26 degrees
Correct Answer A. 15, 19 and 25 degrees
26.
If x=3 then
Display_messageX;
If y=2 then
Display_messageY;
Else
Display_messageZ;
how many tests are required to achieve 100% branch/decision coverage?
Select one:
A.
3
B.
4
C.
2
D.
1
Correct Answer A. 3
27.
If x>200 then Z=x+y
endif
If x<200 & y=150 then
X++
endif
values of x & y.
How many test cases?
Select one:
A.
3
B.
2
C.
5
D.
1
Correct Answer B. 2
28.
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?
Select one:
A.
$4800; $14000; $28000
B.
$5200; $5500; $28000
C.
$5800; $28000; $32000
D.
$28001; $32000; $35000
Correct Answer C. $5800; $28000; $32000
29.
Incorrect form of Logic coverage is?
Select one:
A.
Statement Coverage
B.
Pole Coverage
C.
Path Coverage
D.
Condition Coverage
Correct Answer B. Pole Coverage
30.
Input and output combinations that will be treated the same way by the system can be tested using which technique?
Select one:
A.
Decision table
B.
Equivalence partition
C.
Boundary value
D.
State transition
Correct Answer B. Equivalence partition
31.
Match the following:
a. Test data
b. Test case
c. Test oracle
d. Test condition
1. A set of input values,execution preconditions,expected results and execution post conditions,developed for a particular objective .
2. A source to determine expected results to compare with the actual result of the software under test.
3. Data that exists before a test is executed and that is effected by component under test.
4. An item of a component that could be verified by cases. ?
Select one:
A.
B1,c2,a3 and d4
B.
A1,c2,b3 and d3
C.
B4,c3,a2 and d1
D.
B2,c3,a4 and d2
Correct Answer A. B1,c2,a3 and d4
32.
Match the test design techniques to the correct descriptions:
S. Black-box technique
T. White-box technique
U. Structural-based technique
V. Specification-based technique
1. Selecting test cases based on documentation
2. Ignoring the internal structure of the system?
Select one:
A.
T1, T2, V1 and V2
B.
S1, S2, U1 and U2
C.
T1, T2, U1 and U2
D.
S1, S2, V1 and V2
Correct Answer D. S1, S2, V1 and V2
33.
Minimum Test Required for Statement Coverage:
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
Select one:
A.
Statement coverage is 3
B.
Statement Coverage is 2
C.
Statement coverage is 1
D.
Statement coverage is 4
Correct Answer C. Statement coverage is 1
34.
One technique of Black Box testing is Equivalence Partitioning. In a program statement that accepts only one choice from among 10 possible choices,
numbered 1 through 10, the middle partition would be from _____ to _____ ?
Select one:
A.
1 to 10
B.
4 to 6
C.
0 to 10
D.
None of the above
Correct Answer A. 1 to 10
35.
Path coverage includes ?
Select one:
A.
Decision coverage
B.
Condition coverage
C.
Statement coverage
D.
None of the options
Correct Answer A. Decision coverage
36.
Suggest an alternative for requirement traceability matrix?
Select one:
A.
Average defect agingĀ
B.
Test Effectiveness
C.
Test Coverage matrix
D.
Error discovery rate
Correct Answer C. Test Coverage matrix
37.
Test conditions,test cases and test procedures are specified in its own document according to test documentation standard?
Select one:
A.
IEEE 829
B.
1EEE 810
C.
ISO/IEEE 829
D.
ISO 829
Correct Answer A. IEEE 829
38.
Test coverage analysis is the process of ?
Select one:
A.
Determining a quantitative measure of code coverage, which is a direct measure of quality.
B.
Finding areas of program exercised by the test cases
C.
Creating additional test cases to increase coverage
D.
All of the Options.
Correct Answer D. All of the Options.
39.
Test data planning essentially includes ?
Select one:
A.
Network
B.
Operational Model
C.
Test Procedure Planning
D.
Boundary value analysis
Correct Answer D. Boundary value analysis
40.
Test design mainly emphasizes all the following except?
Select one:
A.
Test procedures planning
B.
Mapping the requirements and test cases
C.
Data planning
D.
Data synchronization
Correct Answer D.
Data synchronization
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.