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
In an organization, software teams understand that the objective of testing is to reduce risks. Due to this, the developers and testers are cooperating with each other to help fix issues and reduce risks. Considering this scenario, identify the minimum process maturity level of this organization.
Solution
An e-commerce application contains separate modules for user authentication, shopping cart management, and payment processing.Although each module behaves correctly in isolation, the engineering team discovers issues when customer login sessions are transferred incorrectly between modules during checkout.
Which of the following types of testing is primarily intended to identify such problems?
Which of the following types of testing is primarily intended to identify such problems?
Solution
Consider the following statements and choose the correct option.
i) In JUnit, each test is embedded into one test method.
ii) The assertion
would fail.
i) In JUnit, each test is embedded into one test method.
ii) The assertion
Solution
A ____________ is a software component or test tool that replaces a component that takes care of the control and/or the calling of a software component.
Fill in the blank with correct option.
Fill in the blank with correct option.
Solution
A user is browsing a website. She types a query in a text box and clicks on Search. Upon clicking the Search button, a request is made to the server which then retrieves the relevant items and returns a response. Which of the following types of interfaces does this scenario represent?
Solution
Consider the following statements regarding structural graph coverage criteria, and choose the correct option.
i) Prime path coverage always subsumes edge-pair coverage.
ii) A prime path is also a simple path.
iii) Complete path coverage may be feasible for some CFGs.
i) Prime path coverage always subsumes edge-pair coverage.
ii) A prime path is also a simple path.
iii) Complete path coverage may be feasible for some CFGs.
Solution
Consider a control flow graph
. In which of the following types of testing, the number of test requirements (TRs) is equal to the cyclomatic complexity of
?
Solution
Which of the following models is best to capture state behavior when testing sequencing constraints of a program or module?
Solution
Which of the following graph coverage criteria is equivalent to transition coverage on a finite state machine (FSM)?
Solution
Which of the following options correctly describes All-Uses Coverage criterion for a variable
?
Solution
Which of the following statements are correct regarding the representation of graphs?
Solution
Which of the following types of testing methods are black box, i.e. those that do not require knowledge about the internals of the program?
Solution
Which of the following statements are true regarding a decision-to-decision (DD) path?
Solution
Consider the following Java code for
class, there are some faults in it. The method
needs to be tested using the JUnit test class
.

Identify which of the test cases would be able to uncover the faults in the program.
Identify which of the test cases would be able to uncover the faults in the program.
Solution
Comprehension Passage
Consider the following control flow graph (CFG), and answer the subsequent questions.

How many test requirements are there for edge-pair coverage?
Solution
Comprehension Passage
Consider the following control flow graph (CFG), and answer the subsequent questions.

How many test requirements are there for prime path coverage?
Solution
Comprehension Passage
Consider the following control flow graph (CFG), and answer the subsequent questions.

What is the cyclomatic complexity of the given CFG?
Solution
Comprehension Passage
Consider the following data flow graph, and answer the subsequent questions.

How many test requirements are there for All-Defs-Coverage for variable
?
Solution
Comprehension Passage
Consider the following data flow graph, and answer the subsequent questions.

How many test requirements are there for All-Uses-Coverage for variable
?
Solution
Comprehension Passage
Consider the following data flow graph, and answer the subsequent questions.

How many unique du-paths are there for variable
?
Note: Do not consider subsumption for the du-paths.
Note: Do not consider subsumption for the du-paths.
Solution
Shape
Thickness [ / ]
3
All colors