MauryaHub PYQ Practice

cs3002_2026T1_Q1_NA.pdf

Software Testing · Quiz 1 · Jan 2026

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

Question 2 MCQ · 5.0 marks

In an organization, software quality is regarded as an important aspect. Therefore, test engineers carefully measure and improve software quality. Identify the minimum process maturity level of this organization.
  1. Level 1
  2. Level 2
  3. Level 3
  4. Level 4

A published solution is not available for this question yet.

Question 3 MCQ · 5.0 marks

Consider the following statements regarding software design and choose the correct option. i) A module encapsulates functionality and interacts with other modules through well-defined interfaces. ii) Interfaces define the permitted interactions between modules without exposing internal implementation details.
  1. Statement i) is correct and Statement ii) is incorrect.
  2. Statement ii) is correct and Statement i) is incorrect.
  3. Both statements are incorrect.
  4. Both statements are correct.

A published solution is not available for this question yet.

Question 4 MCQ · 5.0 marks

Which of the following options best describes the difference between test requirements and test cases?
  1. Test requirements define specific input values, while test cases define test objectives.
  2. Test requirements represent the required coverage criteria, whereas test cases define an execution to satisfy one or more of those requirements.
  3. Test requirements are created after executing test cases to measure test effectiveness.
  4. Test cases and test requirements are interchangeable terms used at different stages of the testing process.

A published solution is not available for this question yet.

Question 5 MCQ · 5.0 marks

Consider the following statements regarding test automation with JUnit and choose the correct option. i) JUnit does not support test fixtures. ii) In a test class, each test method checks an assertion and reports to the test runner whether the test failed or succeeded.
  1. Statement i) is correct and Statement ii) is incorrect.
  2. Statement ii) is correct and Statement i) is incorrect.
  3. Both statements are incorrect.
  4. Both statements are correct.

A published solution is not available for this question yet.

Question 6 MCQ · 5.0 marks

In the ____________ approach for integration testing, all individually tested modules are put together to construct the entire system which is tested as a whole. Fill in the blank with correct option.
  1. Top-down
  2. Bottom-up
  3. Big bang
  4. Sandwich

A published solution is not available for this question yet.

Question 7 MCQ · 5.0 marks

Consider an email client application that sends a request to a mail server, the mail server then responds with new email messages for a user. Which type of interface does this scenario represent?
  1. External file interface
  2. Message passing interface
  3. Procedure call interface
  4. Shared memory interface

A published solution is not available for this question yet.

Question 8 MCQ · 5.0 marks

Consider the following statements regarding structural graph coverage criteria, and choose the correct option. i) Prime paths are maximal simple paths. ii) Edge-pair coverage does not require self-loops to be visited. iii) Test paths to achieve node and edge coverage can be obtained by simple modifications to BFS algorithm over graphs.
  1. Statement i) and iii) are correct. Statement ii) is incorrect.
  2. Statement i) is correct. Statement ii) and iii) are incorrect.
  3. Statement ii) and iii) are correct. Statement i) is incorrect.
  4. Statement i) and ii) are correct. Statement iii) is incorrect.

A published solution is not available for this question yet.

Question 9 MCQ · 5.0 marks

Which of the following types of testing is done by end customer to ensure that the delivered products meets the committed requirements?
  1. Unit Testing
  2. Integration Testing
  3. Acceptance Testing
  4. System Testing

A published solution is not available for this question yet.

Question 10 MCQ · 5.0 marks

The ___________ in a control flow graph (CFG) represents the minimum number of paths required for basis path testing. Fill in the blank with the appropriate option.
  1. number of prime paths
  2. number of linearly independent paths
  3. number of DD-paths
  4. number of edges

A published solution is not available for this question yet.

Question 11 MCQ · 5.0 marks

Which of the following graph coverage criteria is equivalent to transition coverage on a finite state machine (FSM)?
  1. Node coverage
  2. Edge coverage
  3. Edge-pair coverage
  4. Prime path coverage

A published solution is not available for this question yet.

Question 12 MCQ · 5.0 marks

Edge coverage on a CFG is equivalent to which of the following classical coverage criteria?
  1. Loop coverage
  2. Branch coverage
  3. Decision coverage
  4. Statement coverage

A published solution is not available for this question yet.

Question 13 MSQ · 5.0 marks

Which of the following options represent a valid condition for a DD-path in a control flow graph (CFG)?
  1. It consists of a single vertex with in-degree [[IMAGE:b86ed8fa41063895_7_2]] (initial vertex).
    Source diagram or notation
  2. It consists of a single vertex with in-degree [[IMAGE:b86ed8fa41063895_7_3]] or out-degree [[IMAGE:b86ed8fa41063895_7_4]] .
    Source diagram or notationSource diagram or notation
  3. It consists of a single vertex with in-degree and out-degree as 1.
  4. It is a maximal chain of length [[IMAGE:b86ed8fa41063895_7_5]] .
    Source diagram or notation

A published solution is not available for this question yet.

Question 14 MSQ · 5.0 marks

Prime path coverage subsumes which of the following coverage criteria for control and data flow graphs?
  1. Edge-pair coverage
  2. All Uses Coverage
  3. Edge coverage
  4. Complete path coverage

A published solution is not available for this question yet.

Question 15 MSQ · 5.0 marks

Consider the following Java code for [[IMAGE:b86ed8fa41063895_7_6]] class, there are some faults in the implementation. The method [[IMAGE:b86ed8fa41063895_7_7]] needs to be tested using the JUnit test class [[IMAGE:b86ed8fa41063895_7_8]] . [[IMAGE:b86ed8fa41063895_8_9]] Identify which of the test cases would be able to uncover the faults in the program.
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:b86ed8fa41063895_8_10]]
    Source diagram or notation
  2. [[IMAGE:b86ed8fa41063895_8_11]]
    Source diagram or notation
  3. [[IMAGE:b86ed8fa41063895_8_12]]
    Source diagram or notation
  4. [[IMAGE:b86ed8fa41063895_9_13]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 16 MCQ · 5.0 marks

Consider the control flow graph (CFG), [[IMAGE:b86ed8fa41063895_9_14]] , where • Set of vertices [[IMAGE:b86ed8fa41063895_9_15]] • Set of edges [[IMAGE:b86ed8fa41063895_9_16]] • Initial vertex [[IMAGE:b86ed8fa41063895_9_17]] • Final vertex [[IMAGE:b86ed8fa41063895_9_18]] Based on the above data, answer the given subquestions.
How many test requirements are there for edge-pair coverage?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. 9
  2. 10
  3. 11
  4. 8

A published solution is not available for this question yet.

Question 17 MCQ · 5.0 marks

Consider the control flow graph (CFG), [[IMAGE:b86ed8fa41063895_9_14]] , where • Set of vertices [[IMAGE:b86ed8fa41063895_9_15]] • Set of edges [[IMAGE:b86ed8fa41063895_9_16]] • Initial vertex [[IMAGE:b86ed8fa41063895_9_17]] • Final vertex [[IMAGE:b86ed8fa41063895_9_18]] Based on the above data, answer the given subquestions.
How many test requirements are there for prime path coverage?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. 11
  2. 12
  3. 10
  4. 13

A published solution is not available for this question yet.

Question 18 MCQ · 5.0 marks

Consider the control flow graph (CFG), [[IMAGE:b86ed8fa41063895_9_14]] , where • Set of vertices [[IMAGE:b86ed8fa41063895_9_15]] • Set of edges [[IMAGE:b86ed8fa41063895_9_16]] • Initial vertex [[IMAGE:b86ed8fa41063895_9_17]] • Final vertex [[IMAGE:b86ed8fa41063895_9_18]] Based on the above data, answer the given subquestions.
What is the cyclomatic complexity of the given CFG?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. 3
  2. 4
  3. 5
  4. 6

A published solution is not available for this question yet.

Question 19 MCQ · 5.0 marks

Consider the following data flow graph, and answer the subsequent questions. [[IMAGE:b86ed8fa41063895_10_19]]
How many test requirements are there for All-Defs-Coverage for variable [[IMAGE:b86ed8fa41063895_10_20]] ?
Source diagram or notationSource diagram or notation
  1. 1
  2. 2
  3. 3
  4. 4

A published solution is not available for this question yet.

Question 20 MCQ · 5.0 marks

Consider the following data flow graph, and answer the subsequent questions. [[IMAGE:b86ed8fa41063895_10_19]]
How many test requirements are there for All-Uses-Coverage for variable [[IMAGE:b86ed8fa41063895_11_21]] ?
Source diagram or notationSource diagram or notation
  1. 3
  2. 4
  3. 5
  4. 6

A published solution is not available for this question yet.

Question 21 MCQ · 5.0 marks

Consider the following data flow graph, and answer the subsequent questions. [[IMAGE:b86ed8fa41063895_10_19]]
How many unique du-paths are there for variable [[IMAGE:b86ed8fa41063895_11_22]] ? Note: Do not consider subsumption for the du-paths.
Source diagram or notationSource diagram or notation
  1. 3
  2. 4
  3. 5
  4. 6

A published solution is not available for this question yet.