MauryaHub PYQ Practice

cs3002_2026T2_ET_FN.pdf

Software Testing · End Term · May 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

Consider that a web application is being tested. In one of the tests, invalid credentials are provided during the login process, due to which the server responds with an error message stating [[IMAGE:b8ee282979cc36ed_2_2]] . Which of the following categories of server response does the above belong to?
Source diagram or notation
  1. Valid response
  2. Abnormal server error
  3. Exposure
  4. None of these

A published solution is not available for this question yet.

Question 3 MCQ · 5.0 marks

Which of the following types of non-functional tests is used to measure the ability of a system to keep operating over specified periods of time?
  1. Documentation test
  2. Reliability test
  3. Spike test
  4. Scalability test

A published solution is not available for this question yet.

Question 4 MCQ · 5.0 marks

An organization has developed a recommendation system that performs well for 10,000 users. Before deployment, they want to verify that the system can continue to provide acceptable performance when the number of users grows to 10 million. Which of the following types of testing is appropriate for this?
  1. Regression Testing
  2. Scalability Testing
  3. Usability Testing
  4. Compatibility Testing

A published solution is not available for this question yet.

Question 5 MCQ · 5.0 marks

Consider a form in a web application. It has a field for Phone Number, which is a numeric input field with maximum length of 10. While doing client-side testing, we provide the value [[IMAGE:b8ee282979cc36ed_3_3]] for it, which violates the length restriction. Which of the following types of testing does the above scenario represents?
Source diagram or notation
  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 6 MCQ · 5.0 marks

A user is logged into a secure dashboard in a web application. After 15 minutes of inactivity, the session is terminated and browser is redirected to the login screen without any user interaction. Which of the following transitions 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 7 MCQ · 5.0 marks

Consider the following code segment. [[IMAGE:b8ee282979cc36ed_4_4]] A mutant is created by deleting the [[IMAGE:b8ee282979cc36ed_4_5]] call at [[IMAGE:b8ee282979cc36ed_4_6]] . Which of the following mutation operators is used to create this mutant?
Source diagram or notationSource diagram or notationSource diagram or notation
  1. Overriding Method Deletion (OMD)
  2. Hiding Variable Insertion (HVI)
  3. Super Keyword Deletion (SKD)
  4. Parent Constructor Deletion (PCD)

A published solution is not available for this question yet.

Question 8 MCQ · 5.0 marks

Consider ISP with four blocks as [[IMAGE:b8ee282979cc36ed_4_7]] , [[IMAGE:b8ee282979cc36ed_4_8]] , [[IMAGE:b8ee282979cc36ed_4_9]] , and [[IMAGE:b8ee282979cc36ed_4_10]] . 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. 32
  2. 64
  3. 18
  4. 48

A published solution is not available for this question yet.

Question 9 MCQ · 5.0 marks

Consider the following Java program. [[IMAGE:b8ee282979cc36ed_5_11]] Which of the following sets of methods will be invoked in the given program?
Source diagram or notation
  1. [[IMAGE:b8ee282979cc36ed_5_12]]
    Source diagram or notation
  2. [[IMAGE:b8ee282979cc36ed_5_13]]
    Source diagram or notation
  3. [[IMAGE:b8ee282979cc36ed_5_14]]
    Source diagram or notation
  4. [[IMAGE:b8ee282979cc36ed_5_15]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 10 MCQ · 5.0 marks

Consider the following code segment for symbolic execution. [[IMAGE:b8ee282979cc36ed_6_16]] Assume that [[IMAGE:b8ee282979cc36ed_6_17]] respresents the symbolic value for the variable [[IMAGE:b8ee282979cc36ed_6_18]] in the method [[IMAGE:b8ee282979cc36ed_6_19]] . Which of the following path constraints would reach the [[IMAGE:b8ee282979cc36ed_6_20]] call at [[IMAGE:b8ee282979cc36ed_6_21]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:b8ee282979cc36ed_6_22]]
    Source diagram or notation
  2. [[IMAGE:b8ee282979cc36ed_6_23]]
    Source diagram or notation
  3. [[IMAGE:b8ee282979cc36ed_6_24]]
    Source diagram or notation
  4. [[IMAGE:b8ee282979cc36ed_6_25]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 11 MCQ · 5.0 marks

Consider the following code statement (ground string) and a mutant: [[IMAGE:b8ee282979cc36ed_7_26]] [[IMAGE:b8ee282979cc36ed_7_27]] Which of the following types of mutation operators is applied to [[IMAGE:b8ee282979cc36ed_7_28]] in the ground string to obtain [[IMAGE:b8ee282979cc36ed_7_29]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. Scalar variable replacement
  2. Arithmetic operator replacement
  3. Logical operator replacement
  4. Assignment operator replacement

A published solution is not available for this question yet.

Question 12 MCQ · 5.0 marks

Consider the following data flow graph. [[IMAGE:b8ee282979cc36ed_7_30]] How many test requirements are there for All-Uses Coverage for the variable [[IMAGE:b8ee282979cc36ed_7_31]] ?
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 13 MCQ · 5.0 marks

Consider a context free grammar [[IMAGE:b8ee282979cc36ed_8_32]] over a finite alphabet [[IMAGE:b8ee282979cc36ed_8_33]] . The following are the production rules for [[IMAGE:b8ee282979cc36ed_8_34]] : [[IMAGE:b8ee282979cc36ed_8_35]] [[IMAGE:b8ee282979cc36ed_8_36]] [[IMAGE:b8ee282979cc36ed_8_37]] [[IMAGE:b8ee282979cc36ed_8_38]] Let [[IMAGE:b8ee282979cc36ed_8_39]] be the starting symbol. Which of the following sets represents the language [[IMAGE:b8ee282979cc36ed_8_40]] 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 notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:b8ee282979cc36ed_8_41]]
    Source diagram or notation
  2. [[IMAGE:b8ee282979cc36ed_8_42]]
    Source diagram or notation
  3. [[IMAGE:b8ee282979cc36ed_8_43]]
    Source diagram or notation
  4. [[IMAGE:b8ee282979cc36ed_8_44]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 14 MCQ · 5.0 marks

Consider the following Java program. [[IMAGE:b8ee282979cc36ed_9_45]] [[IMAGE:b8ee282979cc36ed_9_46]]
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 15 MCQ · 5.0 marks

Consider the following code segment of a Java servlet. The atomic sections are marked as [[IMAGE:b8ee282979cc36ed_10_47]] . [[IMAGE:b8ee282979cc36ed_10_48]] Identify the component expression that corresponds to the given code segment.
Source diagram or notationSource diagram or notation
  1. [[IMAGE:b8ee282979cc36ed_10_49]]
    Source diagram or notation
  2. [[IMAGE:b8ee282979cc36ed_10_50]]
    Source diagram or notation
  3. [[IMAGE:b8ee282979cc36ed_11_51]]
    Source diagram or notation
  4. [[IMAGE:b8ee282979cc36ed_11_52]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 16 MSQ · 5.0 marks

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: [[IMAGE:b8ee282979cc36ed_11_53]] Which of the following method implementations satisfy the given test suite according to TDD principles?
Source diagram or notation
  1. [[IMAGE:b8ee282979cc36ed_12_54]]
    Source diagram or notation
  2. [[IMAGE:b8ee282979cc36ed_12_55]]
    Source diagram or notation
  3. [[IMAGE:b8ee282979cc36ed_12_56]]
    Source diagram or notation
  4. [[IMAGE:b8ee282979cc36ed_13_57]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 17 MSQ · 5.0 marks

Consider the following finite state machine (FSM). [[IMAGE:b8ee282979cc36ed_13_58]] Which of the following sequences can be accepted by the given FSM?
Source diagram or notation
  1. [[IMAGE:b8ee282979cc36ed_13_59]]
    Source diagram or notation
  2. [[IMAGE:b8ee282979cc36ed_13_60]]
    Source diagram or notation
  3. [[IMAGE:b8ee282979cc36ed_13_61]]
    Source diagram or notation
  4. [[IMAGE:b8ee282979cc36ed_13_62]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 18 MCQ · 5.0 marks

Consider the predicate [[IMAGE:b8ee282979cc36ed_14_63]] and its truth table given below. Note that the blank cells represent the value [[IMAGE:b8ee282979cc36ed_14_64]] in the truth table. [[IMAGE:b8ee282979cc36ed_14_65]] Based on the above data, answer the given subquestions.
Which of the following is the set of RACC pairs for literal [[IMAGE:b8ee282979cc36ed_14_66]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:b8ee282979cc36ed_14_67]]
    Source diagram or notation
  2. [[IMAGE:b8ee282979cc36ed_14_68]]
    Source diagram or notation
  3. [[IMAGE:b8ee282979cc36ed_14_69]]
    Source diagram or notation
  4. [[IMAGE:b8ee282979cc36ed_14_70]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 19 MCQ · 5.0 marks

Consider the predicate [[IMAGE:b8ee282979cc36ed_14_63]] and its truth table given below. Note that the blank cells represent the value [[IMAGE:b8ee282979cc36ed_14_64]] in the truth table. [[IMAGE:b8ee282979cc36ed_14_65]] Based on the above data, answer the given subquestions.
Which of the following is the set of RICC pairs for literal [[IMAGE:b8ee282979cc36ed_15_71]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:b8ee282979cc36ed_15_72]] for [[IMAGE:b8ee282979cc36ed_15_73]] , [[IMAGE:b8ee282979cc36ed_15_74]] for [[IMAGE:b8ee282979cc36ed_15_75]]
    Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  2. [[IMAGE:b8ee282979cc36ed_15_76]] for [[IMAGE:b8ee282979cc36ed_15_77]] , [[IMAGE:b8ee282979cc36ed_15_78]] for [[IMAGE:b8ee282979cc36ed_15_79]]
    Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  3. [[IMAGE:b8ee282979cc36ed_15_80]] for [[IMAGE:b8ee282979cc36ed_15_81]] , no feasible pair for [[IMAGE:b8ee282979cc36ed_15_82]]
    Source diagram or notationSource diagram or notationSource diagram or notation
  4. [[IMAGE:b8ee282979cc36ed_15_83]] for [[IMAGE:b8ee282979cc36ed_15_84]] , [[IMAGE:b8ee282979cc36ed_15_85]] for [[IMAGE:b8ee282979cc36ed_15_86]]
    Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation

A published solution is not available for this question yet.

Question 20 MCQ · 5.0 marks

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

A published solution is not available for this question yet.

Question 21 MCQ · 5.0 marks

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

A published solution is not available for this question yet.