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 e-commerce web application is being tested. In one of the tests, invalid inputs are provided during the checkout process, subsequently the server fails to query the database properly and crashes, resulting in inconsistent records in the database, the failure stack trace is shown to the user.
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 performed by increasing the number of users suddenly by a very large amount and measuring the performance of the system?
Solution
A company designs a new smart TV remote app for smartphones and asks a few users to adjust the volume and change the channel to see if the buttons are easy to find and use.
Which of the following types of testing does the above scenario represent?
Which of the following types of testing does the above scenario represent?
Solution
Consider a form in a web application. During testing, the test team captures session logs and HTTP request logs generated by actual users filling out the form. The team then extracts these logged input sequences and replay them directly (or with slight modifications) against the application to evaluate system behavior.
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. To request account closure, the user fills out a confirmation form (entering their password and reason for leaving) and clicks the "Submit Request" button. The browser sends the form data to the server.
Which of the following transitions would take place in the Application Transition Graph (ATG) in this scenario?
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
keyword 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
. The base choice is
How many additional tests are needed to satisfy Base Choice Coverage (BCC) 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 DU-Paths Coverage for the variable
?
How many test requirements are there for All DU-Paths 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 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.
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 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.
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 test requirements are there for edge-pair coverage on
?
Solution
Shape
Thickness [ / ]
3
All colors