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?

Valid response
Abnormal server error
Exposure
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?
Documentation test
Reliability test
Spike test
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?
Regression Testing
Scalability Testing
Usability Testing
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?

Parameter level bypass testing
Control flow level bypass testing
Value level bypass testing
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?
Operational Transition
Form Link Transition
Redirect Transition
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?



Overriding Method Deletion (OMD)
Hiding Variable Insertion (HVI)
Super Keyword Deletion (SKD)
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?




32
64
18
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?

[[IMAGE:b8ee282979cc36ed_5_12]]

[[IMAGE:b8ee282979cc36ed_5_13]]

[[IMAGE:b8ee282979cc36ed_5_14]]

[[IMAGE:b8ee282979cc36ed_5_15]]

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]] ?






[[IMAGE:b8ee282979cc36ed_6_22]]

[[IMAGE:b8ee282979cc36ed_6_23]]

[[IMAGE:b8ee282979cc36ed_6_24]]

[[IMAGE:b8ee282979cc36ed_6_25]]

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]] ?




Scalar variable replacement
Arithmetic operator replacement
Logical operator replacement
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]] ?


3
4
5
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?









[[IMAGE:b8ee282979cc36ed_8_41]]

[[IMAGE:b8ee282979cc36ed_8_42]]

[[IMAGE:b8ee282979cc36ed_8_43]]

[[IMAGE:b8ee282979cc36ed_8_44]]

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]]


State Definition Anomaly (SDA)
State Definition Inconsistency Anomaly (SDIA)
Inconsistent Type Use (ITU)
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.


[[IMAGE:b8ee282979cc36ed_10_49]]

[[IMAGE:b8ee282979cc36ed_10_50]]

[[IMAGE:b8ee282979cc36ed_11_51]]

[[IMAGE:b8ee282979cc36ed_11_52]]

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?

[[IMAGE:b8ee282979cc36ed_12_54]]

[[IMAGE:b8ee282979cc36ed_12_55]]

[[IMAGE:b8ee282979cc36ed_12_56]]

[[IMAGE:b8ee282979cc36ed_13_57]]

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?

[[IMAGE:b8ee282979cc36ed_13_59]]

[[IMAGE:b8ee282979cc36ed_13_60]]

[[IMAGE:b8ee282979cc36ed_13_61]]

[[IMAGE:b8ee282979cc36ed_13_62]]

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]] ?




[[IMAGE:b8ee282979cc36ed_14_67]]

[[IMAGE:b8ee282979cc36ed_14_68]]

[[IMAGE:b8ee282979cc36ed_14_69]]

[[IMAGE:b8ee282979cc36ed_14_70]]

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]] ?




[[IMAGE:b8ee282979cc36ed_15_72]] for [[IMAGE:b8ee282979cc36ed_15_73]] , [[IMAGE:b8ee282979cc36ed_15_74]] for [[IMAGE:b8ee282979cc36ed_15_75]]




[[IMAGE:b8ee282979cc36ed_15_76]] for [[IMAGE:b8ee282979cc36ed_15_77]] , [[IMAGE:b8ee282979cc36ed_15_78]] for [[IMAGE:b8ee282979cc36ed_15_79]]




[[IMAGE:b8ee282979cc36ed_15_80]] for [[IMAGE:b8ee282979cc36ed_15_81]] , no feasible pair for [[IMAGE:b8ee282979cc36ed_15_82]]



[[IMAGE:b8ee282979cc36ed_15_83]] for [[IMAGE:b8ee282979cc36ed_15_84]] , [[IMAGE:b8ee282979cc36ed_15_85]] for [[IMAGE:b8ee282979cc36ed_15_86]]




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]] ?






6
5
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]] ?






11
10
8
9
A published solution is not available for this question yet.