MauryaHub PYQ Practice

cs3002_2025T3_Q2_NA.pdf

Software Testing · Quiz 2 · Sep 2025

← 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 25 MCQ · 4.0 marks

Using the COCOMO model and the given cost drivers, what is the final estimated effort (in person- months) for the project?
  1. 22.0 PM
  2. 23.5 PM
  3. 31.6 PM
  4. 35.0 PM

A published solution is not available for this question yet.

Question 26 MCQ · 4.0 marks

If QWave Solutions wants to complete the project in 4 months, how many full-time developers are required?
  1. 5
  2. 6
  3. 7
  4. 8 **Sw Testing** **Section Id :** 640653121907 **Section Number :** 2 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 14 **Number of Questions to be attempted :** 14 **Section Marks :** 100 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No **Enable Mark as Answered Mark for Review and** No **Clear Response :** **Section Maximum Duration :** 0 **Section Minimum Duration :** 0 **Section Time In :** Minutes **Maximum Instruction Time :** 0

A published solution is not available for this question yet.

Question 28 MCQ · 5.0 marks

Which of the following structural graph coverage criteria subsumes All DU-Paths Coverage on a data flow graph?
  1. Edge-pair coverage
  2. Edge coverage
  3. Prime path coverage
  4. Node coverage

A published solution is not available for this question yet.

Question 29 MCQ · 5.0 marks

Consider four partitions with blocks [[IMAGE:4ca6f33985da5487_2_0]] , [[IMAGE:4ca6f33985da5487_2_1]] , [[IMAGE:4ca6f33985da5487_2_2]] , and [[IMAGE:4ca6f33985da5487_2_3]] .What is the minimum number of tests required to satisfy Each Choice Coverage (ECC) criterion?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. 8
  2. 4
  3. 5
  4. 7

A published solution is not available for this question yet.

Question 30 MCQ · 5.0 marks

Consider the predicate [[IMAGE:4ca6f33985da5487_3_4]] . Which of the following options represents [[IMAGE:4ca6f33985da5487_3_5]] , i.e. the conditions under which clause [[IMAGE:4ca6f33985da5487_3_6]] determines [[IMAGE:4ca6f33985da5487_3_7]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:4ca6f33985da5487_3_8]]
    Source diagram or notation
  2. [[IMAGE:4ca6f33985da5487_3_9]]
    Source diagram or notation
  3. [[IMAGE:4ca6f33985da5487_3_10]]
    Source diagram or notation
  4. [[IMAGE:4ca6f33985da5487_3_11]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 31 MCQ · 5.0 marks

An organization is developing a mobile application for a food delivery service. One of the features specified is that the user should be able to track their order in real-time on the app. What kind of requirement does this represent?
  1. User requirement
  2. Business requirement
  3. Regulatory requirement
  4. Non-functional requirement

A published solution is not available for this question yet.

Question 32 MCQ · 5.0 marks

Consider a system that categorizes job applicants based on their cumulative work experience according to the following categories: • If work experience is between 0 to 1 year, the applicant is categorized as Entry-Level. • If work experience is between 2 to 3 years, the applicant is categorized as Junior. • If work experience is between 4 to 5 years, the applicant is categorized as Mid-Level. • If work experience is 6 years or more, the applicant is categorized as Senior. Assume that work experience is expressed in whole years. How many equivalence class partitions can be identified in this scenario?
  1. 3
  2. 5
  3. 4
  4. 6

A published solution is not available for this question yet.

Question 33 MCQ · 5.0 marks

Active Clause Coverage (ACC) is equivalent to which of the following classical coverage criteria for source code?
  1. Branch coverage
  2. Decision coverage
  3. Modified condition decision coverage (MCDC)
  4. Statement coverage

A published solution is not available for this question yet.

Question 34 MCQ · 5.0 marks

Consider the following range for a product's warranty period. [[IMAGE:4ca6f33985da5487_5_12]] . Which of the following test inputs would satisfy Boundary Value Analysis (BVA) for the given partition?
Source diagram or notation
  1. [[IMAGE:4ca6f33985da5487_5_13]]
    Source diagram or notation
  2. [[IMAGE:4ca6f33985da5487_5_14]]
    Source diagram or notation
  3. [[IMAGE:4ca6f33985da5487_5_15]]
    Source diagram or notation
  4. [[IMAGE:4ca6f33985da5487_5_16]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 35 MCQ · 5.0 marks

Consider the following code segment for symbolic testing. // Compute the sum of positive integers, return on any negative input. int series(int a) { int sum = a; int i = 0; while(true) { r = sym_input(); if(r < 0) { break; } sum = sum + r; i++; } return sum; } Choose the appropriate path constraint (PC) for the while loop with a sequence of [[IMAGE:4ca6f33985da5487_5_17]] true outcomes followed by a false. Consider each [[IMAGE:4ca6f33985da5487_5_18]] as a fresh symbolic value.
Source diagram or notationSource diagram or notation
  1. [[IMAGE:4ca6f33985da5487_6_19]]
    Source diagram or notation
  2. [[IMAGE:4ca6f33985da5487_6_20]]
    Source diagram or notation
  3. [[IMAGE:4ca6f33985da5487_6_21]]
    Source diagram or notation
  4. [[IMAGE:4ca6f33985da5487_6_22]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 36 MSQ · 5.0 marks

Consider the predicate [[IMAGE:4ca6f33985da5487_6_23]] . Which of the following options are true?
Source diagram or notation
  1. The predicate is in CNF.
  2. There are 2\(^{3}\) possible valuations for this predicate.
  3. The predicate is in DNF.
  4. There are 2\(^{6}\) possible valuations for this predicate.

A published solution is not available for this question yet.

Question 37 MCQ · 5.0 marks

Consider the predicate [[IMAGE:4ca6f33985da5487_6_24]] and its truth table given below. Note that the blank cells represent the value [[IMAGE:4ca6f33985da5487_6_25]] in the truth table. [[IMAGE:4ca6f33985da5487_7_26]] Based on the above data ,answer the given subquestions.
Considering the row numbers (#) given in the truth table, which of the following is a CACC pair for the clause [[IMAGE:4ca6f33985da5487_7_27]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. (2,5)
  2. (2,6)
  3. (1,5)
  4. (1,8)

A published solution is not available for this question yet.

Question 38 MCQ · 5.0 marks

Consider the predicate [[IMAGE:4ca6f33985da5487_6_24]] and its truth table given below. Note that the blank cells represent the value [[IMAGE:4ca6f33985da5487_6_25]] in the truth table. [[IMAGE:4ca6f33985da5487_7_26]] Based on the above data ,answer the given subquestions.
Considering the row numbers (#) given in the truth table, which of the following is a RICC pair for the clause [[IMAGE:4ca6f33985da5487_7_28]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. (1, 3) for [[IMAGE:4ca6f33985da5487_7_29]] , no feasible pair for [[IMAGE:4ca6f33985da5487_7_30]]
    Source diagram or notationSource diagram or notation
  2. (1, 4) for [[IMAGE:4ca6f33985da5487_7_31]] , no feasible pair for [[IMAGE:4ca6f33985da5487_7_32]]
    Source diagram or notationSource diagram or notation
  3. (2, 4) for [[IMAGE:4ca6f33985da5487_7_33]] , no feasible pair for [[IMAGE:4ca6f33985da5487_7_34]]
    Source diagram or notationSource diagram or notation
  4. (2, 6) for [[IMAGE:4ca6f33985da5487_8_35]] , no feasible pair for [[IMAGE:4ca6f33985da5487_8_36]]
    Source diagram or notationSource diagram or notation

A published solution is not available for this question yet.

Question 39 MCQ · 5.0 marks

Consider the control flow graph (CFG), [[IMAGE:4ca6f33985da5487_8_37]] , where • Set of vertices [[IMAGE:4ca6f33985da5487_8_38]] • Set of edges [[IMAGE:4ca6f33985da5487_8_39]] • Initial vertex [[IMAGE:4ca6f33985da5487_8_40]] • Final vertex [[IMAGE:4ca6f33985da5487_8_41]] Based on the above data, answer the given subquestions.
What is the cyclomatic complexity of [[IMAGE:4ca6f33985da5487_8_42]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. 3
  2. 4
  3. 5
  4. 6

A published solution is not available for this question yet.

Question 40 MCQ · 5.0 marks

Consider the control flow graph (CFG), [[IMAGE:4ca6f33985da5487_8_37]] , where • Set of vertices [[IMAGE:4ca6f33985da5487_8_38]] • Set of edges [[IMAGE:4ca6f33985da5487_8_39]] • Initial vertex [[IMAGE:4ca6f33985da5487_8_40]] • Final vertex [[IMAGE:4ca6f33985da5487_8_41]] Based on the above data, answer the given subquestions.
How many test requirements are there for edge-pair coverage on [[IMAGE:4ca6f33985da5487_8_43]] ?
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. 9
  2. 7
  3. 10
  4. 8

A published solution is not available for this question yet.

Question 41 MCQ · 5.0 marks

Consider the control flow graph (CFG), [[IMAGE:4ca6f33985da5487_8_37]] , where • Set of vertices [[IMAGE:4ca6f33985da5487_8_38]] • Set of edges [[IMAGE:4ca6f33985da5487_8_39]] • Initial vertex [[IMAGE:4ca6f33985da5487_8_40]] • Final vertex [[IMAGE:4ca6f33985da5487_8_41]] Based on the above data, answer the given subquestions.
What is the minimum number of test paths needed to achieve edge coverage on [[IMAGE:4ca6f33985da5487_9_44]] .
Source diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notationSource diagram or notation
  1. 1
  2. 2
  3. 3
  4. 4

A published solution is not available for this question yet.

Question 42 MCQ · 5.0 marks

Consider the following data flow graph and answer the subsequent questions. [[IMAGE:4ca6f33985da5487_9_45]]
How many test requirements are there to satisfy All-Defs Coverage for variable x?
Source diagram or notation
  1. 3
  2. 1
  3. 2
  4. 4

A published solution is not available for this question yet.

Question 43 MCQ · 5.0 marks

Consider the following data flow graph and answer the subsequent questions. [[IMAGE:4ca6f33985da5487_9_45]]
How many test requirements are there to satisfy All-Uses Coverage for variable x?
Source diagram or notation
  1. 5
  2. 6
  3. 7
  4. 4

A published solution is not available for this question yet.

Question 44 MCQ · 5.0 marks

Consider the following data flow graph and answer the subsequent questions. [[IMAGE:4ca6f33985da5487_9_45]]
Which of the following is not a def-clear path for variable x?
Source diagram or notation
  1. [[IMAGE:4ca6f33985da5487_10_46]]
    Source diagram or notation
  2. [[IMAGE:4ca6f33985da5487_10_47]]
    Source diagram or notation
  3. [[IMAGE:4ca6f33985da5487_10_48]]
    Source diagram or notation
  4. [[IMAGE:4ca6f33985da5487_10_49]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 45 MCQ · 5.0 marks

Consider that concolic testing technique (DART) is used to test the following code segment. int mean(int a, int b){ return (a + b)/2; } int square(int n) { return n * n; } int process(int a, int b) { int t1 = mean(a, b); int t2 = square(t1) - (a * b) if(t2 <= 0) { // LINE-1 abort(); // LINE-2 } return t2; } Assume that [[IMAGE:4ca6f33985da5487_11_50]] and [[IMAGE:4ca6f33985da5487_11_51]] respresent the symbolic values for the variables a and b respectively, in the method process. Answer the subsequent questions.
Identify the path constraint that represents an equivalence class of input vectors containing all inputs that lead to the abort() call at LINE-2.
Source diagram or notationSource diagram or notation
  1. [[IMAGE:4ca6f33985da5487_11_52]]
    Source diagram or notation
  2. [[IMAGE:4ca6f33985da5487_11_53]]
    Source diagram or notation
  3. [[IMAGE:4ca6f33985da5487_11_54]]
    Source diagram or notation
  4. [[IMAGE:4ca6f33985da5487_11_55]]
    Source diagram or notation

A published solution is not available for this question yet.

Question 46 MCQ · 5.0 marks

Consider that concolic testing technique (DART) is used to test the following code segment. int mean(int a, int b){ return (a + b)/2; } int square(int n) { return n * n; } int process(int a, int b) { int t1 = mean(a, b); int t2 = square(t1) - (a * b) if(t2 <= 0) { // LINE-1 abort(); // LINE-2 } return t2; } Assume that [[IMAGE:4ca6f33985da5487_11_50]] and [[IMAGE:4ca6f33985da5487_11_51]] respresent the symbolic values for the variables a and b respectively, in the method process. Answer the subsequent questions.
Consider that DART generates a random input: [[IMAGE:4ca6f33985da5487_11_56]] . Which path constraint (PC) is generated for the next execution at LINE-1? Hint: DART negates the path constraint in the current execution to get the path constraint for the next execution.
Source diagram or notationSource diagram or notationSource diagram or notation
  1. [[IMAGE:4ca6f33985da5487_11_57]]
    Source diagram or notation
  2. [[IMAGE:4ca6f33985da5487_11_58]]
    Source diagram or notation

A published solution is not available for this question yet.