cs3002_2023T3_Q1_NA.pdf
Software Testing · Quiz 1 · Sep 2023
← 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 MSQ · 5.0 marks
[[IMAGE:bd4a7a6e336d17ad_2_0]]

[1, 2, 4, 5, 6]
[1, 2, 3, 5, 6, 1]
[1, 2, 3, 5, 2, 4, 5, 6, 1, 2, 3, 5, 6]
[1, 2, 4, 5, 1, 2, 3, 5, 6]
A published solution is not available for this question yet.
Question 3 MCQ · 6.0 marks
[[IMAGE:bd4a7a6e336d17ad_3_1]]
Based on the above data, answer the given subquestions.
Identify the number of test requirements for edge-pair coverage in the given CFG.

8
9
10
11
A published solution is not available for this question yet.
Question 4 MCQ · 6.0 marks
[[IMAGE:bd4a7a6e336d17ad_3_1]]
Based on the above data, answer the given subquestions.
Identify the number of prime paths in the given CFG.

8
9
10
11
A published solution is not available for this question yet.
Question 5 MCQ · 6.0 marks
[[IMAGE:bd4a7a6e336d17ad_3_1]]
Based on the above data, answer the given subquestions.
Identify the correct set of test paths in the given CFG to satisfy prime path coverage.

{[1, 2, 6], [1, 2, 3, 5, 2, 3, 4, 3, 5, 2, 6]}
{[1, 2, 6], [1, 2, 3, 5, 2, 3, 5, 2, 6], [1, 2, 3, 4, 3, 4, 3, 5, 2, 6]}
{[1, 2, 6], [1, 2, 3, 5, 2, 6], [1, 2, 3, 4, 3, 5, 2, 6], [1, 2, 3, 5, 2, 3, 4, 3, 5, 2, 6]}
{[1, 2, 6], [1, 2, 3, 5, 2, 3, 5, 2, 6], [1, 2, 3, 4, 3, 4, 3, 5, 2, 6], [1, 2, 3, 5, 2, 3, 4, 3, 5,
2, 6]}
A published solution is not available for this question yet.
Question 6 MCQ · 5.0 marks
[[IMAGE:bd4a7a6e336d17ad_6_2]]
Based on the above data, answer the given subquestions.
How many du-pairs are there for the variable x?

8
9
13
20
A published solution is not available for this question yet.
Question 7 MCQ · 6.0 marks
[[IMAGE:bd4a7a6e336d17ad_6_2]]
Based on the above data, answer the given subquestions.
How many unique du-paths are there for the variable x?

4
5
6
7
A published solution is not available for this question yet.
Question 8 MCQ · 6.0 marks
[[IMAGE:bd4a7a6e336d17ad_8_3]]

[[IMAGE:bd4a7a6e336d17ad_8_4]]

[[IMAGE:bd4a7a6e336d17ad_8_5]]

[[IMAGE:bd4a7a6e336d17ad_9_6]]

[[IMAGE:bd4a7a6e336d17ad_9_7]]

A published solution is not available for this question yet.
Question 9 MCQ · 6.0 marks
[[IMAGE:bd4a7a6e336d17ad_9_8]]

The FSM accepts the input, if the number of a’s are odd.
The FSM accepts the input, if the number of a’s are even.
The FSM accepts the input, if the number of b’s are odd.
The FSM accepts the input, if the number of b’s are even.
A published solution is not available for this question yet.
Question 10 MCQ · 6.0 marks
[[IMAGE:bd4a7a6e336d17ad_10_9]]

1-C, 2-D, 3-A, 4-B
1-C, 2-A, 3-D, 4-B
1-B, 2-A, 3-D, 4-C
1-B, 2-D, 3-A, 4-C
A published solution is not available for this question yet.
Question 11 MCQ · 5.0 marks
Which of the following approaches to integration testing does not require extra software
components, known as scaffolding?
Top-down
Bottom-up
Big bang
Sandwich
A published solution is not available for this question yet.
Question 12 MCQ · 5.0 marks
[[IMAGE:bd4a7a6e336d17ad_11_10]]

Parameter coupling
Shared data coupling
External device coupling
Message-passing interfaces
A published solution is not available for this question yet.
Question 13 MCQ · 5.0 marks
In which phase of Software Development Life Cycle (SDLC), developers perform extensive unit
testing and debugging?
Planning and requirements definition
Design and architecture
Development
Testing
Maintenance
A published solution is not available for this question yet.
Question 14 MCQ · 5.0 marks
The total running time of BFS algorithm can be expressed as ___________ .
Fill in the blank with appropriate option.
[[IMAGE:bd4a7a6e336d17ad_12_11]]

[[IMAGE:bd4a7a6e336d17ad_12_12]]

[[IMAGE:bd4a7a6e336d17ad_12_13]]

[[IMAGE:bd4a7a6e336d17ad_12_14]]

A published solution is not available for this question yet.
Question 15 MCQ · 5.0 marks
[[IMAGE:bd4a7a6e336d17ad_13_15]]

def-clear
du-path
du-pair
def(v)
A published solution is not available for this question yet.
Question 16 MSQ · 6.0 marks
[[IMAGE:bd4a7a6e336d17ad_13_16]]

[[IMAGE:bd4a7a6e336d17ad_13_17]]

[[IMAGE:bd4a7a6e336d17ad_13_18]]

[[IMAGE:bd4a7a6e336d17ad_13_19]]

[[IMAGE:bd4a7a6e336d17ad_14_20]] [[IMAGE:bd4a7a6e336d17ad_14_21]]


A published solution is not available for this question yet.
Question 17 MSQ · 7.0 marks
[[IMAGE:bd4a7a6e336d17ad_14_22]]
[[IMAGE:bd4a7a6e336d17ad_15_23]]


testcase1()
testcase2()
testcase3()
testcase4()
A published solution is not available for this question yet.
Question 18 NAT · 5.0 marks
Consider a CFG with a single component that has 6 nodes and 9 edges. What is the cyclomatic
complexity of the given CFG?
Do not write the number in words, if your answer is **6**, enter 6 but not six.
A published solution is not available for this question yet.
Question 19 NAT · 5.0 marks
[[IMAGE:bd4a7a6e336d17ad_16_24]]

A published solution is not available for this question yet.