MauryaHub PYQ Practice

cs3002_2026T1_ET_FN.pdf

Software Testing · End Term · Jan 2026 FN

← 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

A software application allows users to create accounts, log in, transfer funds between accounts, and generate transaction reports. Which of the following types of testing is performed to verify that each of these features works according to the specified requirements and produces the expected results?
  1. Performance Testing
  2. Regression Testing
  3. Functional Testing
  4. Usability Testing

A published solution is not available for this question yet.

Question 3 MCQ · 5.0 marks

Which of the following options best describes the main objective of integration testing?
  1. To verify that individual code units work correctly in isolation.
  2. To verify that different modules and components work together correctly after being combined.
  3. To verify that the entire system meets all user requirements and business specifications.
  4. To verify that the application performs well under high load and stress conditions.

A published solution is not available for this question yet.

Question 4 MCQ · 5.0 marks

Consider a context free grammar [[IMAGE:f6f08fbe0bbd0b0c_3_2]] over a finite alphabet [[IMAGE:f6f08fbe0bbd0b0c_3_3]] . The following are the production rules for [[IMAGE:f6f08fbe0bbd0b0c_3_4]] : [[IMAGE:f6f08fbe0bbd0b0c_3_5]] [[IMAGE:f6f08fbe0bbd0b0c_3_6]] [[IMAGE:f6f08fbe0bbd0b0c_3_7]] Let [[IMAGE:f6f08fbe0bbd0b0c_3_8]] be the starting symbol. Which of the following sets represents the language generated by the given grammar?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:f6f08fbe0bbd0b0c_3_9]]
    Source diagram or notation
  2. [[IMAGE:f6f08fbe0bbd0b0c_3_10]]
    Source diagram or notation
  3. [[IMAGE:f6f08fbe0bbd0b0c_3_11]]
    Source diagram or notation
  4. [[IMAGE:f6f08fbe0bbd0b0c_3_12]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 5 MCQ · 5.0 marks

Polymorphism factor belongs to which of the following categories of software metrics?
  1. Product Quality Metrics
  2. Object-Oriented Software Metrics
  3. Maintainance Quality Metrics
  4. In-Process Quality Metrics

A published solution is not available for this question yet.

Question 6 MCQ · 5.0 marks

Which type of client-side testing executes test cases that replay user interactions with the web application?
  1. Parameter level bypass testing
  2. Control flow level bypass testing
  3. Value level bypass testing
  4. User-session data based testing

A published solution is not available for this question yet.

Question 7 MCQ · 5.0 marks

The following table lists some access modifiers in object oriented programming. [[IMAGE:f6f08fbe0bbd0b0c_4_13]] Match each visibility scope with the appropriate access modifier.
Source diagram or notation
  1. 1 - A, 2 - C, 3 - B
  2. 1 - A, 2 - B, 3 - C
  3. 1 - B, 2 - C, 3 - A
  4. 1 - B, 2 - A, 3 - C

A published solution is not available for this question yet.

Question 8 MCQ · 5.0 marks

A user is on the Search Results page of a travel website. They decide they want to start over, so they click the browser's "Back" button to return to the Search Input page. Which type of transition would take place in the Application Transition Graph (ATG) in this scenario?
  1. Operational Transition
  2. Form Link Transition
  3. Redirect Transition
  4. Simple Link Transition

A published solution is not available for this question yet.

Question 9 MCQ · 5.0 marks

Consider the following code segment. [[IMAGE:f6f08fbe0bbd0b0c_5_14]] A mutant needs to be created by removing the declaration of [[IMAGE:f6f08fbe0bbd0b0c_5_15]] in [[IMAGE:f6f08fbe0bbd0b0c_5_16]] . Which of the following mutation operators can be used for this purpose?
Source diagram or notationSource diagram or notationSource diagram or notation
  1. Super Keyword Deletion (SKD)
  2. Overriding Method Deletion (OMD)
  3. Parent Constructor Deletion (PCD)
  4. Hiding Variable Deletion (HVD)

A published solution is not available for this question yet.

Question 10 MCQ · 5.0 marks

Consider ISP with four blocks as [[IMAGE:f6f08fbe0bbd0b0c_5_17]] , [[IMAGE:f6f08fbe0bbd0b0c_5_18]] , [[IMAGE:f6f08fbe0bbd0b0c_5_19]] , and [[IMAGE:f6f08fbe0bbd0b0c_5_20]] . How many tests are needed to satisfy All Combinations Coverage (ACoC) criterion?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. 48
  2. 36
  3. 24
  4. 12

A published solution is not available for this question yet.

Question 11 MCQ · 5.0 marks

Consider the following Java program. [[IMAGE:f6f08fbe0bbd0b0c_6_21]] [[IMAGE:f6f08fbe0bbd0b0c_7_22]] Which of the following types of anomalies or faults are present in the given scenario?
Source diagram or notationSource diagram or notation
  1. State Definition Anomaly (SDA)
  2. State Definition Inconsistency Anomaly (SDIA)
  3. Inconsistent Type Use (ITU)
  4. State Visibility Anomaly (SVA)

A published solution is not available for this question yet.

Question 12 MCQ · 5.0 marks

Consider the following Java program. [[IMAGE:f6f08fbe0bbd0b0c_7_23]] Which of the following sets of methods will be invoked in the given program?
Source diagram or notation
  1. [[IMAGE:f6f08fbe0bbd0b0c_8_24]]
    Source diagram or notation
  2. [[IMAGE:f6f08fbe0bbd0b0c_8_25]]
    Source diagram or notation
  3. [[IMAGE:f6f08fbe0bbd0b0c_8_26]]
    Source diagram or notation
  4. [[IMAGE:f6f08fbe0bbd0b0c_8_27]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 13 MCQ · 5.0 marks

Consider the following code segment for symbolic execution. [[IMAGE:f6f08fbe0bbd0b0c_8_28]] Assume that [[IMAGE:f6f08fbe0bbd0b0c_8_29]] and [[IMAGE:f6f08fbe0bbd0b0c_8_30]] represent the symbolic values for the variables [[IMAGE:f6f08fbe0bbd0b0c_8_31]] and [[IMAGE:f6f08fbe0bbd0b0c_8_32]] in the method [[IMAGE:f6f08fbe0bbd0b0c_8_33]] . Which of the following path constraints would reach the [[IMAGE:f6f08fbe0bbd0b0c_8_34]] call at [[IMAGE:f6f08fbe0bbd0b0c_8_35]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:f6f08fbe0bbd0b0c_8_36]]
    Source diagram or notation
  2. [[IMAGE:f6f08fbe0bbd0b0c_9_37]]
    Source diagram or notation
  3. [[IMAGE:f6f08fbe0bbd0b0c_9_38]]
    Source diagram or notation
  4. [[IMAGE:f6f08fbe0bbd0b0c_9_39]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 14 MCQ · 5.0 marks

Consider the following code statement (ground string) and a mutant: [[IMAGE:f6f08fbe0bbd0b0c_9_40]] Which of the following types of mutation operators can be applied to the ground string to obtain [[IMAGE:f6f08fbe0bbd0b0c_9_41]] ?
Source diagram or notationSource diagram or notation
  1. Scalar variable replacement
  2. Arithmetic operator replacement
  3. Relational operator replacement
  4. Assignment operator replacement

A published solution is not available for this question yet.

Question 15 MCQ · 5.0 marks

Consider the following code segment of a Java servlet. The atomic sections are marked as [[IMAGE:f6f08fbe0bbd0b0c_9_42]] . [[IMAGE:f6f08fbe0bbd0b0c_10_43]] Identify the component expression that corresponds to the given code segment.
Source diagram or notationSource diagram or notation
  1. [[IMAGE:f6f08fbe0bbd0b0c_10_44]]
    Source diagram or notation
  2. [[IMAGE:f6f08fbe0bbd0b0c_10_45]]
    Source diagram or notation
  3. [[IMAGE:f6f08fbe0bbd0b0c_10_46]]
    Source diagram or notation
  4. [[IMAGE:f6f08fbe0bbd0b0c_11_47]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 16 MCQ · 5.0 marks

Consider the following data flow graph. [[IMAGE:f6f08fbe0bbd0b0c_11_48]] Given a set of test paths [[IMAGE:f6f08fbe0bbd0b0c_11_49]] , which of the following coverage criteria is satisfied for the variable [[IMAGE:f6f08fbe0bbd0b0c_11_50]] ?
Source diagram or notationSource diagram or notationSource diagram or notation
  1. All-Defs Coverage only
  2. All-Uses Coverage only
  3. All-DU-Paths Coverage
  4. None of these

A published solution is not available for this question yet.

Question 17 MSQ · 4.0 marks

Consider the following finite state machine (FSM). [[IMAGE:f6f08fbe0bbd0b0c_12_51]] Which of the following are correct regarding the given FSM?
Source diagram or notation
  1. Sequence [[IMAGE:f6f08fbe0bbd0b0c_12_52]] can be accepted by this FSM
    Source diagram or notation
  2. There are 11 test requirements for transition coverage
  3. There are 5 test requirements for transition coverage
  4. Sequence [[IMAGE:f6f08fbe0bbd0b0c_12_53]] can be accepted by this FSM
    Source diagram or notation

A published solution is not available for this question yet.

Question 18 MSQ · 5.0 marks

Consider a Test-Driven Development (TDD) approach for a retail management system. A specific user story requires that a store manager can apply a percentage-based discount to a product. The discount value must be validated upon entry to ensure it falls within a specific operational range. Consider the following JUnit test for this user story. [[IMAGE:f6f08fbe0bbd0b0c_13_54]] Which of the following are the appropriate implementations of the [[IMAGE:f6f08fbe0bbd0b0c_13_55]] method in the [[IMAGE:f6f08fbe0bbd0b0c_13_56]] class?
Source diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:f6f08fbe0bbd0b0c_13_57]]
    Source diagram or notation
  2. [[IMAGE:f6f08fbe0bbd0b0c_13_58]]
    Source diagram or notation
  3. [[IMAGE:f6f08fbe0bbd0b0c_13_59]]
    Source diagram or notation
  4. [[IMAGE:f6f08fbe0bbd0b0c_13_60]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 19 MCQ · 4.0 marks

[[IMAGE:f6f08fbe0bbd0b0c_14_61]] Based on the above data, answer the given subquestions.
Which of the following is the set of RACC pairs for clause [[IMAGE:f6f08fbe0bbd0b0c_14_62]] ?
Source diagram or notationSource diagram or notation
  1. [[IMAGE:f6f08fbe0bbd0b0c_14_63]]
    Source diagram or notation
  2. [[IMAGE:f6f08fbe0bbd0b0c_14_64]]
    Source diagram or notation
  3. [[IMAGE:f6f08fbe0bbd0b0c_14_65]]
    Source diagram or notation
  4. [[IMAGE:f6f08fbe0bbd0b0c_14_66]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 20 MCQ · 4.0 marks

[[IMAGE:f6f08fbe0bbd0b0c_14_61]] Based on the above data, answer the given subquestions.
Which of the following is the set of RICC pairs for clause [[IMAGE:f6f08fbe0bbd0b0c_15_67]] ?
Source diagram or notationSource diagram or notation
  1. [[IMAGE:f6f08fbe0bbd0b0c_15_68]] , for [[IMAGE:f6f08fbe0bbd0b0c_15_69]] , no feasible pair for [[IMAGE:f6f08fbe0bbd0b0c_15_70]]
    Source diagram or notationSource diagram or notationSource diagram or notation
  2. [[IMAGE:f6f08fbe0bbd0b0c_15_71]] , for [[IMAGE:f6f08fbe0bbd0b0c_15_72]] , no feasible pair for [[IMAGE:f6f08fbe0bbd0b0c_15_73]]
    Source diagram or notationSource diagram or notationSource diagram or notation
  3. [[IMAGE:f6f08fbe0bbd0b0c_15_74]] for [[IMAGE:f6f08fbe0bbd0b0c_15_75]] , [[IMAGE:f6f08fbe0bbd0b0c_15_76]] , for [[IMAGE:f6f08fbe0bbd0b0c_15_77]]
    Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  4. [[IMAGE:f6f08fbe0bbd0b0c_15_78]] for [[IMAGE:f6f08fbe0bbd0b0c_15_79]] , [[IMAGE:f6f08fbe0bbd0b0c_15_80]] , for [[IMAGE:f6f08fbe0bbd0b0c_15_81]]
    Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation

A published solution is not available for this question yet.

Question 21 MCQ · 4.0 marks

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

A published solution is not available for this question yet.

Question 22 MCQ · 4.0 marks

Consider the control flow graph (CFG), [[IMAGE:f6f08fbe0bbd0b0c_15_82]] , where • Set of vertices [[IMAGE:f6f08fbe0bbd0b0c_15_83]] • Set of edges [[IMAGE:f6f08fbe0bbd0b0c_15_84]] • Initial vertex [[IMAGE:f6f08fbe0bbd0b0c_15_85]] • Final vertex [[IMAGE:f6f08fbe0bbd0b0c_15_86]] Based on the above data, answer the given subquestions.
How many test requirements are there for edge-pair coverage on [[IMAGE:f6f08fbe0bbd0b0c_16_88]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. 6
  2. 9
  3. 8
  4. 7

A published solution is not available for this question yet.