uiz Space

September 2025 term · Software Testing · BSCS3002

Software Testing Quiz 2: 23 November 2025 (September 2025 term)

The IIT Madras BS Software Testing (Software Testing) Quiz 2 paper sat on 23 Nov 2025, in the September 2025 term: 20 questions for 100 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
20
Marks
100
Duration
120 min
MCQ
19
MSQ
1

Updated

Official paper: IIT M IMPROVEMENT AN EXAM QIA2 23 Nov 2025 · No negative marking.

Question 1

+5 marksOne correct option

Which of the following structural graph coverage criteria subsumes All DU-Paths Coverage on a data flow graph?

  1. A

    Edge-pair coverage

  2. B

    Edge coverage

  3. C

    Prime path coverage

  4. D

    Node coverage

Show answer

Correct answer

  • C

    Prime path coverage

Question 2

+5 marksOne correct option

Consider four partitions with blocks
,
,
, and
.What is the minimum number of tests required to satisfy Each Choice Coverage (ECC) criterion?

  1. A

    8

  2. B

    4

  3. C

    5

  4. D

    7

Show answer

Correct answer

  • B

    4

Question 3

+5 marksOne correct option

Consider the predicate
. Which of the following options represents
, i.e. the

conditions under which clause
determines
?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 4

+5 marksOne correct option

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. A

    User requirement

  2. B

    Business requirement

  3. C

    Regulatory requirement

  4. D

    Non-functional requirement

Show answer

Correct answer

  • A

    User requirement

Question 5

+5 marksOne correct option

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. A

    3

  2. B

    5

  3. C

    4

  4. D

    6

Show answer

Correct answer

  • B

    5

Question 6

+5 marksOne correct option

Active Clause Coverage (ACC) is equivalent to which of the following classical coverage criteria for source code?

  1. A

    Branch coverage

  2. B

    Decision coverage

  3. C

    Modified condition decision coverage (MCDC)

  4. D

    Statement coverage

Show answer

Correct answer

  • C

    Modified condition decision coverage (MCDC)

Question 7

+5 marksOne correct option

Consider the following range for a product's warranty period.

.
Which of the following test inputs would satisfy Boundary Value Analysis (BVA) for the given partition?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 8

+5 marksOne correct option

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
true outcomes

followed by a false. Consider each
as a fresh symbolic value.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 9

+5 marksOne or more correct options

Consider the predicate
. Which of the following options are true?

Select all that apply.

  1. A

    The predicate is in CNF.

  2. B

    There are 2³ possible valuations for this predicate.

  3. C

    The predicate is in DNF.

  4. D

    There are 2⁶ possible valuations for this predicate.

Show answer

Correct answers

  • A

    The predicate is in CNF.

  • D

    There are 2⁶ possible valuations for this predicate.

Question 10

+5 marksOne correct option

Consider the predicate
and its truth table given below.

Note that the blank cells represent the value
in the truth table.

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
?

  1. A

    (2,5)

  2. B

    (2,6)

  3. C

    (1,5)

  4. D

    (1,8)

Show answer

Correct answer

  • C

    (1,5)

Question 11

+5 marksOne correct option

Consider the predicate
and its truth table given below.

Note that the blank cells represent the value
in the truth table.

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
?

  1. A

    (1, 3) for
    , no feasible pair for

  2. B

    (1, 4) for
    , no feasible pair for

  3. C

    (2, 4) for
    , no feasible pair for

  4. D

    (2, 6) for
    , no feasible pair for

Show answer

Correct answer

  • D

    (2, 6) for
    , no feasible pair for

Question 12

+5 marksOne correct option

Consider the control flow graph (CFG),
, where

• Set of vertices

• Set of edges

• Initial vertex

• Final vertex
Based on the above data, answer the given subquestions.

What is the cyclomatic complexity of
?

  1. A

    3

  2. B

    4

  3. C

    5

  4. D

    6

Show answer

Correct answer

  • A

    3

Question 13

+5 marksOne correct option

Consider the control flow graph (CFG),
, where

• Set of vertices

• Set of edges

• Initial vertex

• Final vertex
Based on the above data, answer the given subquestions.

How many test requirements are there for edge-pair coverage on
?

  1. A

    9

  2. B

    7

  3. C

    10

  4. D

    8

Show answer

Correct answer

  • B

    7

Question 14

+5 marksOne correct option

Consider the control flow graph (CFG),
, where

• Set of vertices

• Set of edges

• Initial vertex

• Final vertex
Based on the above data, answer the given subquestions.

What is the minimum number of test paths needed to achieve edge coverage on
.

  1. A

    1

  2. B

    2

  3. C

    3

  4. D

    4

Show answer

Correct answer

  • B

    2

Question 15

+5 marksOne correct option

Consider the following data flow graph and answer the subsequent questions.

How many test requirements are there to satisfy All-Defs Coverage for variable x?

  1. A

    3

  2. B

    1

  3. C

    2

  4. D

    4

Show answer

Correct answer

  • C

    2

Question 16

+5 marksOne correct option

Consider the following data flow graph and answer the subsequent questions.

How many test requirements are there to satisfy All-Uses Coverage for variable x?

  1. A

    5

  2. B

    6

  3. C

    7

  4. D

    4

Show answer

Correct answer

  • B

    6

Question 17

+5 marksOne correct option

Consider the following data flow graph and answer the subsequent questions.

Which of the following is not a def-clear path for variable x?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 18

+5 marksOne correct option

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
and
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.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 19

+5 marksOne correct option

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
and
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:
.
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.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 20

+5 marksOne correct option

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
and
respresent the symbolic values for the variables a and b respectively, in the method process. Answer the subsequent questions.

Which of the following sets of concrete test inputs execute all instances of symbolic execution for the method process?

  1. A

    {a = 4, b = 8}, {a = 4, b = 6}

  2. B

    {a = 6, b = 4}, {a = 0, b = 0}

  3. C

    {a = 0, b = 8}, {a = 4, b = 0}

  4. D

    {a = -1, b = 1}, {a = 4, b = 4}

Show answer

Correct answer

  • B

    {a = 6, b = 4}, {a = 0, b = 0}