Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : SOFTWARE TESTING (COMPUTER
BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Edge-pair coverage is not subsumed by prime path coverage due to which of the following reasons?
Solution
Consider four partitions with blocks
,
,
, and
. If the base choice is
. What is the total number of tests required to satisfy Base Choice Coverage (BCC) criterion?
Solution
Consider the predicate
. Which of the following options represents
, i.e. the conditions under which clause
determines
?
Solution
A university is designing an online course management system for students and faculty. One requirement of the system is that instructors must be able to create and manage course content, including assignments and quizzes. What type of requirement does this represent?
Solution
Consider a program that calculates a fixed shipping cost for online orders based on package weight (in kilograms) using these rules:
- If weight is between 0.5 to 1.4 kg, shipping cost is Rs. 5.00.
- If weight is between 1.5 to 4.9 kg, shipping cost is Rs. 10.00.
- If weight is between 5.0 to 9.9 kg, shipping cost is Rs. 20.00.
- If weight is 10.0 kg or above, shipping cost is Rs. 50.00.
Assume weight is measured and recorded rounded to one decimal place. How many equivalence class partitions can be identified for this input domain?
- If weight is between 0.5 to 1.4 kg, shipping cost is Rs. 5.00.
- If weight is between 1.5 to 4.9 kg, shipping cost is Rs. 10.00.
- If weight is between 5.0 to 9.9 kg, shipping cost is Rs. 20.00.
- If weight is 10.0 kg or above, shipping cost is Rs. 50.00.
Assume weight is measured and recorded rounded to one decimal place. How many equivalence class partitions can be identified for this input domain?
Solution
Cyclomatic complexity represents the number of _____________ in the control flow graph of a program.
Solution
Consider the following range for a thermostat's allowable temperature setting (in degrees Celsius).

Which of the following test input sets would satisfy maximal Boundary Value Analysis (BVA) for the given partition?
Which of the following test input sets would satisfy maximal Boundary Value Analysis (BVA) for the given partition?
Solution
Consider the following code segment for symbolic testing.

Choose the appropriate path constraint (PC) for the
loop with a sequence of
outcomes followed by a
. Consider each
as a fresh symbolic value.
Choose the appropriate path constraint (PC) for the
Solution
Consider the predicate
. Which of the following options are true?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Considering the row numbers (#) given in the truth table, which of the following is a CACC pair for clause
?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Considering the row numbers (#) given in the truth table, which of the following is a RICC pair for clause
?
Solution
Comprehension Passage
Consider the control flow graph (CFG),
, where
- Set of vertices
- Set of edges
- Initial vertex
- Final vertex
Based on the above data, answer the given subquestions.
- Set of vertices
- Set of edges
- Initial vertex
- Final vertex
Based on the above data, answer the given subquestions.
What is the cyclomatic complexity of
?
Solution
Comprehension Passage
Consider the control flow graph (CFG),
, where
- Set of vertices
- Set of edges
- Initial vertex
- Final vertex
Based on the above data, answer the given subquestions.
- Set of vertices
- Set of edges
- Initial vertex
- Final vertex
Based on the above data, answer the given subquestions.
How many test requirements are there for edge-pair coverage on
?
Solution
Comprehension Passage
Consider the control flow graph (CFG),
, where
- Set of vertices
- Set of edges
- Initial vertex
- Final vertex
Based on the above data, answer the given subquestions.
- Set of vertices
- Set of edges
- Initial vertex
- Final vertex
Based on the above data, answer the given subquestions.
What is the minimum number of test paths needed to acheive edge coverage on
.
Solution
Comprehension Passage
Consider the following data flow graph and answer the subsequent questions.

How many test requirements are there to satisfy All-Defs Coverage for variable
?
Solution
Comprehension Passage
Consider the following data flow graph and answer the subsequent questions.

How many test requirements are there to satisfy All-Uses Coverage for variable
?
Solution
Comprehension Passage
Consider the following data flow graph and answer the subsequent questions.

How many test requirements are there to satisfy All DU-Paths Coverage for variable
?
Solution
Comprehension Passage
Consider that concolic testing technique (DART) is used to test the following code segment.

Assume that
,
, and
respresent the symbolic values for the variables
,
, and
respectively, in the method
. Answer the subsequent questions.
Assume that
Solution
Comprehension Passage
Consider that concolic testing technique (DART) is used to test the following code segment.

Assume that
,
, and
respresent the symbolic values for the variables
,
, and
respectively, in the method
. Answer the subsequent questions.
Assume that
Consider that DART generates a random input:
.
Which path constraint (PC) is generated for the next execution at
?
Hint: DART negates the path constraint in the current execution to get the path constraint for the next execution.
Which path constraint (PC) is generated for the next execution at
Hint: DART negates the path constraint in the current execution to get the path constraint for the next execution.
Solution
Comprehension Passage
Consider that concolic testing technique (DART) is used to test the following code segment.

Assume that
,
, and
respresent the symbolic values for the variables
,
, and
respectively, in the method
. Answer the subsequent questions.
Assume that
Which of the following sets of concrete test inputs execute all instances of symbolic execution for the method
?
Solution
Shape
Thickness [ / ]
3
All colors