Quiz Space

January 2024 term · Software Testing · BSCS3002

Software Testing End Term: 28 April 2024, Set QDB1 (January 2024 term)

The IIT Madras BS Software Testing (Software Testing) End Term paper sat on 28 Apr 2024, in the January 2024 term, set QDB1: 21 questions for 100 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
21
Marks
100
Duration
180 min
MCQ
18
MSQ
3

Updated

Official paper: IIT M DEGREE AN EXAM QDB3 28 Apr 2024 · No negative marking.

Question 1

+4 marksOne correct option

Backlog Management Index (BMI) is an example of which kind of metrics?

  1. A

    Product quality metrics

  2. B

    In-process quality metrics

  3. C

    Maintenance quality metrics

  4. D

    Project metrics

Show answer

Correct answer

  • C

    Maintenance quality metrics

Question 2

+4 marksOne correct option

Which of the following tests is performed to monitor the system parameters, such as memory utilization, to detect memory leaks or other performance issues under the continuous expected load?

  1. A

    Load testing

  2. B

    Stress testing

  3. C

    Soak testing

  4. D

    Spike testing

Show answer

Correct answer

  • C

    Soak testing

Question 3

+4 marksOne correct option

Which type of client-side testing tries to verify Web applications by executing test cases that interrupt the normal execution sequence, like altering the control flow by pressing the back button, pressing the refresh button, or directly entering an URL into a browser?

  1. A

    Value level bypass testing

  2. B

    Parameter level bypass testing

  3. C

    Control flow level bypass testing

  4. D

    User-session data based testing

Show answer

Correct answer

  • C

    Control flow level bypass testing

Question 4

+4 marksOne correct option

Which of the following types of mutants can be killed by almost any test case?

  1. A

    Stillborn mutant

  2. B

    Trivial mutant

  3. C

    Equivalent mutant

  4. D

    Dead mutant

Show answer

Correct answer

  • B

    Trivial mutant

Question 5

+4 marksOne correct option

Which of the following is true about preconditions in Finite State Machine (FSM)?

  1. A

    They represent sets of values for (key) variables.

  2. B

    They model possible changes from one state to another

  3. C

    Those are the conditions that must be true for transitions to be made.

  4. D

    Those are the changes to the variables that cause transitions to be made.

Show answer

Correct answer

  • C

    Those are the conditions that must be true for transitions to be made.

Question 6

+4 marksOne correct option

Coupling variables are variables that are defined in one unit and used in the other. Identify the type of coupling where two units access an external object like a file.

  1. A

    Parameter coupling

  2. B

    Shared data coupling

  3. C

    External device coupling

  4. D

    Message-passing interfaces

Show answer

Correct answer

  • C

    External device coupling

Question 7

+5 marksOne correct option
  1. A

    A-4, B-1, C-3, D-2

  2. B

    A-4, B-3, C-1, D-2

  3. C

    A-3, B-1, C-4, D-2

  4. D

    A-3, B-4, C-1, D-2

Show answer

Correct answer

  • B

    A-4, B-3, C-1, D-2

Question 8

+5 marksOne correct option

Which of the following mutation operator is used in creating the above mutant?

  1. A

    Overriding Method Moving (OMM) operator

  2. B

    Argument number change (ANC) operator

  3. C

    Argument order change (AOC) operator

  4. D

    Overloading Method Change (OMC) operator

Show answer

Correct answer

  • C

    Argument order change (AOC) operator

Question 9

+5 marksOne correct option

Which of the following sets of the methods will be invoked in the above program?

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

Correct answer

  • B

Question 10

+5 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 11

+5 marksOne correct option
  1. A

    4

  2. B

    6

  3. C

    7

  4. D

    24

Show answer

Correct answer

  • A

    4

Question 12

+5 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 13

+6 marksOne correct option

Consider the code segment of a Java servlet below. The atomic sections are marked as P1, P2, P3, · · ·

Identify the component expression corresponding to the given code above.

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

Correct answer

  • C

Question 14

+6 marksOne correct option
  1. A

    Inconsistent type use

  2. B

    State definition anomaly

  3. C

    State definition inconsistency anomaly

  4. D

    State visibility anomaly

Show answer

Correct answer

  • A

    Inconsistent type use

Question 15

+5 marksOne or more correct options

What is/are the main advantages of Test-Driven Development (TDD)?

Select all that apply.

  1. A

    Fault isolation is easy

  2. B

    The final combined code size remains minimal, and it is always efficient and highly readable.

  3. C

    Low dependency on test frameworks

  4. D

    A TDD based project is ideal for pair programming one for writing code and one for testing.

Show answer

Correct answers

  • A

    Fault isolation is easy

  • D

    A TDD based project is ideal for pair programming one for writing code and one for testing.

Question 16

+5 marksOne or more correct options

Identify the test case method(s) that will fail for the given code base.

Select all that apply.

  1. A

    testcase1()

  2. B

    testcase2()

  3. C

    testcase3()

  4. D

    testcase4()

Show answer

Correct answers

  • B

    testcase2()

  • D

    testcase4()

Question 17

+4 marksOne or more correct options

Identify the predicate(s) which are in Disjunctive Normal Form (DNF)?

Select all that apply.

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

Correct answers

  • B
  • D

Question 18

+5 marksOne correct option

Based on the above data, answer the given subquestions.

Identify all pairs of rows from your table that satisfy Restricted Active Clause Coverage (RACC) with respect to clause a.

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

Correct answer

  • D

Question 19

+5 marksOne correct option

Based on the above data, answer the given subquestions.

Identify all pairs of rows from your table that satisfy Restricted Inactive Clause Coverage (RICC) with respect to clause a.

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

Correct answer

  • B

Question 20

+5 marksOne correct option

Based on the above data, answer the given subquestions.

What is the number of requirements for the edge-pair coverage of the given CFG?

  1. A

    9

  2. B

    10

  3. C

    11

  4. D

    12

Show answer

Correct answer

  • C

    11

Question 21

+5 marksOne correct option

Based on the above data, answer the given subquestions.

What is the number of requirements for the prime path coverage of the given CFG?

  1. A

    9

  2. B

    10

  3. C

    11

  4. D

    12

Show answer

Correct answer

  • A

    9