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 that an organization has developed an e-commerce system. After a release that refactored the checkout flow and updated the payment gateway integration, which type of testing should be performed to ensure these existing features still function correctly and no previously working behavior was broken?
Solution
Which of the following options best describes the main objective of usability testing?
Solution
Consider a context free grammar
over a finite alphabet
. The following are the production rules for
:



Let
be the starting symbol. Which of the following sets represents the language generated by the given grammar?
Let
Solution
Backlog Management Index (BMI) belongs to which of the following categories of software metrics?
Solution
Which type of client-side testing attempts to bypass security or business logic by directly accessing a specific URL and breaking the normal sequence?
Solution
The following table lists some mutation operators for integration.

Match each mutation operator with the appropriate description.
Match each mutation operator with the appropriate description.
Solution
A user submits a booking form on a flight reservation site. After the server processes the payment successfully, the browser is automatically instructed to load the confirmation page without any user action. Which type of transition would take place in the Application Transition Graph (ATG) in this scenario?
Solution
Consider the following code segment.

A mutant needs to be created by removing the
call
. Which of the following mutation operators can be used for this purpose?
A mutant needs to be created by removing the
Solution
Consider ISP with four blocks as
,
,
, and
. The base test is
. How many additional tests are needed to satisfy Base Choice Coverage (BCC) criterion?
Solution
Consider the following Java program.


Which of the following types of anomalies or faults are present in the given scenario?
Which of the following types of anomalies or faults are present in the given scenario?
Solution
Consider the following Java program.

Which of the following sets of methods will be invoked in the given program?
Which of the following sets of methods will be invoked in the given program?
Solution
Consider the following code segment for symbolic execution.

Assume that
,
, and
represent the symbolic values for the variables
,
, and
in the method
. Which of the following path constraints would reach the
call at
?
Assume that
Solution
Consider the following code statement (ground string) and a mutant:


Which of the following types of mutation operators can be applied to the ground string to obtain
?
Which of the following types of mutation operators can be applied to the ground string to obtain
Solution
Consider the following code segment of a Java servlet. The atomic sections are marked as
.

Identify the component expression that corresponds to the given code segment.
Identify the component expression that corresponds to the given code segment.
Solution
Consider the following data flow graph.

Given a set of test paths
, which of the following coverage criteria is satisfied for the variable
?
Given a set of test paths
Solution
Consider the following finite state machine (FSM).

Which of the following are correct regarding the given FSM?
Which of the following are correct regarding the given FSM?
Solution
Consider a Test-Driven Development (TDD) approach for a billing system in a retail store. The store offers a Standard Shipping tier. The policy states that shipping is free for orders of Rs. 500.00 or more. For any order total less than Rs. 500.00, a flat shipping fee is applied. Consider the following JUnit test for this user story.

Which of the following are the appropriate implementations of the
method in the
class?
Which of the following are the appropriate implementations of the
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 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
Shape
Thickness [ / ]
3
All colors