MauryaHub PYQ Practice

cs3002_2026T2_Q2_NA.pdf

Software Testing · Quiz 2 · May 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 · 2.0 marks

Consider the following statements regarding logic coverage criteria, and choose the correct option: i) A predicate with [[IMAGE:52de33da12de489a_2_2]] clauses has [[IMAGE:52de33da12de489a_2_3]] possible valuations. ii) GACC subsumes predicate coverage.
Source diagram or notationSource diagram or notation
  1. Both statements are incorrect.
  2. Statement (ii) is correct and statement (i) is incorrect.
  3. Statement (i) is correct and statement (ii) is incorrect.
  4. Both statements are correct.

A published solution is not available for this question yet.

Question 3 MCQ · 2.0 marks

Consider the predicate [[IMAGE:52de33da12de489a_2_4]] . Which of the following options represents [[IMAGE:52de33da12de489a_2_5]] , i.e. the conditions under which clause [[IMAGE:52de33da12de489a_2_6]] determines [[IMAGE:52de33da12de489a_2_7]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:52de33da12de489a_2_8]]
    Source diagram or notation
  2. [[IMAGE:52de33da12de489a_2_9]]
    Source diagram or notation
  3. [[IMAGE:52de33da12de489a_2_10]]
    Source diagram or notation
  4. [[IMAGE:52de33da12de489a_2_11]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 4 MCQ · 2.0 marks

Consider that a mobile app is being developed for booking intercity bus tickets. One of the requirements specified for the app is that a notification should be sent to the passengers (users) on the date of booking with details of their itinerary. Which of the following types of requirements does the above belong to?
  1. Business requirement
  2. Functional requirement
  3. Regulatory requirement
  4. Non-functional requirement

A published solution is not available for this question yet.

Question 5 MCQ · 2.0 marks

Consider the following range of ambient temperature ( [[IMAGE:52de33da12de489a_3_12]] ) in [[IMAGE:52de33da12de489a_3_13]] (degree Celsius) for an electric motor. [[IMAGE:52de33da12de489a_3_14]] Which of the following test inputs would satisfy Boundary Value Analysis (BVA) for the given range?
Source diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:52de33da12de489a_3_15]]
    Source diagram or notation
  2. [[IMAGE:52de33da12de489a_3_16]]
    Source diagram or notation
  3. [[IMAGE:52de33da12de489a_3_17]]
    Source diagram or notation
  4. [[IMAGE:52de33da12de489a_3_18]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 6 MCQ · 2.0 marks

Consider the following code segment for symbolic testing. [[IMAGE:52de33da12de489a_4_19]] Choose the appropriate path constraint (PC) for the [[IMAGE:52de33da12de489a_4_20]] loop with a sequence of [[IMAGE:52de33da12de489a_4_21]] [[IMAGE:52de33da12de489a_4_22]] outcomes followed by a [[IMAGE:52de33da12de489a_4_23]] . Consider each [[IMAGE:52de33da12de489a_4_24]] as a fresh symbolic value.
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:52de33da12de489a_4_25]]
    Source diagram or notation
  2. [[IMAGE:52de33da12de489a_4_26]]
    Source diagram or notation
  3. [[IMAGE:52de33da12de489a_4_27]]
    Source diagram or notation
  4. [[IMAGE:52de33da12de489a_4_28]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 7 MCQ · 3.0 marks

Consider four partitions with blocks [[IMAGE:52de33da12de489a_4_29]] , [[IMAGE:52de33da12de489a_4_30]] , [[IMAGE:52de33da12de489a_4_31]] , and [[IMAGE:52de33da12de489a_4_32]] . How many test requirements are there for All Combinations Coverage (ACoC)?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. 32
  2. 24
  3. 40
  4. 16

A published solution is not available for this question yet.

Question 8 MCQ · 3.0 marks

Consider a portal for a university library that determines book borrowing allowance for students based on two input variables (characteristics). Academic Level ( [[IMAGE:52de33da12de489a_5_33]] ): [[IMAGE:52de33da12de489a_5_34]] , [[IMAGE:52de33da12de489a_5_35]] , [[IMAGE:52de33da12de489a_5_36]] Enrollment Type ( [[IMAGE:52de33da12de489a_5_37]] ): [[IMAGE:52de33da12de489a_5_38]] , [[IMAGE:52de33da12de489a_5_39]] Note: Assume that it is possible for both inputs to be invalid also. The following are the rules for determining the allowance for one semester: ● Full-time undergraduate students receive an allowance of [[IMAGE:52de33da12de489a_5_40]] books. ● Full-time postgraduate students receive an allowance of [[IMAGE:52de33da12de489a_5_41]] books. ● Doctoral students receive an allowance of [[IMAGE:52de33da12de489a_5_42]] books. Part-time students receive half the allowance of full-time students. Doctoral students cannot be part-time. How many equivalence classes, including both valid and invalid inputs, can be identified in this scenario in total?
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 notationSource diagram or notation
  1. 6
  2. 8
  3. 9
  4. 7

A published solution is not available for this question yet.

Question 9 MSQ · 3.0 marks

Which of the following statements are correct regarding symbolic execution?
  1. Each symbolic execution is equivalent to a large number of normal test cases.
  2. Symbolic execution is equivalent to proving that a program is fully correct.
  3. Symbolic execution can also be terminated if the program hits an exit statement.
  4. SMT solvers can always solve a given predicate constraint efficiently.

A published solution is not available for this question yet.

Question 10 MSQ · 2.0 marks

Consider the predicate [[IMAGE:52de33da12de489a_6_43]] . Which of the following options are true?
Source diagram or notation
  1. The predicate is in CNF.
  2. The predicate has three clauses
  3. The predicate is in DNF.
  4. The predicate has four clauses

A published solution is not available for this question yet.

Question 11 MCQ · 2.0 marks

Consider the control flow graph (CFG), [[IMAGE:52de33da12de489a_6_44]] , where ● Set of vertices [[IMAGE:52de33da12de489a_6_45]] ● Set of edges [[IMAGE:52de33da12de489a_6_46]] ● Initial vertex [[IMAGE:52de33da12de489a_6_47]] ● Final vertex [[IMAGE:52de33da12de489a_6_48]] Based on the above data, answer the given subquestions.
How many decision nodes are there in [[IMAGE:52de33da12de489a_6_49]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. 2
  2. 3
  3. 4
  4. 5

A published solution is not available for this question yet.

Question 12 MCQ · 3.0 marks

Consider the control flow graph (CFG), [[IMAGE:52de33da12de489a_6_44]] , where ● Set of vertices [[IMAGE:52de33da12de489a_6_45]] ● Set of edges [[IMAGE:52de33da12de489a_6_46]] ● Initial vertex [[IMAGE:52de33da12de489a_6_47]] ● Final vertex [[IMAGE:52de33da12de489a_6_48]] Based on the above data, answer the given subquestions.
How many linearly independent paths are there in [[IMAGE:52de33da12de489a_7_50]] ?
Source diagram or notationSource 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 13 MCQ · 3.0 marks

Consider the control flow graph (CFG), [[IMAGE:52de33da12de489a_6_44]] , where ● Set of vertices [[IMAGE:52de33da12de489a_6_45]] ● Set of edges [[IMAGE:52de33da12de489a_6_46]] ● Initial vertex [[IMAGE:52de33da12de489a_6_47]] ● Final vertex [[IMAGE:52de33da12de489a_6_48]] Based on the above data, answer the given subquestions.
What is the minimum number of test paths to achieve edge coverage on [[IMAGE:52de33da12de489a_7_51]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource 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 14 MCQ · 3.0 marks

Consider the predicate [[IMAGE:52de33da12de489a_7_52]] and its truth table given below. Note that the blank cells represent the value [[IMAGE:52de33da12de489a_7_53]] in the truth table. [[IMAGE:52de33da12de489a_8_54]] Based on the above data, answer the given subquestions.
Which of the following is the set of GACC pairs for clause [[IMAGE:52de33da12de489a_8_55]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:52de33da12de489a_8_56]]
    Source diagram or notation
  2. [[IMAGE:52de33da12de489a_8_57]]
    Source diagram or notation
  3. [[IMAGE:52de33da12de489a_8_58]]
    Source diagram or notation
  4. [[IMAGE:52de33da12de489a_8_59]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 15 MCQ · 3.0 marks

Consider the predicate [[IMAGE:52de33da12de489a_7_52]] and its truth table given below. Note that the blank cells represent the value [[IMAGE:52de33da12de489a_7_53]] in the truth table. [[IMAGE:52de33da12de489a_8_54]] Based on the above data, answer the given subquestions.
Which of the following is the set of RACC pairs for clause [[IMAGE:52de33da12de489a_8_60]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:52de33da12de489a_8_61]]
    Source diagram or notation
  2. [[IMAGE:52de33da12de489a_8_62]]
    Source diagram or notation
  3. [[IMAGE:52de33da12de489a_9_63]]
    Source diagram or notation
  4. [[IMAGE:52de33da12de489a_9_64]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 16 MCQ · 3.0 marks

Consider the predicate [[IMAGE:52de33da12de489a_7_52]] and its truth table given below. Note that the blank cells represent the value [[IMAGE:52de33da12de489a_7_53]] in the truth table. [[IMAGE:52de33da12de489a_8_54]] Based on the above data, answer the given subquestions.
Which of the following is the set of RICC pairs for clause [[IMAGE:52de33da12de489a_9_65]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:52de33da12de489a_9_66]] for [[IMAGE:52de33da12de489a_9_67]] , [[IMAGE:52de33da12de489a_9_68]] , for [[IMAGE:52de33da12de489a_9_69]]
    Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  2. [[IMAGE:52de33da12de489a_9_70]] for [[IMAGE:52de33da12de489a_9_71]] , [[IMAGE:52de33da12de489a_9_72]] , for [[IMAGE:52de33da12de489a_9_73]]
    Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  3. [[IMAGE:52de33da12de489a_9_74]] for [[IMAGE:52de33da12de489a_9_75]] , no feasible pair for [[IMAGE:52de33da12de489a_9_76]] .
    Source diagram or notationSource diagram or notationSource diagram or notation
  4. [[IMAGE:52de33da12de489a_9_77]] for [[IMAGE:52de33da12de489a_9_78]] , no feasible pair for [[IMAGE:52de33da12de489a_9_79]] .
    Source diagram or notationSource diagram or notationSource diagram or notation

A published solution is not available for this question yet.

Question 17 MCQ · 3.0 marks

Consider that concolic testing technique (DART) is used to test the following code segment. [[IMAGE:52de33da12de489a_10_80]] Assume that [[IMAGE:52de33da12de489a_10_81]] and [[IMAGE:52de33da12de489a_10_82]] respresent the symbolic values for the variables [[IMAGE:52de33da12de489a_10_83]] , [[IMAGE:52de33da12de489a_10_84]] respectively in the method [[IMAGE:52de33da12de489a_10_85]] . Answer the given subquestions.
Which of the following options correctly represents the symbolic state ( [[IMAGE:52de33da12de489a_10_86]] ) at [[IMAGE:52de33da12de489a_10_87]] ?
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:52de33da12de489a_10_88]]
    Source diagram or notation
  2. [[IMAGE:52de33da12de489a_10_89]]
    Source diagram or notation
  3. [[IMAGE:52de33da12de489a_10_90]]
    Source diagram or notation
  4. [[IMAGE:52de33da12de489a_10_91]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 18 MCQ · 3.0 marks

Consider that concolic testing technique (DART) is used to test the following code segment. [[IMAGE:52de33da12de489a_10_80]] Assume that [[IMAGE:52de33da12de489a_10_81]] and [[IMAGE:52de33da12de489a_10_82]] respresent the symbolic values for the variables [[IMAGE:52de33da12de489a_10_83]] , [[IMAGE:52de33da12de489a_10_84]] respectively in the method [[IMAGE:52de33da12de489a_10_85]] . Answer the given subquestions.
Identify the path constraint that represents an equivalence class of input vectors containing all inputs that lead to the abort() call at [[IMAGE:52de33da12de489a_11_92]] .
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:52de33da12de489a_11_93]]
    Source diagram or notation
  2. [[IMAGE:52de33da12de489a_11_94]]
    Source diagram or notation
  3. [[IMAGE:52de33da12de489a_11_95]]
    Source diagram or notation
  4. [[IMAGE:52de33da12de489a_11_96]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 19 MCQ · 3.0 marks

Consider that concolic testing technique (DART) is used to test the following code segment. [[IMAGE:52de33da12de489a_10_80]] Assume that [[IMAGE:52de33da12de489a_10_81]] and [[IMAGE:52de33da12de489a_10_82]] respresent the symbolic values for the variables [[IMAGE:52de33da12de489a_10_83]] , [[IMAGE:52de33da12de489a_10_84]] respectively in the method [[IMAGE:52de33da12de489a_10_85]] . Answer the given subquestions.
Consider that DART generates a random input: [[IMAGE:52de33da12de489a_11_97]] . Which path constraint (PC) is generated for the next execution at [[IMAGE:52de33da12de489a_11_98]] ? Hint: DART negates the PC in the current execution to get the next one.
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:52de33da12de489a_11_99]]
    Source diagram or notation
  2. [[IMAGE:52de33da12de489a_11_100]]
    Source diagram or notation
  3. [[IMAGE:52de33da12de489a_11_101]]
    Source diagram or notation
  4. [[IMAGE:52de33da12de489a_11_102]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 20 MCQ · 3.0 marks

Consider that concolic testing technique (DART) is used to test the following code segment. [[IMAGE:52de33da12de489a_10_80]] Assume that [[IMAGE:52de33da12de489a_10_81]] and [[IMAGE:52de33da12de489a_10_82]] respresent the symbolic values for the variables [[IMAGE:52de33da12de489a_10_83]] , [[IMAGE:52de33da12de489a_10_84]] respectively in the method [[IMAGE:52de33da12de489a_10_85]] . Answer the given subquestions.
Which of the following sets of concrete test inputs execute all instances of symbolic execution for the method [[IMAGE:52de33da12de489a_11_103]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:52de33da12de489a_12_104]]
    Source diagram or notation
  2. [[IMAGE:52de33da12de489a_12_105]]
    Source diagram or notation
  3. [[IMAGE:52de33da12de489a_12_106]]
    Source diagram or notation
  4. [[IMAGE:52de33da12de489a_12_107]]
    Source diagram or notation

A published solution is not available for this question yet.