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 a web application is being tested. In one of the tests, invalid credentials are provided during the login process, due to which the server responds with an error message stating
.
Which of the following categories of server response does the above belong to?
Which of the following categories of server response does the above belong to?
Solution
Which of the following types of non-functional tests is used to measure the ability of a system to keep operating over specified periods of time?
Solution
An organization has developed a recommendation system that performs well for 10,000 users. Before deployment, they want to verify that the system can continue to provide acceptable performance when the number of users grows to 10 million. Which of the following types of testing is appropriate for this?
Solution
Consider a form in a web application. It has a field for Phone Number, which is a numeric input field with maximum length of 10. While doing client-side testing, we provide the value
for it, which violates the length restriction.
Which of the following types of testing does the above scenario represents?
Which of the following types of testing does the above scenario represents?
Solution
A user is logged into a secure dashboard in a web application. After 15 minutes of inactivity, the session is terminated and browser is redirected to the login screen without any user interaction. Which of the following transitions would take place in the Application Transition Graph (ATG) in this scenario?
Solution
Consider the following code segment.

A mutant is created by deleting the
call at
. Which of the following mutation operators is used to create this mutant?
A mutant is created by deleting the
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 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
respresents the symbolic value for the variable
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 is applied to
in the ground string to obtain
?
Which of the following types of mutation operators is applied to
Solution
Consider the following data flow graph.

How many test requirements are there for All-Uses Coverage for the variable
?
How many test requirements are there for All-Uses Coverage for the variable
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
Consider the following Java program.


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 test-driven development (TDD) for an online banking application that handles daily ATM withdrawal limit settings. A user story requires that a custom daily withdrawal limit requested by a customer must be validated before updating their account preferences. Consider the following unit tests written for this user story:

Which of the following method implementations satisfy the given test suite according to TDD principles?
Which of the following method implementations satisfy the given test suite according to TDD principles?
Solution
Consider the following finite state machine (FSM).

Which of the following sequences can be accepted by the given FSM?
Which of the following sequences can be accepted by the given FSM?
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.
Note that the blank cells represent the value
Based on the above data, answer the given subquestions.
Which of the following is the set of RACC pairs for literal
?
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.
Note that the blank cells represent the value
Based on the above data, answer the given subquestions.
Which of the following is the set of RICC pairs for literal
?
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