Indian Institute of Technology, Madras - BS in Data Science and Applications

Practice mode — answers are hidden. Use the toolbar below to annotate.
Question Paper Name :IIT M IMPROVEMENT AN EXAM QID2 15 Mar 2026
Subject Name :2026 Mar15: IIT M AN EXAM QID2
Creation Date :2026-03-05 09:08:20
Duration :120
Total Marks :702
Display Marks:Yes
Calculator :Scientific

Group I

Sw Testing

Section : Mandatory  |  Number of Questions : 17  |  Section Marks : 100
Question Number : 1   Question Id : 6406531963329
Correct Marks : 0  |  Question Label : Multiple Choice Question

THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : SOFTWARE TESTING (COMPUTER BASED EXAM)"

ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.

(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)

Options :
Question Number : 2   Question Id : 6406531963330
Correct Marks : 5  |  Question Label : Multiple Choice Question
In an organization, software quality is regarded as an important aspect. Therefore, test engineers carefully measure and improve software quality. Identify the minimum process maturity level of this organization.
Options :
Question Number : 3   Question Id : 6406531963331
Correct Marks : 5  |  Question Label : Multiple Choice Question
Consider the following statements regarding software design and choose the correct option.
i) A module encapsulates functionality and interacts with other modules through well-defined interfaces.
ii) Interfaces define the permitted interactions between modules without exposing internal implementation details.
Options :
Question Number : 4   Question Id : 6406531963332
Correct Marks : 5  |  Question Label : Multiple Choice Question
Which of the following options best describes the difference between test requirements and test cases?
Options :
Question Number : 5   Question Id : 6406531963333
Correct Marks : 5  |  Question Label : Multiple Choice Question
Consider the following statements regarding test automation with JUnit and choose the correct option.
i) JUnit does not support test fixtures.
ii) In a test class, each test method checks an assertion and reports to the test runner whether the test failed or succeeded.
Options :
Question Number : 6   Question Id : 6406531963334
Correct Marks : 5  |  Question Label : Multiple Choice Question
In the __________ approach for integration testing, all individually tested modules are put together to construct the entire system which is tested as a whole.
Fill in the blank with correct option.
Options :
Question Number : 7   Question Id : 6406531963335
Correct Marks : 5  |  Question Label : Multiple Choice Question
Consider an email client application that sends a request to a mail server, the mail server then responds with new email messages for a user. Which type of interface does this scenario represent?
Options :
Question Number : 8   Question Id : 6406531963336
Correct Marks : 5  |  Question Label : Multiple Choice Question
Consider the following statements regarding structural graph coverage criteria, and choose the correct option.
i) Prime paths are maximal simple paths.
ii) Edge-pair coverage does not require self-loops to be visited.
iii) Test paths to achieve node and edge coverage can be obtained by simple modifications to BFS algorithm over graphs.
Options :
Question Number : 9   Question Id : 6406531963337
Correct Marks : 5  |  Question Label : Multiple Choice Question
Which of the following types of testing is done by end customer to ensure that the delivered products meets the committed requirements?
Options :
Question Number : 10   Question Id : 6406531963338
Correct Marks : 5  |  Question Label : Multiple Choice Question
The __________ in a control flow graph (CFG) represents the minimum number of paths required for basis path testing.
Fill in the blank with the appropriate option.
Options :
Question Number : 11   Question Id : 6406531963339
Correct Marks : 5  |  Question Label : Multiple Choice Question
Which of the following graph coverage criteria is equivalent to transition coverage on a finite state machine (FSM)?
Options :
Question Number : 12   Question Id : 6406531963340
Correct Marks : 5  |  Question Label : Multiple Choice Question
Edge coverage on a CFG is equivalent to which of the following classical coverage criteria?
Options :
Question Number : 13   Question Id : 6406531963341
Correct Marks : 5  |  Max. Selectable Options : 0  |  Question Label : Multiple Select Question
Which of the following options represent a valid condition for a DD-path in a control flow graph (CFG)?
Options :
Question Number : 14   Question Id : 6406531963342
Correct Marks : 5  |  Max. Selectable Options : 0  |  Question Label : Multiple Select Question
Prime path coverage subsumes which of the following coverage criteria for control and data flow graphs?
Options :
Question Number : 15   Question Id : 6406531963343
Correct Marks : 5  |  Max. Selectable Options : 0  |  Question Label : Multiple Select Question
Consider the following Java code for NumbersUtil class, there are some faults in the implementation. The method hasEven(int[] values) needs to be tested using the JUnit test class TestNumbersUtil.
public static class NumbersUtil
{
  // Inputs: A non-empty integer array
  // Effects: Returns true if any number in the array is even, else false
  // Assumptions: Throws NullPointerException if the array is null
  public static boolean hasEven(int[] values) {
      for (int i = 0; i < values.length - 1; i++) {
          if (values[i] % 2 == 1) {
              return true;
          }
      }
      return false;
  }
}

/* ----- Test Class ----- */
import static org.junit.Assert.*;
import org.junit.Test;

public class TestNumbersUtil {
  @Test
  public void testCase1() {
    int[] values = { 3, 5, 7, 8 };
    assertTrue(NumbersUtil.hasEven(values));
  }
  @Test
  public void testCase2() {
    int[] values = { 2, 9, 11, 13 };
    assertTrue(NumbersUtil.hasEven(values));
  }
  @Test
  public void testCase3() {
    int[] values = { 1, 3, 5, 7 };
    assertFalse(NumbersUtil.hasEven(values));
  }
  @Test
  public void testCase4() {
    int[] values = { 4 };
    assertTrue(NumbersUtil.hasEven(values));
  }
}
Identify which of the test cases would be able to uncover the faults in the program.
Options :
Sub-Section Number : 4  |  Question Shuffling Allowed : No
Question Id : 6406531963344   | Comprehension   | Question Numbers : (16 to 18)
Consider the control flow graph (CFG), G = {V, E}, where Based on the above data, answer the given subquestions.
1 2 3 4 5 6
Question Number : 16   Question Id : 6406531963345
Correct Marks : 5  |  Question Label : Multiple Choice Question
How many test requirements are there for edge-pair coverage?
Options :
Question Number : 17   Question Id : 6406531963346
Correct Marks : 5  |  Question Label : Multiple Choice Question
How many test requirements are there for prime path coverage?
Options :
Question Number : 18   Question Id : 6406531963347
Correct Marks : 5  |  Question Label : Multiple Choice Question
What is the cyclomatic complexity of the given CFG?
Options :
Question Id : 6406531963348   | Comprehension   | Question Numbers : (19 to 21)
Consider the following data flow graph, and answer the subsequent questions.
1 x=a y=b z=c 2 3 4 y=x x=z 5 6 print(x) print(y) print(z) x >= y x < y
Node 1: x=a, y=b, z=c  •  edge 2→3: x>=y  •  edge 2→5: x<y  •  Node 4: y=x, x=z  •  Node 6: print(x), print(y), print(z)
Question Number : 19   Question Id : 6406531963349
Correct Marks : 5  |  Question Label : Multiple Choice Question
How many test requirements are there for All-Defs-Coverage for variable x?
Options :
Question Number : 20   Question Id : 6406531963350
Correct Marks : 5  |  Question Label : Multiple Choice Question
How many test requirements are there for All-Uses-Coverage for variable x?
Options :
Question Number : 21   Question Id : 6406531963351
Correct Marks : 5  |  Question Label : Multiple Choice Question
How many unique du-paths are there for variable x?
Note: Do not consider subsumption for the du-paths.
Options :