cs3002_2024T3_Q1_NA.pdf
Software Testing · Quiz 1 · Sep 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 · 6.0 marks
[[IMAGE:5ed7447000ed07c6_2_0]]
Based on the above data, answer the given subquestions.
How many prime paths are present in the given CFG?

6
7
8
9
A published solution is not available for this question yet.
Question 3 MSQ · 6.0 marks
[[IMAGE:5ed7447000ed07c6_2_0]]
Based on the above data, answer the given subquestions.
From the following options, identify the set(s) of test paths that provide edge-pair coverage.

{[1, 5, 7], [1, 2, 3, 4, 2, 3, 4, 2, 6, 7], [1, 5, 5, 5, 7]}
{[1, 2, 6, 7], [1, 2, 3, 4, 2, 3, 4, 2, 6, 7], [1, 5, 5, 5, 7]}
{[1, 2, 6, 7], [1, 5, 7], [1, 2, 3, 4, 2, 3, 4, 2, 6, 7], [1, 5, 5, 5, 7]}
{[1, 2, 6, 7], [1, 5, 7], [1, 2, 3, 4, 2, 3, 4, 2, 3, 4, 2, 6, 7], [1, 5, 5, 5, 7]}
A published solution is not available for this question yet.
Question 4 MCQ · 6.0 marks
[[IMAGE:5ed7447000ed07c6_3_1]]

3
4
5
6
A published solution is not available for this question yet.
Question 5 MCQ · 6.0 marks
Consider a prime path [1, 2, 5, 6] and a test path P=[1, 2, 3, 4, 2, 3, 4, 5, 6]. Which of the following
sub-paths is toured by P with a side-trip but not a detour?
[3, 4, 2, 3]
[3, 4, 5, 6]
[1, 2, 3, 4]
[2, 3, 4, 5]
A published solution is not available for this question yet.
Question 6 MCQ · 6.0 marks
[[IMAGE:5ed7447000ed07c6_4_2]]

It accepts all strings that have odd number of 0s and odd number of 1s.
It accepts all strings that have even number of 0s and even number of 1s.
It accepts all strings that have odd number of 0s and even number of 1s.
It accepts all strings that have even number of 0s and odd number of 1s.
A published solution is not available for this question yet.
Question 7 MCQ · 6.0 marks
At which process maturity level is the objective of testing to reduce the risk associated with
software usage, wherein testers and developers collaborate to reduce risk?
Level-0
Level-1
Level-2
Level-3
Level-4
A published solution is not available for this question yet.
Question 8 MCQ · 6.0 marks
[[IMAGE:5ed7447000ed07c6_5_3]]

b > 100
a - b < 0 && b > 100
a - b < 0 && a*b > 100
a - b < 0 && a*b <= 100
A published solution is not available for this question yet.
Question 9 MCQ · 5.0 marks
Consider using a memory block to interface between two modules, where the modules can read
from or write to, while a third module can create the memory block.
Identify the interface between the modules.
Procedure call interface
Shared memory interface
Message-passing interface
None of these
A published solution is not available for this question yet.
Question 10 MCQ · 5.0 marks
Which of the following integration testing approaches does not require **scaffolding**?
Top-down
Bottom-up
Sandwich
Big bang
A published solution is not available for this question yet.
Question 11 MCQ · 5.0 marks
Any single vertex with out-degree _____________, which is a decision vertex, is a DD-path.
Fill in the blank with appropriate option.
= 0
< 2
= 1
≥ 2
A published solution is not available for this question yet.
Question 12 MCQ · 5.0 marks
The inter-procedural DU pairs are defined by the ______(1)_____ of variables before calls to and
returns from the called units and the______(2)______ inside modules and after calls.
Fill in the blanks with the appropriate option.
(1) first definitions, (2) first uses
(1) first definitions, (2) last uses
(1) last definitions, (2) first uses
(1) last definitions, (2) last uses
A published solution is not available for this question yet.
Question 13 MSQ · 5.0 marks
Which of the following can be white-box testing?
Unit testing
Integration testing
System testing
Acceptance testing
Beta testing
A published solution is not available for this question yet.
Question 14 MSQ · 5.0 marks
[[IMAGE:5ed7447000ed07c6_7_4]]

Only node coverage.
Node coverage and edge coverage.
Edge coverage but not edge-pair coverage.
Edge-pair coverage.
A published solution is not available for this question yet.
Question 15 MSQ · 5.0 marks
[[IMAGE:5ed7447000ed07c6_7_5]]

[[IMAGE:5ed7447000ed07c6_8_6]]

[[IMAGE:5ed7447000ed07c6_8_7]]

[[IMAGE:5ed7447000ed07c6_8_8]]

[[IMAGE:5ed7447000ed07c6_8_9]]

A published solution is not available for this question yet.
Question 16 MSQ · 6.0 marks
[[IMAGE:5ed7447000ed07c6_9_10]]

testCase1()
testCase2()
testCase3()
testCase4()
A published solution is not available for this question yet.
Question 17 MSQ · 6.0 marks
[[IMAGE:5ed7447000ed07c6_10_11]]

{x = 10, y = 10, z = 10}
{x = 20, y = 20, z = 30}
{x = 20, y = 10, z = 30}
{x = 30, y = 20, z = 30}
A published solution is not available for this question yet.
Question 18 MCQ · 6.0 marks
[[IMAGE:5ed7447000ed07c6_11_12]]
Based on the above data, answer the given subquestions.
How many **du-pairs** are there for the variable x?

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

2
3
4
5
**Deep Learning**
**Section Id :** 64065369311
**Section Number :** 2
**Section type :** Online
**Mandatory or Optional :** Mandatory
A published solution is not available for this question yet.