MauryaHub PYQ Practice

cs3002_2023T3_Q1_NA.pdf

Software Testing · Quiz 1 · Sep 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 MSQ · 5.0 marks

[[IMAGE:bd4a7a6e336d17ad_2_0]]
Source diagram or notation
  1. [1, 2, 4, 5, 6]
  2. [1, 2, 3, 5, 6, 1]
  3. [1, 2, 3, 5, 2, 4, 5, 6, 1, 2, 3, 5, 6]
  4. [1, 2, 4, 5, 1, 2, 3, 5, 6]

A published solution is not available for this question yet.

Question 3 MCQ · 6.0 marks

[[IMAGE:bd4a7a6e336d17ad_3_1]] Based on the above data, answer the given subquestions.
Identify the number of test requirements for edge-pair coverage in the given CFG.
Source diagram or notation
  1. 8
  2. 9
  3. 10
  4. 11

A published solution is not available for this question yet.

Question 4 MCQ · 6.0 marks

[[IMAGE:bd4a7a6e336d17ad_3_1]] Based on the above data, answer the given subquestions.
Identify the number of prime paths in the given CFG.
Source diagram or notation
  1. 8
  2. 9
  3. 10
  4. 11

A published solution is not available for this question yet.

Question 5 MCQ · 6.0 marks

[[IMAGE:bd4a7a6e336d17ad_3_1]] Based on the above data, answer the given subquestions.
Identify the correct set of test paths in the given CFG to satisfy prime path coverage.
Source diagram or notation
  1. {[1, 2, 6], [1, 2, 3, 5, 2, 3, 4, 3, 5, 2, 6]}
  2. {[1, 2, 6], [1, 2, 3, 5, 2, 3, 5, 2, 6], [1, 2, 3, 4, 3, 4, 3, 5, 2, 6]}
  3. {[1, 2, 6], [1, 2, 3, 5, 2, 6], [1, 2, 3, 4, 3, 5, 2, 6], [1, 2, 3, 5, 2, 3, 4, 3, 5, 2, 6]}
  4. {[1, 2, 6], [1, 2, 3, 5, 2, 3, 5, 2, 6], [1, 2, 3, 4, 3, 4, 3, 5, 2, 6], [1, 2, 3, 5, 2, 3, 4, 3, 5, 2, 6]}

A published solution is not available for this question yet.

Question 6 MCQ · 5.0 marks

[[IMAGE:bd4a7a6e336d17ad_6_2]] Based on the above data, answer the given subquestions.
How many du-pairs are there for the variable x?
Source diagram or notation
  1. 8
  2. 9
  3. 13
  4. 20

A published solution is not available for this question yet.

Question 7 MCQ · 6.0 marks

[[IMAGE:bd4a7a6e336d17ad_6_2]] 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. 4
  2. 5
  3. 6
  4. 7

A published solution is not available for this question yet.

Question 8 MCQ · 6.0 marks

[[IMAGE:bd4a7a6e336d17ad_8_3]]
Source diagram or notation
  1. [[IMAGE:bd4a7a6e336d17ad_8_4]]
    Source diagram or notation
  2. [[IMAGE:bd4a7a6e336d17ad_8_5]]
    Source diagram or notation
  3. [[IMAGE:bd4a7a6e336d17ad_9_6]]
    Source diagram or notation
  4. [[IMAGE:bd4a7a6e336d17ad_9_7]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 9 MCQ · 6.0 marks

[[IMAGE:bd4a7a6e336d17ad_9_8]]
Source diagram or notation
  1. The FSM accepts the input, if the number of a’s are odd.
  2. The FSM accepts the input, if the number of a’s are even.
  3. The FSM accepts the input, if the number of b’s are odd.
  4. The FSM accepts the input, if the number of b’s are even.

A published solution is not available for this question yet.

Question 10 MCQ · 6.0 marks

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

A published solution is not available for this question yet.

Question 11 MCQ · 5.0 marks

Which of the following approaches to integration testing does not require extra software components, known as scaffolding?
  1. Top-down
  2. Bottom-up
  3. Big bang
  4. Sandwich

A published solution is not available for this question yet.

Question 12 MCQ · 5.0 marks

[[IMAGE:bd4a7a6e336d17ad_11_10]]
Source diagram or notation
  1. Parameter coupling
  2. Shared data coupling
  3. External device coupling
  4. Message-passing interfaces

A published solution is not available for this question yet.

Question 13 MCQ · 5.0 marks

In which phase of Software Development Life Cycle (SDLC), developers perform extensive unit testing and debugging?
  1. Planning and requirements definition
  2. Design and architecture
  3. Development
  4. Testing
  5. Maintenance

A published solution is not available for this question yet.

Question 14 MCQ · 5.0 marks

The total running time of BFS algorithm can be expressed as ___________ . Fill in the blank with appropriate option.
  1. [[IMAGE:bd4a7a6e336d17ad_12_11]]
    Source diagram or notation
  2. [[IMAGE:bd4a7a6e336d17ad_12_12]]
    Source diagram or notation
  3. [[IMAGE:bd4a7a6e336d17ad_12_13]]
    Source diagram or notation
  4. [[IMAGE:bd4a7a6e336d17ad_12_14]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 15 MCQ · 5.0 marks

[[IMAGE:bd4a7a6e336d17ad_13_15]]
Source diagram or notation
  1. def-clear
  2. du-path
  3. du-pair
  4. def(v)

A published solution is not available for this question yet.

Question 16 MSQ · 6.0 marks

[[IMAGE:bd4a7a6e336d17ad_13_16]]
Source diagram or notation
  1. [[IMAGE:bd4a7a6e336d17ad_13_17]]
    Source diagram or notation
  2. [[IMAGE:bd4a7a6e336d17ad_13_18]]
    Source diagram or notation
  3. [[IMAGE:bd4a7a6e336d17ad_13_19]]
    Source diagram or notation
  4. [[IMAGE:bd4a7a6e336d17ad_14_20]] [[IMAGE:bd4a7a6e336d17ad_14_21]]
    Source diagram or notationSource diagram or notation

A published solution is not available for this question yet.

Question 17 MSQ · 7.0 marks

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

A published solution is not available for this question yet.

Question 18 NAT · 5.0 marks

Consider a CFG with a single component that has 6 nodes and 9 edges. What is the cyclomatic complexity of the given CFG? Do not write the number in words, if your answer is **6**, enter 6 but not six.

    A published solution is not available for this question yet.

    Question 19 NAT · 5.0 marks

    [[IMAGE:bd4a7a6e336d17ad_16_24]]
    Source diagram or notation

      A published solution is not available for this question yet.