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)
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
Which of the following types of testing of a near-finished software product is done by a set of end users outside the development team?
Solution
Which of the following options best describes the purpose of scalability tests?
Solution
Solution
Which type of client-side testing tries to check for issues related to relationships among different parameters of an input?
Solution
Solution
Consider that a user makes an online purchase by making payment through a payment gateway, after the payment is successful, the user is sent back to the e-commerce website with an order confirmation. Which type of transition would take place in the Application Transition Graph (ATG) in this scenario?
Solution
Consider ISP with four blocks as
,
,
, and
. The base choice is
.
What is the number of total test cases to satisfy base choice coverage criterion?
What is the number of total test cases to satisfy base choice coverage criterion?
Solution
Consider the following Java program.

The program outputs Laptop 11, 0 units, instead of Laptop 11, 35 units.
It is because the inherited method Laptop::setStockQuantity does not call Product::setStockQuantity and therefore does not define the instance variable stockQuantity in Item.
Which of the following types of anomalies or faults are present in the given scenario?
The program outputs Laptop 11, 0 units, instead of Laptop 11, 35 units.
It is because the inherited method Laptop::setStockQuantity does not call Product::setStockQuantity and therefore does not define the instance variable stockQuantity in Item.
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 statement (ground string) and a mutant:


Which of the following types of mutation operators can be applied to the ground string to obtain Mutant-1?
Which of the following types of mutation operators can be applied to the ground string to obtain Mutant-1?
Solution
Consider the following code segment.

Consider that a mutant is created by deleting the statement super(value); in LINE-15. Which of the following mutation operators is used to create the mutant?
Consider that a mutant is created by deleting the statement super(value); in LINE-15. Which of the following mutation operators is used to create the mutant?
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 code segment for symbolic execution.

Assume that
respresents the symbolic value for the variable x in the method void verify(int x). Which of the following path constraints would reach the abort() call at LINE-1?
Assume that
Solution
Consider test-driven development (TDD) of a software program that works with geometric objects. The implementation for the method TriangleType::type should identify the type of the triangle based on the given side lengths.
The following is a test case for this method.

Which of the following are correct implementations of the method?
The following is a test case for this method.
Which of the following are correct implementations of the method?
Solution
Consider the following finite state machine (FSM).

Which of the following strings can be accepted by the given FSM?
Which of the following strings can be accepted by the given FSM?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Which of the following is the set of RACC pairs for literal
?
Solution
Comprehension Passage
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