uiz Space

January 2026 term · Software Testing · BSCS3002

Software Testing Quiz 1: 15 March 2026 (January 2026 term)

The IIT Madras BS Software Testing (Software Testing) Quiz 1 paper sat on 15 Mar 2026, in the January 2026 term: 22 questions for 102 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
22
Marks
102
Duration
120 min
MCQ
17
MSQ
3
Written
2

Updated

Official paper: Software Testing 15 Mar 26 · No negative marking.

Question 1

+5 marksOne correct option

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.

  1. A

    Level 1

  2. B

    Level 2

  3. C

    Level 3

  4. D

    Level 4

Show answer

Correct answer

  • D

    Level 4

Question 2

+5 marksOne correct option

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.

  1. A

    Statement i) is correct and Statement ii) is incorrect.

  2. B

    Statement ii) is correct and Statement i) is incorrect.

  3. C

    Both statements are incorrect.

  4. D

    Both statements are correct.

Show answer

Correct answer

  • D

    Both statements are correct.

Question 3

+5 marksOne correct option

Which of the following options best describes the difference between test requirements and test cases?

  1. A

    Test requirements define specific input values, while test cases define test objectives.

  2. B

    Test requirements represent the required coverage criteria, whereas test cases define an execution to satisfy one or more of those requirements.

  3. C

    Test requirements are created after executing test cases to measure test effectiveness.

  4. D

    Test cases and test requirements are interchangeable terms used at different stages of the testing process.

Show answer

Correct answer

  • B

    Test requirements represent the required coverage criteria, whereas test cases define an execution to satisfy one or more of those requirements.

Question 4

+5 marksOne correct option

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.

  1. A

    Statement i) is correct and Statement ii) is incorrect.

  2. B

    Statement ii) is correct and Statement i) is incorrect.

  3. C

    Both statements are incorrect.

  4. D

    Both statements are correct.

Show answer

Correct answer

  • B

    Statement ii) is correct and Statement i) is incorrect.

Question 5

+5 marksOne correct option

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.

  1. A

    Top-down

  2. B

    Bottom-up

  3. C

    Big bang

  4. D

    Sandwich

Show answer

Correct answer

  • C

    Big bang

Question 6

+5 marksOne correct option

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?

  1. A

    External file interface

  2. B

    Message passing interface

  3. C

    Procedure call interface

  4. D

    Shared memory interface

Show answer

Correct answer

  • B

    Message passing interface

Question 7

+5 marksOne correct option

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.

  1. A

    Statement i) and iii) are correct. Statement ii) is incorrect.

  2. B

    Statement i) is correct. Statement ii) and iii) are incorrect.

  3. C

    Statement ii) and iii) are correct. Statement i) is incorrect.

  4. D

    Statement i) and ii) are correct. Statement iii) is incorrect.

Show answer

Correct answer

  • A

    Statement i) and iii) are correct. Statement ii) is incorrect.

Question 8

+5 marksOne correct option

Which of the following types of testing is done by end customer to ensure that the delivered products meets the committed requirements?

  1. A

    Unit Testing

  2. B

    Integration Testing

  3. C

    Acceptance Testing

  4. D

    System Testing

Show answer

Correct answer

  • C

    Acceptance Testing

Question 9

+5 marksOne correct option

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.

  1. A

    number of prime paths

  2. B

    number of linearly independent paths

  3. C

    number of DD-paths

  4. D

    number of edges

Show answer

Correct answer

  • B

    number of linearly independent paths

Question 10

+5 marksOne correct option

Which of the following graph coverage criteria is equivalent to transition coverage on a finite state machine (FSM)?

  1. A

    Node coverage

  2. B

    Edge coverage

  3. C

    Edge-pair coverage

  4. D

    Prime path coverage

Show answer

Correct answer

  • B

    Edge coverage

Question 11

+5 marksOne correct option

Edge coverage on a CFG is equivalent to which of the following classical coverage criteria?

  1. A

    Loop coverage

  2. B

    Branch coverage

  3. C

    Decision coverage

  4. D

    Statement coverage

Show answer

Correct answer

  • B

    Branch coverage

Question 12

+5 marksOne or more correct options

Which of the following options represent a valid condition for a DD-path in a control flow graph (CFG)?

Select all that apply.

  1. A

    It consists of a single vertex with in-degree (initial vertex).

  2. B

    It consists of a single vertex with in-degree or out-degree .

  3. C

    It consists of a single vertex with in-degree and out-degree as 1.

  4. D

    It is a maximal chain of length .

Show answer

Correct answers

  • A

    It consists of a single vertex with in-degree (initial vertex).

  • C

    It consists of a single vertex with in-degree and out-degree as 1.

Question 13

+5 marksOne or more correct options

Prime path coverage subsumes which of the following coverage criteria for control and data flow graphs?

Select all that apply.

  1. A

    Edge-pair coverage

  2. B

    All Uses Coverage

  3. C

    Edge coverage

  4. D

    Complete path coverage

Show answer

Correct answers

  • B

    All Uses Coverage

  • C

    Edge coverage

Question 14

+5 marksOne or more correct options

Consider the following Java code for class, there are some faults in the implementation. The method needs to be tested using the JUnit test class .

Identify which of the test cases would be able to uncover the faults in the program.

Consider the following Java code for  class, there are some faults in the implementation. The method  needs to be tested

Select all that apply.

  1. A

    —

  2. B

    —

  3. C

    —

  4. D

    —

Show answer

Correct answers

  • C

    —

  • D

    —

Question 15

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

  1. A

    9

  2. B

    10

  3. C

    11

  4. D

    8

Show answer

Correct answer

  • B

    10

Question 16

+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 prime path coverage?

  1. A

    11

  2. B

    12

  3. C

    10

  4. D

    13

Show answer

Correct answer

  • B

    12

Question 17

+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 the given CFG?

  1. A

    3

  2. B

    4

  3. C

    5

  4. D

    6

Show answer

Correct answer

  • A

    3

Question 18

+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 for All-Defs-Coverage for variable ?

  1. A

    1

  2. B

    2

  3. C

    3

  4. D

    4

Show answer

Correct answer

  • B

    2

Question 19

+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 for All-Uses-Coverage for variable ?

  1. A

    3

  2. B

    4

  3. C

    5

  4. D

    6

Show answer

Correct answer

  • C

    5

Question 20

+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 unique du-paths are there for variable ? Note: Do not consider subsumption for the du-paths.

  1. A

    3

  2. B

    4

  3. C

    5

  4. D

    6

Show answer

Correct answer

  • D

    6

Question 21

+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 22

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