MauryaHub PYQ Practice

Software Testing · Quiz 1 · May 2023

Software Testing · Quiz 1 · May 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.

0 / 17 published solutions

Question 2 MCQ · 4.0 marks

Consider the control flow graph (CFG) below.
Source diagram or notation
What are the minimum numbers of test paths are required for node and edge coverage?
6406531932711.
Minimum 1 test path for both node and edge coverage.
6406531932712.
Minimum 2 test paths for both node and edge coverage.
6406531932713.
Minimum 1 test path for node coverage and 2 test paths for edge coverage.
6406531932714.
Minimum 2 test path for node coverage and 3 test paths for edge coverage.

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 4.0 marks

Match the following.
Source diagram or notation
6406531932727.
1-D, 2-A, 3-C, 4-B
6406531932728.
1-D, 2-C, 3-A, 4-B
6406531932729.
1-B, 2-C, 3-A, 4-D
6406531932730.
1-B, 2-A, 3-C, 4-D

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 4.0 marks

Consider the CFG given below and answer the subquestions.
Source diagram or notation
Find the number of test requirements for edge pair coverage.
6406531932715.
9
6406531932716.
10
6406531932717.
11
6406531932718.
12

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 6.0 marks

Consider the CFG given below and answer the subquestions.
Source diagram or notation
Find the number of simple paths.
6406531932719.
13
6406531932720.
25
6406531932721.
37
6406531932722.
42

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 8.0 marks

Consider the CFG given below and answer the subquestions.
Source diagram or notation
Find the number of prime paths.
6406531932723.
12
6406531932724.
13
6406531932725.
14
6406531932726.
15

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 8.0 marks

Source diagram or notation
6406531932731.
1-B, 2-A, 3-C
6406531932732.
1-B, 2-C, 3-A
6406531932733.
1-C, 2-B, 3-A
6406531932734.
1-C, 2-A, 3-B

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MCQ · 8.0 marks

Consider the following control flow graph (CFG).
Source diagram or notation
From the following code segments identify the one that is best presented by the given CFG.
6406531932748.Source diagram or notation
6406531932749.Source diagram or notation
6406531932750.Source diagram or notation
6406531932751.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MSQ · 8.0 marks

Source diagram or notation
6406531932735.Source diagram or notation
6406531932736.Source diagram or notation
6406531932737.Source diagram or notation
6406531932738.Source diagram or notation
6406531932739.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MCQ · 6.0 marks

Consider the finite state machine (FSM) as given below.
Source diagram or notation
Identify the statement that correctly describes the given FSM.
6406531932740.
It accepts all strings that have odd number of 0s and odd number of 1s.
6406531932741.
It accepts all strings that have even number of 0s and even number of 1s.
6406531932742.
It accepts all strings that have odd number of 0s and even number of 1s.
6406531932743.
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.

Report a correction for Q10

Question 11 MCQ · 6.0 marks

Source diagram or notation
6406531932752.
testcase1()
6406531932753.
testcase2()
6406531932754.
testcase3()
6406531932755.
testcase4()

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MCQ · 6.0 marks

Consider the CFG given below.
Source diagram or notation
Identify the number of linearly independent paths.
6406531932772.
3
6406531932773.
4
6406531932774.
5
6406531932775.
6

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MCQ · 6.0 marks

Source diagram or notation
6406531932776.Source diagram or notation
6406531932777.Source diagram or notation
6406531932778.Source diagram or notation
6406531932779.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MSQ · 6.0 marks

Identify the statement(s) that are true about graph coverage criteria.
6406531932756.
Node coverage subsumes both edge coverage and edge pair coverage.
6406531932757.
Prime path coverage subsumes both edge Coverage and all duPaths Coverage.
6406531932758.
All duPaths Coverage subsumes both all uses coverage and all defs coverage.
6406531932759.
Edge pair coverage subsumes both all uses coverage and all defs coverage.

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MCQ · 6.0 marks

Consider the annotated CFG given below and answer the subquestions.
Source diagram or notation
How many du-pairs are there for the variable z?
6406531932760.
8
6406531932761.
9
6406531932762.
10
6406531932763.
11

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MCQ · 6.0 marks

Consider the annotated CFG given below and answer the subquestions.
Source diagram or notation
How many unique du-paths are there for the variable z?
6406531932764.
4
6406531932765.
5
6406531932766.
6
6406531932767.
7

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 MSQ · 4.0 marks

Which of the following integration testing techniques may use scaffolding?
6406531932744.
Top-down
6406531932745.
Bottom-up
6406531932746.
Sandwich
6406531932747.
Big bang

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 MSQ · 4.0 marks

Consider the annotated CFG given below.
Source diagram or notation
Identify the test case input(s) that test the path [s, v, x, y, z].
6406531932768.
{a = 10, b = 20, c = 15}
6406531932769.
{a = 10, b = 20, c = 30}
6406531932770.
{a = 30, b = 20, c = 30}
6406531932771.
{a = 30, b = 30, c = 30}       **AI** **Section Id :** 64065339126 **Section Number :** 2 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 5 **Number of Questions to be attempted :** 5 **Section Marks :** 25 **Display Number Panel :** Yes **Group All Questions :** No

A published solution is not available for this question yet.

Report a correction for Q18