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?
Performance Testing
Regression Testing
Functional Testing
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?
To verify that individual code units work correctly in isolation.
To verify that different modules and components work together correctly after
being combined.
To verify that the entire system meets all user requirements and business
specifications.
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?







[[IMAGE:f6f08fbe0bbd0b0c_3_9]]

[[IMAGE:f6f08fbe0bbd0b0c_3_10]]

[[IMAGE:f6f08fbe0bbd0b0c_3_11]]

[[IMAGE:f6f08fbe0bbd0b0c_3_12]]

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?
Product Quality Metrics
Object-Oriented Software Metrics
Maintainance Quality Metrics
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?
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 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.

1 - A, 2 - C, 3 - B
1 - A, 2 - B, 3 - C
1 - B, 2 - C, 3 - A
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?
Operational Transition
Form Link Transition
Redirect Transition
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?



Super Keyword Deletion (SKD)
Overriding Method Deletion (OMD)
Parent Constructor Deletion (PCD)
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?




48
36
24
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?


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

[[IMAGE:f6f08fbe0bbd0b0c_8_24]]

[[IMAGE:f6f08fbe0bbd0b0c_8_25]]

[[IMAGE:f6f08fbe0bbd0b0c_8_26]]

[[IMAGE:f6f08fbe0bbd0b0c_8_27]]

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








[[IMAGE:f6f08fbe0bbd0b0c_8_36]]

[[IMAGE:f6f08fbe0bbd0b0c_9_37]]

[[IMAGE:f6f08fbe0bbd0b0c_9_38]]

[[IMAGE:f6f08fbe0bbd0b0c_9_39]]

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


Scalar variable replacement
Arithmetic operator replacement
Relational operator replacement
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.


[[IMAGE:f6f08fbe0bbd0b0c_10_44]]

[[IMAGE:f6f08fbe0bbd0b0c_10_45]]

[[IMAGE:f6f08fbe0bbd0b0c_10_46]]

[[IMAGE:f6f08fbe0bbd0b0c_11_47]]

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



All-Defs Coverage only
All-Uses Coverage only
All-DU-Paths Coverage
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?

Sequence [[IMAGE:f6f08fbe0bbd0b0c_12_52]] can be accepted by this FSM

There are 11 test requirements for transition coverage
There are 5 test requirements for transition coverage
Sequence [[IMAGE:f6f08fbe0bbd0b0c_12_53]] can be accepted by this FSM

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?



[[IMAGE:f6f08fbe0bbd0b0c_13_57]]

[[IMAGE:f6f08fbe0bbd0b0c_13_58]]

[[IMAGE:f6f08fbe0bbd0b0c_13_59]]

[[IMAGE:f6f08fbe0bbd0b0c_13_60]]

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


[[IMAGE:f6f08fbe0bbd0b0c_14_63]]

[[IMAGE:f6f08fbe0bbd0b0c_14_64]]

[[IMAGE:f6f08fbe0bbd0b0c_14_65]]

[[IMAGE:f6f08fbe0bbd0b0c_14_66]]

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


[[IMAGE:f6f08fbe0bbd0b0c_15_68]] , for [[IMAGE:f6f08fbe0bbd0b0c_15_69]] , no feasible pair for [[IMAGE:f6f08fbe0bbd0b0c_15_70]]



[[IMAGE:f6f08fbe0bbd0b0c_15_71]] , for [[IMAGE:f6f08fbe0bbd0b0c_15_72]] , no feasible pair for [[IMAGE:f6f08fbe0bbd0b0c_15_73]]



[[IMAGE:f6f08fbe0bbd0b0c_15_74]] for [[IMAGE:f6f08fbe0bbd0b0c_15_75]] , [[IMAGE:f6f08fbe0bbd0b0c_15_76]] , for [[IMAGE:f6f08fbe0bbd0b0c_15_77]]




[[IMAGE:f6f08fbe0bbd0b0c_15_78]] for [[IMAGE:f6f08fbe0bbd0b0c_15_79]] , [[IMAGE:f6f08fbe0bbd0b0c_15_80]] , for [[IMAGE:f6f08fbe0bbd0b0c_15_81]]




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






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






6
9
8
7
A published solution is not available for this question yet.