cs3002_2024T2_Q1_NA.pdf
Software Testing · Quiz 1 · May 2024
← 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
Which type of testing is typically conducted after modifying or upgrading a software component to
verify that the modified component is working correctly and other components are not damaged
by the modification?
Functional testing
Performance testing
Usability testing
Regression testing
A published solution is not available for this question yet.
Question 3 MCQ · 5.0 marks
Consider an organization whose purpose in testing is to show the software’s failures. However,
looking for failures is considered a negative activity, which puts testers and developers in an
adversarial relationship. Determine the organization’s process maturity level based on its test
goals.
Level 1
Level 2
Level 3
Level 4
A published solution is not available for this question yet.
Question 4 MCQ · 5.0 marks
[[IMAGE:94a294da0720aa10_3_0]]

Tree edges
Back edges
Forward edges
Cross edges
A published solution is not available for this question yet.
Question 5 MCQ · 5.0 marks
[[IMAGE:94a294da0720aa10_3_1]]

Parameter coupling
Shared data coupling
External device coupling
Message-passing interfaces
A published solution is not available for this question yet.
Question 6 MCQ · 5.0 marks
[[IMAGE:94a294da0720aa10_3_2]]

0
1
2
3
A published solution is not available for this question yet.
Question 7 MCQ · 6.0 marks
[[IMAGE:94a294da0720aa10_4_3]]

[[IMAGE:94a294da0720aa10_4_4]]

[[IMAGE:94a294da0720aa10_4_5]]

[[IMAGE:94a294da0720aa10_4_6]]

[[IMAGE:94a294da0720aa10_4_7]]

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

It accepts all strings that have only odd number of as.
It accepts all strings that have only even number of as.
It accepts all strings that have odd number of as and even number of bs.
It accepts all strings that have even number of as and odd number of bs.
A published solution is not available for this question yet.
Question 9 MCQ · 6.0 marks
Consider the prime path [1, 2, 4, 5] and a path P = [1, 2, 3, 2, 4, 2, 3, 4, 5]. From among the given
options, identify the path with a detour but not a sidetrip.
[1, 2, 4, 2, 4, 5]
[1, 2, 3, 2, 4, 5]
[1, 2, 3, 4, 5]
[1, 2, 4, 5]
A published solution is not available for this question yet.
Question 10 MSQ · 6.0 marks
Consider the following classes for the code base to be tested and the test class.
//code base: Voter.java
public class Voter {
private String voter_id;
private String voter_name;
private String state;
public Voter(String i, String n, String s) {
voter_id = i;
voter_name = n;
state = s;
i
public void updateName(String name) {
voter_name = name;
a
public void updateState(String state) {
state = state;
}
public String toString() {
return voter_id +" : " + voter_name +": " + state;
}
[[IMAGE:94a294da0720aa10_7_10]]

[[IMAGE:94a294da0720aa10_7_11]]

[[IMAGE:94a294da0720aa10_7_12]]

[[IMAGE:94a294da0720aa10_7_13]]

[[IMAGE:94a294da0720aa10_7_14]]

A published solution is not available for this question yet.
Question 11 MSQ · 6.0 marks
[[IMAGE:94a294da0720aa10_8_15]]

[[IMAGE:94a294da0720aa10_8_16]]

[[IMAGE:94a294da0720aa10_8_17]]

[[IMAGE:94a294da0720aa10_9_18]]

[[IMAGE:94a294da0720aa10_9_19]]

A published solution is not available for this question yet.
Question 12 MCQ · 6.0 marks
[[IMAGE:94a294da0720aa10_9_20]]
Based on the above data, answer the given subquestions.
Determine the number of prime paths in the given CFG.

7
8
9
10
A published solution is not available for this question yet.
Question 13 MCQ · 6.0 marks
[[IMAGE:94a294da0720aa10_9_20]]
Based on the above data, answer the given subquestions.
Determine the minimum number of test paths required for prime path coverage of the given CFG.

2
3
4
5
A published solution is not available for this question yet.
Question 14 MCQ · 6.0 marks
[[IMAGE:94a294da0720aa10_9_20]]
Based on the above data, answer the given subquestions.
From the following code segments identify the one that is best presented by the given CFG.

[[IMAGE:94a294da0720aa10_10_21]]

[[IMAGE:94a294da0720aa10_10_22]]

[[IMAGE:94a294da0720aa10_10_23]]

[[IMAGE:94a294da0720aa10_11_24]]

A published solution is not available for this question yet.
Question 15 MCQ · 6.0 marks
[[IMAGE:94a294da0720aa10_11_25]]
Based on the above data, answer the given subquestions.
What is the minimum number of test paths are required for node coverage for the given CFG?

1
2
3
4
A published solution is not available for this question yet.
Question 16 MCQ · 5.0 marks
[[IMAGE:94a294da0720aa10_11_25]]
Based on the above data, answer the given subquestions.
What is the cyclomatic complexity for the given CFG?

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

7
8
9
10
A published solution is not available for this question yet.
Question 18 MCQ · 6.0 marks
[[IMAGE:94a294da0720aa10_13_26]]
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 19 MSQ · 5.0 marks
[[IMAGE:94a294da0720aa10_14_27]]

[1, 2, 4, 6]
[1, 2, 4, 5, 6]
[1, 3, 6, 1, 2, 4, 6]
[1, 3, 6, 1, 2, 4, 5]
**AI**
**Section Id :** 64065359425
**Section Number :** 2
**Section type :** Online
**Mandatory or Optional :** Mandatory
**Number of Questions :** 8
**Number of Questions to be attempted :** 8
**Section Marks :** 25
**Display Number Panel :** Yes
**Section Negative Marks :** 0
**Group All Questions :** No
A published solution is not available for this question yet.