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
Consider the following statements regarding logic coverage criteria, and choose the correct option:
i) A predicate with
clauses has
possible valuations.
ii) GACC subsumes predicate coverage.
i) A predicate with
ii) GACC subsumes predicate coverage.
Solution
Consider the predicate
. Which of the following options represents
, i.e. the conditions under which clause
determines
?
Solution
Consider that a mobile app is being developed for booking intercity bus tickets. One of the requirements specified for the app is that a notification should be sent to the passengers (users) on the date of booking with details of their itinerary.
Which of the following types of requirements does the above belong to?
Which of the following types of requirements does the above belong to?
Solution
Consider the following range of ambient temperature (
) in
(degree Celsius) for an electric motor.

Which of the following test inputs would satisfy Boundary Value Analysis (BVA) for the given range?
Which of the following test inputs would satisfy Boundary Value Analysis (BVA) for the given range?
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
Consider each
Solution
Consider four partitions with blocks
,
,
, and
. How many test requirements are there for All Combinations Coverage (ACoC)?
Solution
Consider a portal for a university library that determines book borrowing allowance for students based on two input variables (characteristics).
Academic Level (
):
,
, 
Enrollment Type (
):
, 
Note: Assume that it is possible for both inputs to be invalid also.
The following are the rules for determining the allowance for one semester:
- Full-time undergraduate students receive an allowance of
books.
- Full-time postgraduate students receive an allowance of
books.
- Doctoral students receive an allowance of
books.
Part-time students receive half the allowance of full-time students.
Doctoral students cannot be part-time.
How many equivalence classes, including both valid and invalid inputs, can be identified in this scenario in total?
Academic Level (
Enrollment Type (
Note: Assume that it is possible for both inputs to be invalid also.
The following are the rules for determining the allowance for one semester:
- Full-time undergraduate students receive an allowance of
- Full-time postgraduate students receive an allowance of
- Doctoral students receive an allowance of
Part-time students receive half the allowance of full-time students.
Doctoral students cannot be part-time.
How many equivalence classes, including both valid and invalid inputs, can be identified in this scenario in total?
Solution
Which of the following statements are correct regarding symbolic execution?
Solution
Consider the predicate
. Which of the following options are true?
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 decision nodes are there in
?
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 linearly independent paths are there in
?
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 to achieve edge coverage on
?
Solution
Comprehension Passage
Consider the predicate
and its truth table given below. Note that the blank cells represent the value
in the truth table.

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Which of the following is the set of GACC pairs for clause
?
Solution
Comprehension Passage
Consider the predicate
and its truth table given below. Note that the blank cells represent the value
in the truth table.

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Which of the following is the set of RACC pairs for clause
?
Solution
Comprehension Passage
Consider the predicate
and its truth table given below. Note that the blank cells represent the value
in the truth table.

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Which of the following is the set of RICC pairs for clause
?
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
,
respectively in the method
.
Answer the given subquestions.
Assume that
Answer the given subquestions.
Which of the following options correctly represents the symbolic state (
) at
?
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
,
respectively in the method
.
Answer the given subquestions.
Assume that
Answer the given subquestions.
Identify the path constraint that represents an equivalence class of input vectors containing all inputs that lead to the abort() call at
.
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
,
respectively in the method
.
Answer the given subquestions.
Assume that
Answer the given subquestions.
Consider that DART generates a random input:
. Which path constraint (PC) is generated for the next execution at
? Hint: DART negates the PC in the current execution to get the next one.
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
,
respectively in the method
.
Answer the given subquestions.
Assume that
Answer the given subquestions.
Which of the following sets of concrete test inputs execute all instances of symbolic execution for the method
?
Solution
Shape
Thickness [ / ]
3
All colors