MauryaHub PYQ Practice

cs3002_2024T2_Q1_NA.pdf

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

Which type of testing is typically conducted after modifying or upgrading a software component to verify that the modified component is working correctly and other components are not damaged by the modification?
  1. Functional testing
  2. Performance testing
  3. Usability testing
  4. Regression testing

A published solution is not available for this question yet.

Question 3 MCQ · 5.0 marks

Consider an organization whose purpose in testing is to show the software’s failures. However, looking for failures is considered a negative activity, which puts testers and developers in an adversarial relationship. Determine the organization’s process maturity level based on its test goals.
  1. Level 1
  2. Level 2
  3. Level 3
  4. Level 4

A published solution is not available for this question yet.

Question 4 MCQ · 5.0 marks

[[IMAGE:94a294da0720aa10_3_0]]
Source diagram or notation
  1. Tree edges
  2. Back edges
  3. Forward edges
  4. Cross edges

A published solution is not available for this question yet.

Question 5 MCQ · 5.0 marks

[[IMAGE:94a294da0720aa10_3_1]]
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 6 MCQ · 5.0 marks

[[IMAGE:94a294da0720aa10_3_2]]
Source diagram or notation
  1. 0
  2. 1
  3. 2
  4. 3

A published solution is not available for this question yet.

Question 7 MCQ · 6.0 marks

[[IMAGE:94a294da0720aa10_4_3]]
Source diagram or notation
  1. [[IMAGE:94a294da0720aa10_4_4]]
    Source diagram or notation
  2. [[IMAGE:94a294da0720aa10_4_5]]
    Source diagram or notation
  3. [[IMAGE:94a294da0720aa10_4_6]]
    Source diagram or notation
  4. [[IMAGE:94a294da0720aa10_4_7]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 8 MCQ · 6.0 marks

[[IMAGE:94a294da0720aa10_5_8]]
Source diagram or notation
  1. It accepts all strings that have only odd number of as.
  2. It accepts all strings that have only even number of as.
  3. It accepts all strings that have odd number of as and even number of bs.
  4. It accepts all strings that have even number of as and odd number of bs.

A published solution is not available for this question yet.

Question 9 MCQ · 6.0 marks

Consider the prime path [1, 2, 4, 5] and a path P = [1, 2, 3, 2, 4, 2, 3, 4, 5]. From among the given options, identify the path with a detour but not a sidetrip.
  1. [1, 2, 4, 2, 4, 5]
  2. [1, 2, 3, 2, 4, 5]
  3. [1, 2, 3, 4, 5]
  4. [1, 2, 4, 5]

A published solution is not available for this question yet.

Question 10 MSQ · 6.0 marks

Consider the following classes for the code base to be tested and the test class. //code base: Voter.java public class Voter { private String voter_id; private String voter_name; private String state; public Voter(String i, String n, String s) { voter_id = i; voter_name = n; state = s; i public void updateName(String name) { voter_name = name; a public void updateState(String state) { state = state; } public String toString() { return voter_id +" : " + voter_name +": " + state; } [[IMAGE:94a294da0720aa10_7_10]]
Source diagram or notation
  1. [[IMAGE:94a294da0720aa10_7_11]]
    Source diagram or notation
  2. [[IMAGE:94a294da0720aa10_7_12]]
    Source diagram or notation
  3. [[IMAGE:94a294da0720aa10_7_13]]
    Source diagram or notation
  4. [[IMAGE:94a294da0720aa10_7_14]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 11 MSQ · 6.0 marks

[[IMAGE:94a294da0720aa10_8_15]]
Source diagram or notation
  1. [[IMAGE:94a294da0720aa10_8_16]]
    Source diagram or notation
  2. [[IMAGE:94a294da0720aa10_8_17]]
    Source diagram or notation
  3. [[IMAGE:94a294da0720aa10_9_18]]
    Source diagram or notation
  4. [[IMAGE:94a294da0720aa10_9_19]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 12 MCQ · 6.0 marks

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

A published solution is not available for this question yet.

Question 13 MCQ · 6.0 marks

[[IMAGE:94a294da0720aa10_9_20]] Based on the above data, answer the given subquestions.
Determine the minimum number of test paths required for prime path coverage of the given CFG.
Source diagram or notation
  1. 2
  2. 3
  3. 4
  4. 5

A published solution is not available for this question yet.

Question 14 MCQ · 6.0 marks

[[IMAGE:94a294da0720aa10_9_20]] Based on the above data, answer the given subquestions.
From the following code segments identify the one that is best presented by the given CFG.
Source diagram or notation
  1. [[IMAGE:94a294da0720aa10_10_21]]
    Source diagram or notation
  2. [[IMAGE:94a294da0720aa10_10_22]]
    Source diagram or notation
  3. [[IMAGE:94a294da0720aa10_10_23]]
    Source diagram or notation
  4. [[IMAGE:94a294da0720aa10_11_24]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 15 MCQ · 6.0 marks

[[IMAGE:94a294da0720aa10_11_25]] Based on the above data, answer the given subquestions.
What is the minimum number of test paths are required for node coverage for the given CFG?
Source diagram or notation
  1. 1
  2. 2
  3. 3
  4. 4

A published solution is not available for this question yet.

Question 16 MCQ · 5.0 marks

[[IMAGE:94a294da0720aa10_11_25]] Based on the above data, answer the given subquestions.
What is the cyclomatic complexity for the given CFG?
Source diagram or notation
  1. 2
  2. 3
  3. 4
  4. 5

A published solution is not available for this question yet.

Question 17 MCQ · 5.0 marks

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

A published solution is not available for this question yet.

Question 18 MCQ · 6.0 marks

[[IMAGE:94a294da0720aa10_13_26]] 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 19 MSQ · 5.0 marks

[[IMAGE:94a294da0720aa10_14_27]]
Source diagram or notation
  1. [1, 2, 4, 6]
  2. [1, 2, 4, 5, 6]
  3. [1, 3, 6, 1, 2, 4, 6]
  4. [1, 3, 6, 1, 2, 4, 5]       **AI** **Section Id :** 64065359425 **Section Number :** 2 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 8 **Number of Questions to be attempted :** 8 **Section Marks :** 25 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No

A published solution is not available for this question yet.