cs3002_2026T1_Q1_NA.pdf
Software Testing · Quiz 1 · Jan 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 · 5.0 marks
In an organization, software quality is regarded as an important aspect. Therefore, test engineers
carefully measure and improve software quality. Identify the minimum process maturity level of
this organization.
Level 1
Level 2
Level 3
Level 4
A published solution is not available for this question yet.
Question 3 MCQ · 5.0 marks
Consider the following statements regarding software design and choose the correct option.
i) A module encapsulates functionality and interacts with other modules through well-defined
interfaces.
ii) Interfaces define the permitted interactions between modules without exposing internal
implementation details.
Statement i) is correct and Statement ii) is incorrect.
Statement ii) is correct and Statement i) is incorrect.
Both statements are incorrect.
Both statements are correct.
A published solution is not available for this question yet.
Question 4 MCQ · 5.0 marks
Which of the following options best describes the difference between test requirements and test
cases?
Test requirements define specific input values, while test cases define test
objectives.
Test requirements represent the required coverage criteria, whereas test
cases define an execution to satisfy one or more of those requirements.
Test requirements are created after executing test cases to measure test
effectiveness.
Test cases and test requirements are interchangeable terms used at different
stages of the testing process.
A published solution is not available for this question yet.
Question 5 MCQ · 5.0 marks
Consider the following statements regarding test automation with JUnit and choose the correct
option.
i) JUnit does not support test fixtures.
ii) In a test class, each test method checks an assertion and reports to the test runner whether the
test failed or succeeded.
Statement i) is correct and Statement ii) is incorrect.
Statement ii) is correct and Statement i) is incorrect.
Both statements are incorrect.
Both statements are correct.
A published solution is not available for this question yet.
Question 6 MCQ · 5.0 marks
In the ____________ approach for integration testing, all individually tested modules are put
together to construct the entire system which is tested as a whole.
Fill in the blank with correct option.
Top-down
Bottom-up
Big bang
Sandwich
A published solution is not available for this question yet.
Question 7 MCQ · 5.0 marks
Consider an email client application that sends a request to a mail server, the mail server then
responds with new email messages for a user. Which type of interface does this scenario
represent?
External file interface
Message passing interface
Procedure call interface
Shared memory interface
A published solution is not available for this question yet.
Question 8 MCQ · 5.0 marks
Consider the following statements regarding structural graph coverage criteria, and choose the
correct option.
i) Prime paths are maximal simple paths.
ii) Edge-pair coverage does not require self-loops to be visited.
iii) Test paths to achieve node and edge coverage can be obtained by simple modifications to BFS
algorithm over graphs.
Statement i) and iii) are correct. Statement ii) is incorrect.
Statement i) is correct. Statement ii) and iii) are incorrect.
Statement ii) and iii) are correct. Statement i) is incorrect.
Statement i) and ii) are correct. Statement iii) is incorrect.
A published solution is not available for this question yet.
Question 9 MCQ · 5.0 marks
Which of the following types of testing is done by end customer to ensure that the delivered
products meets the committed requirements?
Unit Testing
Integration Testing
Acceptance Testing
System Testing
A published solution is not available for this question yet.
Question 10 MCQ · 5.0 marks
The ___________ in a control flow graph (CFG) represents the minimum number of paths required
for basis path testing.
Fill in the blank with the appropriate option.
number of prime paths
number of linearly independent paths
number of DD-paths
number of edges
A published solution is not available for this question yet.
Question 11 MCQ · 5.0 marks
Which of the following graph coverage criteria is equivalent to transition coverage on a finite state
machine (FSM)?
Node coverage
Edge coverage
Edge-pair coverage
Prime path coverage
A published solution is not available for this question yet.
Question 12 MCQ · 5.0 marks
Edge coverage on a CFG is equivalent to which of the following classical coverage criteria?
Loop coverage
Branch coverage
Decision coverage
Statement coverage
A published solution is not available for this question yet.
Question 13 MSQ · 5.0 marks
Which of the following options represent a valid condition for a DD-path in a control flow graph
(CFG)?
It consists of a single vertex with in-degree [[IMAGE:b86ed8fa41063895_7_2]] (initial vertex).

It consists of a single vertex with in-degree [[IMAGE:b86ed8fa41063895_7_3]] or out-degree [[IMAGE:b86ed8fa41063895_7_4]] .


It consists of a single vertex with in-degree and out-degree as 1.
It is a maximal chain of length [[IMAGE:b86ed8fa41063895_7_5]] .

A published solution is not available for this question yet.
Question 14 MSQ · 5.0 marks
Prime path coverage subsumes which of the following coverage criteria for control and data flow
graphs?
Edge-pair coverage
All Uses Coverage
Edge coverage
Complete path coverage
A published solution is not available for this question yet.
Question 15 MSQ · 5.0 marks
Consider the following Java code for [[IMAGE:b86ed8fa41063895_7_6]] class, there are some faults in the
implementation. The method [[IMAGE:b86ed8fa41063895_7_7]] needs to be tested using the JUnit test
class [[IMAGE:b86ed8fa41063895_7_8]] .
[[IMAGE:b86ed8fa41063895_8_9]]
Identify which of the test cases would be able to uncover the faults in the program.




[[IMAGE:b86ed8fa41063895_8_10]]

[[IMAGE:b86ed8fa41063895_8_11]]

[[IMAGE:b86ed8fa41063895_8_12]]

[[IMAGE:b86ed8fa41063895_9_13]]

A published solution is not available for this question yet.
Question 16 MCQ · 5.0 marks
Consider the control flow graph (CFG), [[IMAGE:b86ed8fa41063895_9_14]] , where
• Set of vertices [[IMAGE:b86ed8fa41063895_9_15]]
• Set of edges [[IMAGE:b86ed8fa41063895_9_16]]
• Initial vertex [[IMAGE:b86ed8fa41063895_9_17]]
• Final vertex [[IMAGE:b86ed8fa41063895_9_18]]
Based on the above data, answer the given subquestions.
How many test requirements are there for edge-pair coverage?





9
10
11
8
A published solution is not available for this question yet.
Question 17 MCQ · 5.0 marks
Consider the control flow graph (CFG), [[IMAGE:b86ed8fa41063895_9_14]] , where
• Set of vertices [[IMAGE:b86ed8fa41063895_9_15]]
• Set of edges [[IMAGE:b86ed8fa41063895_9_16]]
• Initial vertex [[IMAGE:b86ed8fa41063895_9_17]]
• Final vertex [[IMAGE:b86ed8fa41063895_9_18]]
Based on the above data, answer the given subquestions.
How many test requirements are there for prime path coverage?





11
12
10
13
A published solution is not available for this question yet.
Question 18 MCQ · 5.0 marks
Consider the control flow graph (CFG), [[IMAGE:b86ed8fa41063895_9_14]] , where
• Set of vertices [[IMAGE:b86ed8fa41063895_9_15]]
• Set of edges [[IMAGE:b86ed8fa41063895_9_16]]
• Initial vertex [[IMAGE:b86ed8fa41063895_9_17]]
• Final vertex [[IMAGE:b86ed8fa41063895_9_18]]
Based on the above data, answer the given subquestions.
What is the cyclomatic complexity of the given CFG?





3
4
5
6
A published solution is not available for this question yet.
Question 19 MCQ · 5.0 marks
Consider the following data flow graph, and answer the subsequent questions.
[[IMAGE:b86ed8fa41063895_10_19]]
How many test requirements are there for All-Defs-Coverage for variable [[IMAGE:b86ed8fa41063895_10_20]] ?


1
2
3
4
A published solution is not available for this question yet.
Question 20 MCQ · 5.0 marks
Consider the following data flow graph, and answer the subsequent questions.
[[IMAGE:b86ed8fa41063895_10_19]]
How many test requirements are there for All-Uses-Coverage for variable [[IMAGE:b86ed8fa41063895_11_21]] ?


3
4
5
6
A published solution is not available for this question yet.
Question 21 MCQ · 5.0 marks
Consider the following data flow graph, and answer the subsequent questions.
[[IMAGE:b86ed8fa41063895_10_19]]
How many unique du-paths are there for variable [[IMAGE:b86ed8fa41063895_11_22]] ?
Note: Do not consider subsumption for the du-paths.


3
4
5
6
A published solution is not available for this question yet.