uiz Space

January 2026 term · Software Testing · BSCS3002

Software Testing Quiz 2: 12 April 2026 (January 2026 term)

The IIT Madras BS Software Testing (Software Testing) Quiz 2 paper sat on 12 Apr 2026, in the January 2026 term: 24 questions for 104 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
24
Marks
104
Duration
120 min
MCQ
19
MSQ
1
Written
4

Updated

Official paper: Sw Testing 07 Apr 26 · No negative marking.

Question 1

+5 marksOne correct option

Edge-pair coverage is not subsumed by prime path coverage due to which of the following reasons?

  1. A

    Because prime path coverage does not subsume edge coverage.

  2. B

    Because all edge-pairs are simple paths.

  3. C

    Because edge-pair coverage requires self-loops to be visited.

  4. D

    Edge-pair coverage is subsumed by prime path coverage.

Show answer

Correct answer

  • C

    Because edge-pair coverage requires self-loops to be visited.

Question 2

+5 marksOne correct option

Consider four partitions with blocks , , , and . If the base choice is . What is the total number of tests required to satisfy Base Choice Coverage (BCC) criterion?

  1. A

    10

  2. B

    11

  3. C

    12

  4. D

    14

Show answer

Correct answer

  • B

    11

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

  • D

    —

Question 4

+5 marksOne correct option

A university is designing an online course management system for students and faculty. One requirement of the system is that instructors must be able to create and manage course content, including assignments and quizzes. What type of requirement does this represent?

  1. A

    Functional requirement

  2. B

    Non-functional requirement

  3. C

    Regulatory requirement

  4. D

    Business requirement

Show answer

Correct answer

  • A

    Functional requirement

Question 5

+5 marksOne correct option

Consider a program that calculates a fixed shipping cost for online orders based on package weight (in kilograms) using these rules: • If weight is between 0.5 to 1.4 kg, shipping cost is Rs. 5.00. • If weight is between 1.5 to 4.9 kg, shipping cost is Rs. 10.00. • If weight is between 5.0 to 9.9 kg, shipping cost is Rs. 20.00. • If weight is 10.0 kg or above, shipping cost is Rs. 50.00. Assume weight is measured and recorded rounded to one decimal place. How many equivalence class partitions can be identified for this input domain?

  1. A

    3

  2. B

    4

  3. C

    5

  4. D

    6

Show answer

Correct answer

  • C

    5

Question 6

+5 marksOne correct option

Cyclomatic complexity represents the number of _____________ in the control flow graph of a program.

  1. A

    prime paths

  2. B

    loops

  3. C

    test paths

  4. D

    linearly independent paths

Show answer

Correct answer

  • D

    linearly independent paths

Question 7

+5 marksOne correct option

Consider the following range for a thermostat's allowable temperature setting (in degrees Celsius). Which of the following test input sets would satisfy maximal Boundary Value Analysis (BVA) for the given partition?

  1. A

    —

  2. B

    —

  3. C

    —

  4. D

    —

Show answer

Correct answer

  • B

    —

Question 8

+5 marksOne correct option

Consider the following code segment for symbolic testing.

Choose the appropriate path constraint (PC) for the loop with a sequence of outcomes followed by a . Consider each as a fresh symbolic value.

Consider the following code segment for symbolic testing.
  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper
Show answer

Correct answer

  • A
    Figure from the original question paper

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

  2. B

    The predicate is in CNF.

  3. C

    There are possible valuations for this predicate

  4. D

    There are possible valuations for this predicate

Show answer

Correct answers

  • A

    The predicate is in DNF.

  • D

    There are possible valuations for this predicate

Question 10

+5 marksOne correct option

Based on the above data, answer the given subquestions.

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 clause ?

  1. A

    (3,7)

  2. B

    (3,8)

  3. C

    (3,6)

  4. D

    (2,5)

Show answer

Correct answer

  • A

    (3,7)

Question 11

+5 marksOne correct option

Based on the above data, answer the given subquestions.

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 clause ?

  1. A

    (2, 4) for , no feasible pair for

  2. B

    (3, 4) for , no feasible pair for

  3. C

    (1, 3) for , no feasible pair for

  4. D

    (1, 4) for , no feasible pair for

Show answer

Correct answer

  • B

    (3, 4) 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

    5

  2. B

    6

  3. C

    3

  4. D

    4

Show answer

Correct answer

  • C

    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

    8

  2. B

    7

  3. C

    9

  4. D

    10

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 acheive edge coverage on .

  1. A

    3

  2. B

    2

  3. C

    1

  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.

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

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

  1. A

    1

  2. B

    2

  3. C

    3

  4. D

    4

Show answer

Correct answer

  • B

    2

Question 16

+5 marksOne correct option

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

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

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

  1. A

    5

  2. B

    4

  3. C

    3

  4. D

    2

Show answer

Correct answer

  • C

    3

Question 17

+5 marksOne correct option

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

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

How many test requirements are there to satisfy All DU-Paths Coverage for variable ?

  1. A

    5

  2. B

    4

  3. C

    3

  4. D

    2

Show answer

Correct answer

  • B

    4

Question 18

+5 marksOne correct option

Consider that concolic testing technique (DART) is used to test the following code segment.

Assume that , , and respresent the symbolic values for the variables , , and respectively, in the method . Answer the subsequent questions.

Consider that concolic testing technique (DART) is used to test the following code segment.
Figure from the original question paper
  1. A

    —

  2. B

    —

  3. C

    —

  4. D

    —

Show answer

Correct answer

  • C

    —

Question 19

+5 marksOne correct option

Consider that concolic testing technique (DART) is used to test the following code segment.

Assume that , , and respresent the symbolic values for the variables , , and respectively, in the method . Answer the subsequent questions.

Consider that concolic testing technique (DART) is used to test the following code segment.

Consider that DART generates a random input: . Which path constraint (PC) is generated for the next execution at ? 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

  • B

    —

Question 20

+5 marksOne correct option

Consider that concolic testing technique (DART) is used to test the following code segment.

Assume that , , and respresent the symbolic values for the variables , , and respectively, in the method . Answer the subsequent questions.

Consider that concolic testing technique (DART) is used to test the following code segment.

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

  1. A

    {x = 5, y = 2, z = 3}, {x = 4, y = 8, z = 2}

  2. B

    {x = 5, y = 2, z = 3}, {x = 4, y = 8, z = 2}, {x = 5, y = 8, z = 10}

  3. C

    {x = 5, y = 3, z = 5}, {x = 4, y = 8, z = 2}, {x = 5, y = 8, z = 10}

  4. D

    {x = 5, y = 2, z = 3}, {x = 4, y = 8, z = 2}, {x = 5, y = 8, z = 4}

Show answer

Correct answer

  • B

    {x = 5, y = 2, z = 3}, {x = 4, y = 8, z = 2}, {x = 5, y = 8, z = 10}

Question 21

+1 markWritten answer

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.
Show answer

A written answer, not marked automatically.

Question 22

+1 markWritten answer

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.

Show answer

A written answer, not marked automatically.

Question 23

+1 markWritten answer

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

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

A written answer, not marked automatically.

Question 24

+1 markWritten answer

Consider that concolic testing technique (DART) is used to test the following code segment.

Assume that , , and respresent the symbolic values for the variables , , and respectively, in the method . Answer the subsequent questions.

Consider that concolic testing technique (DART) is used to test the following code segment.
Show answer

A written answer, not marked automatically.