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
A software application allows users to create accounts, log in, transfer funds between accounts, and generate transaction reports. Which of the following types of testing is performed to verify that each of these features works according to the specified requirements and produces the expected results?
Solution
Which of the following options best describes the main objective of integration 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
Polymorphism factor belongs to which of the following categories of software metrics?
Solution
Which type of client-side testing executes test cases that replay user interactions with the web application?
Solution
The following table lists some access modifiers in object oriented programming.

Match each visibility scope with the appropriate access modifier.
Match each visibility scope with the appropriate access modifier.
Solution
A user is on the Search Results page of a travel website. They decide they want to start over, so they click the browser's "Back" button to return to the Search Input page. 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 declaration of
in
. Which of the following mutation operators can be used for this purpose?
A mutant needs to be created by removing the declaration of
Solution
Consider ISP with four blocks as
,
,
, and
. How many tests are needed to satisfy All Combinations Coverage (ACoC) 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 retail management system. A specific user story requires that a store manager can apply a percentage-based discount to a product. The discount value must be validated upon entry to ensure it falls within a specific operational range. 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
Based on the above data, answer the given subquestions.
Which of the following is the set of RACC pairs for clause
?
Solution
Comprehension Passage
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