MauryaHub PYQ Practice

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?
Source diagram or notation
  1. 6
  2. 7
  3. 8
  4. 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.
Source diagram or notation
  1. {[1, 5, 7], [1, 2, 3, 4, 2, 3, 4, 2, 6, 7], [1, 5, 5, 5, 7]}
  2. {[1, 2, 6, 7], [1, 2, 3, 4, 2, 3, 4, 2, 6, 7], [1, 5, 5, 5, 7]}
  3. {[1, 2, 6, 7], [1, 5, 7], [1, 2, 3, 4, 2, 3, 4, 2, 6, 7], [1, 5, 5, 5, 7]}
  4. {[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]]
Source diagram or notation
  1. 3
  2. 4
  3. 5
  4. 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?
  1. [3, 4, 2, 3]
  2. [3, 4, 5, 6]
  3. [1, 2, 3, 4]
  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]]
Source diagram or notation
  1. It accepts all strings that have odd number of 0s and odd number of 1s.
  2. It accepts all strings that have even number of 0s and even number of 1s.
  3. It accepts all strings that have odd number of 0s and even number of 1s.
  4. 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?
  1. Level-0
  2. Level-1
  3. Level-2
  4. Level-3
  5. Level-4

A published solution is not available for this question yet.

Question 8 MCQ · 6.0 marks

[[IMAGE:5ed7447000ed07c6_5_3]]
Source diagram or notation
  1. b > 100
  2. a - b < 0 && b > 100
  3. a - b < 0 && a*b > 100
  4. 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.
  1. Procedure call interface
  2. Shared memory interface
  3. Message-passing interface
  4. 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**?
  1. Top-down
  2. Bottom-up
  3. Sandwich
  4. 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.
  1. = 0
  2. < 2
  3. = 1
  4. ≥ 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. (1) first definitions, (2) first uses
  2. (1) first definitions, (2) last uses
  3. (1) last definitions, (2) first uses
  4. (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?
  1. Unit testing
  2. Integration testing
  3. System testing
  4. Acceptance testing
  5. Beta testing

A published solution is not available for this question yet.

Question 14 MSQ · 5.0 marks

[[IMAGE:5ed7447000ed07c6_7_4]]
Source diagram or notation
  1. Only node coverage.
  2. Node coverage and edge coverage.
  3. Edge coverage but not edge-pair coverage.
  4. Edge-pair coverage.

A published solution is not available for this question yet.

Question 15 MSQ · 5.0 marks

[[IMAGE:5ed7447000ed07c6_7_5]]
Source diagram or notation
  1. [[IMAGE:5ed7447000ed07c6_8_6]]
    Source diagram or notation
  2. [[IMAGE:5ed7447000ed07c6_8_7]]
    Source diagram or notation
  3. [[IMAGE:5ed7447000ed07c6_8_8]]
    Source diagram or notation
  4. [[IMAGE:5ed7447000ed07c6_8_9]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 16 MSQ · 6.0 marks

[[IMAGE:5ed7447000ed07c6_9_10]]
Source diagram or notation
  1. testCase1()
  2. testCase2()
  3. testCase3()
  4. testCase4()

A published solution is not available for this question yet.

Question 17 MSQ · 6.0 marks

[[IMAGE:5ed7447000ed07c6_10_11]]
Source diagram or notation
  1. {x = 10, y = 10, z = 10}
  2. {x = 20, y = 20, z = 30}
  3. {x = 20, y = 10, z = 30}
  4. {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?
Source diagram or notation
  1. 2
  2. 3
  3. 4
  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?
Source diagram or notation
  1. 2
  2. 3
  3. 4
  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.