MauryaHub PYQ Practice

cs3002_2023T2_Q1_NA.pdf

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.

Question 2 MCQ · 4.0 marks

Consider the control flow graph (CFG) below. [[IMAGE:a9326a83b38e73ed_2_0]] What are the minimum numbers of test paths are required for node and edge coverage?
Source diagram or notation
  1. Minimum 1 test path for both node and edge coverage.
  2. Minimum 2 test paths for both node and edge coverage.
  3. Minimum 1 test path for node coverage and 2 test paths for edge coverage.
  4. Minimum 2 test path for node coverage and 3 test paths for edge coverage.

A published solution is not available for this question yet.

Question 3 MCQ · 4.0 marks

Match the following. [[IMAGE:a9326a83b38e73ed_3_1]]
Source diagram or notation
  1. 1-D, 2-A, 3-C, 4-B
  2. 1-D, 2-C, 3-A, 4-B
  3. 1-B, 2-C, 3-A, 4-D
  4. 1-B, 2-A, 3-C, 4-D

A published solution is not available for this question yet.

Question 4 MCQ · 4.0 marks

Consider the CFG given below and answer the subquestions. [[IMAGE:a9326a83b38e73ed_4_2]]
Find the number of test requirements for edge pair coverage.
Source diagram or notation
  1. 9
  2. 10
  3. 11
  4. 12

A published solution is not available for this question yet.

Question 5 MCQ · 6.0 marks

Consider the CFG given below and answer the subquestions. [[IMAGE:a9326a83b38e73ed_4_2]]
Find the number of simple paths.
Source diagram or notation
  1. 13
  2. 25
  3. 37
  4. 42

A published solution is not available for this question yet.

Question 6 MCQ · 8.0 marks

Consider the CFG given below and answer the subquestions. [[IMAGE:a9326a83b38e73ed_4_2]]
Find the number of prime paths.
Source diagram or notation
  1. 12
  2. 13
  3. 14
  4. 15

A published solution is not available for this question yet.

Question 7 MCQ · 8.0 marks

[[IMAGE:a9326a83b38e73ed_6_3]]
Source diagram or notation
  1. 1-B, 2-A, 3-C
  2. 1-B, 2-C, 3-A
  3. 1-C, 2-B, 3-A
  4. 1-C, 2-A, 3-B

A published solution is not available for this question yet.

Question 8 MCQ · 8.0 marks

Consider the following control flow graph (CFG). [[IMAGE:a9326a83b38e73ed_7_4]] From the following code segments identify the one that is best presented by the given CFG.
Source diagram or notation
  1. [[IMAGE:a9326a83b38e73ed_7_5]]
    Source diagram or notation
  2. [[IMAGE:a9326a83b38e73ed_7_6]]
    Source diagram or notation
  3. [[IMAGE:a9326a83b38e73ed_8_7]]
    Source diagram or notation
  4. [[IMAGE:a9326a83b38e73ed_8_8]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 9 MSQ · 8.0 marks

[[IMAGE:a9326a83b38e73ed_9_9]]
Source diagram or notation
  1. [[IMAGE:a9326a83b38e73ed_9_10]]
    Source diagram or notation
  2. [[IMAGE:a9326a83b38e73ed_9_11]]
    Source diagram or notation
  3. [[IMAGE:a9326a83b38e73ed_10_12]]
    Source diagram or notation
  4. [[IMAGE:a9326a83b38e73ed_10_13]]
    Source diagram or notation
  5. [[IMAGE:a9326a83b38e73ed_10_14]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 10 MCQ · 6.0 marks

Consider the finite state machine (FSM) as given below. [[IMAGE:a9326a83b38e73ed_10_15]] Identify the statement that correctly describes the given FSM.
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 11 MCQ · 6.0 marks

[[IMAGE:a9326a83b38e73ed_12_16]]
Source diagram or notation
  1. testcase1()
  2. testcase2()
  3. testcase3()
  4. testcase4()

A published solution is not available for this question yet.

Question 12 MCQ · 6.0 marks

Consider the CFG given below. [[IMAGE:a9326a83b38e73ed_13_17]] Identify the number of linearly independent paths.
Source diagram or notation
  1. 3
  2. 4
  3. 5
  4. 6

A published solution is not available for this question yet.

Question 13 MCQ · 6.0 marks

[[IMAGE:a9326a83b38e73ed_14_18]]
Source diagram or notation
  1. [[IMAGE:a9326a83b38e73ed_14_19]]
    Source diagram or notation
  2. [[IMAGE:a9326a83b38e73ed_14_20]]
    Source diagram or notation
  3. [[IMAGE:a9326a83b38e73ed_14_21]]
    Source diagram or notation
  4. [[IMAGE:a9326a83b38e73ed_14_22]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 14 MSQ · 6.0 marks

Identify the statement(s) that are true about graph coverage criteria.
  1. Node coverage subsumes both edge coverage and edge pair coverage.
  2. Prime path coverage subsumes both edge Coverage and all duPaths Coverage.
  3. All duPaths Coverage subsumes both all uses coverage and all defs coverage.
  4. Edge pair coverage subsumes both all uses coverage and all defs coverage.

A published solution is not available for this question yet.

Question 15 MCQ · 6.0 marks

Consider the annotated CFG given below and answer the subquestions. [[IMAGE:a9326a83b38e73ed_16_23]]
How many du-pairs are there for the variable z?
Source diagram or notation
  1. 8
  2. 9
  3. 10
  4. 11

A published solution is not available for this question yet.

Question 16 MCQ · 6.0 marks

Consider the annotated CFG given below and answer the subquestions. [[IMAGE:a9326a83b38e73ed_16_23]]
How many unique du-paths are there for the variable z?
Source diagram or notation
  1. 4
  2. 5
  3. 6
  4. 7

A published solution is not available for this question yet.

Question 17 MSQ · 4.0 marks

Which of the following integration testing techniques may use scaffolding?
  1. Top-down
  2. Bottom-up
  3. Sandwich
  4. Big bang

A published solution is not available for this question yet.

Question 18 MSQ · 4.0 marks

Consider the annotated CFG given below. [[IMAGE:a9326a83b38e73ed_18_24]] Identify the test case input(s) that test the path [s, v, x, y, z].
Source diagram or notation
  1. {a = 10, b = 20, c = 15}
  2. {a = 10, b = 20, c = 30}
  3. {a = 30, b = 20, c = 30}
  4. {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.