Quiz Space

September 2023 term · Software Testing · BSCS3002

Software Testing Quiz 2: 3 December 2023 (September 2023 term)

The IIT Madras BS Software Testing (Software Testing) Quiz 2 paper sat on 3 Dec 2023, in the September 2023 term: 18 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
18
Marks
100
Duration
120 min
MCQ
16
MSQ
2

Updated

Official paper: IIT M DEGREE AN2 EXAM QDB2 03 Dec 2023 · No negative marking.

Question 1

+5 marksOne correct option

Suppose a mobile application for hotel room booking has a requirement that the language interface be available in all prominent Indian languages. Identify the correct type of the requirement.

  1. A

    Business requirement

  2. B

    User requirement

  3. C

    Regulatory requirement

  4. D

    Non-functional requirement

Show answer

Correct answer

  • B

    User requirement

Question 2

+5 marksOne correct option

Consider a banking web application that determines the annual interest rate applied to a housing loan (only) based on the tenure (number of years to repay the loan). The annual interest rate is calculated as follows:
• The tenure can be 1 to 20 years.
• If the tenure is between 1 and 5 years, then the rate is 11%.
• If the tenure is between 6 and 10 years, then the rate is 10%.
• If the tenure is between 11 and 15 years, then the rate is 9%.
• If the tenure is between 16 and 20 years, then the rate is 8.5%
What is the minimum number of test cases to be prepared for testing the application using the equivalence class partitioning technique?

  1. A

    4

  2. B

    5

  3. C

    6

  4. D

    7

Show answer

Correct answer

  • C

    6

Question 3

+5 marksOne correct option

For a predicate p with n clauses, how many test cases need to be prepared for all combinations coverage?

  1. A

    n − 1

  2. B

    2ⁿ

  3. C

    n²

  4. D

    n!

Show answer

Correct answer

  • B

    2ⁿ

Question 4

+5 marksOne correct option

In an FSM (Finite State Machine), which of the following is represented as preconditions?

  1. A

    Conditions that must be true for transitions to be taken.

  2. B

    Changes to variables that cause transitions to be taken.

  3. C

    The initial state of the FSM.

  4. D

    The possible changes from one state to another.

Show answer

Correct answer

  • A

    Conditions that must be true for transitions to be taken.

Question 5

+5 marksOne correct option

Modules interact with each other using well-defined interfaces. Which of the following interfaces allows data and control both to be passed in both directions between two modules?

  1. A

    Procedure call interface

  2. B

    Message passing interface

  3. C

    Shared memory interface

  4. D

    All of these

Show answer

Correct answer

  • A

    Procedure call interface

Question 6

+5 marksOne or more correct options

Suppose we need to test a program that takes an integer as input. The input domain can be partitioned into 2 equivalence classes: an input x is valid if 10 < x < 100, and the rest are invalid inputs. Identify the correct set(s) of BVA (Boundary Value Analysis) test cases for the valid partition from the following options.

Select all that apply.

  1. A

    {x = 10, x = 15, x = 100}

  2. B

    {x = 11, x = 15, x = 99}

  3. C

    {x = 10, x = 11, x = 15, x = 99, x = 100}

  4. D

    {x = 10, x = 11, x = 12, x = 15, x = 98, x = 99, x = 100}

Show answer

Correct answers

  • C

    {x = 10, x = 11, x = 15, x = 99, x = 100}

  • D

    {x = 10, x = 11, x = 12, x = 15, x = 98, x = 99, x = 100}

Question 7

+5 marksOne or more correct options

Consider the annotated control flow graph (CFG) given below.

Which of the following test case inputs will result in test path(s) that visit(s) the edge (4, 6) ?

Select all that apply.

  1. A

    {x = 10, y = 30, z = 20}

  2. B

    {x = 30, y = 30, z = 20}

  3. C

    {x = 30, y = 20, z = 10}

  4. D

    {x = 30, y = 10, z = 20}

Show answer

Correct answers

  • A

    {x = 10, y = 30, z = 20}

  • D

    {x = 30, y = 10, z = 20}

Question 8

+6 marksOne correct option

Consider input space partitioning (ISP) for a program that computes the annual interest rate of a fixed deposit scheme presented in the table below, consisting of characteristics and blocks.

What is the minimum number of tests (including the base choice) required to satisfy base choice coverage (BCC) criterion?

  1. A

    6

  2. B

    7

  3. C

    8

  4. D

    9

Show answer

Correct answer

  • C

    8

Question 9

+6 marksOne correct option

Consider the following truth table for predicate p.

With reference to the truth table row numbers (Row*#*) above, identify the GACC pairs for clause a from the following options?

  1. A

    Row (2, 4) only

  2. B

    Row (1, 2) only

  3. C

    Rows (1, 3) and (2, 4)

  4. D

    Rows (1, 4) and (2, 3)

Show answer

Correct answer

  • A

    Row (2, 4) only

Question 10

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

Correct answer

  • C

Question 11

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

Correct answer

  • C

Question 12

+6 marksOne correct option

Consider the annotated CFG given below.

Which of the following criteria does the set of paths below satisfy?
{[1, 2, 4, 5, 6, 8], [1, 2, 4, 5, 7, 8], [1, 2, 3, 5, 6, 8]}

  1. A

    All-defs coverage

  2. B

    All-uses coverage

  3. C

    All du-paths coverage

  4. D

    None of these

Show answer

Correct answer

  • A

    All-defs coverage

Question 13

+6 marksOne correct option

Based on the above data, answer the given subquestions.

Which of the following represents pa, the conditions under which the clause a determines p?

  1. A

    ¬b ∨ c

  2. B

    ¬b ∨ ¬c

  3. C

    ¬b ∧ ¬c

  4. D

    b ∧ c

Show answer

Correct answer

  • B

    ¬b ∨ ¬c

Question 14

+6 marksOne correct option

Based on the above data, answer the given subquestions.

From the given options, identify all pairs of test requirements to satisfy restricted active clause coverage (RACC) for clause a.

  1. A

    {(a = F, b = T, c = T), (a = F, b = F, c = T)
    {(a = F, b = T, c = F), (a = F, b = F, c = F)

  2. B

    {(a = T, b = T, c = F), (a = F, b = F, c = T)
    {(a = T, b = F, c = T), (a = F, b = F, c = F)
    {(a = T, b = F, c = F), (a = F, b = T, c = F)

  3. C

    {(a = T, b = T, c = F), (a = F, b = T, c = F)
    {(a = T, b = F, c = T), (a = F, b = F, c = T)
    {(a = T, b = F, c = F), (a = F, b = F, c = F)

  4. D

    {(a = T, b = T, c = F), (a = F, b = T, c = F)
    {(a = T, b = T, c = F), (a = F, b = F, c = T)
    {(a = T, b = F, c = T), (a = F, b = T, c = F)
    {(a = T, b = F, c = T), (a = F, b = F, c = T)

Show answer

Correct answer

  • C

    {(a = T, b = T, c = F), (a = F, b = T, c = F)
    {(a = T, b = F, c = T), (a = F, b = F, c = T)
    {(a = T, b = F, c = F), (a = F, b = F, c = F)

Question 15

+6 marksOne correct option

Based on the above data, answer the given subquestions.

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

Correct answer

  • C

Question 16

+6 marksOne correct option

Based on the above data, answer the given subquestions.

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

Correct answer

  • A

Question 17

+5 marksOne correct option

Based on the above data, answer the given subquestions.

Which of the following test paths achieves node coverage, but not edge coverage?

  1. A

    [1, 2, 6]

  2. B

    [1, 2, 3, 4, 5, 2, 6]

  3. C

    [1, 2, 3, 5, 2, 6]

  4. D

    [1, 2, 3, 5, 2, 3, 4, 5, 2, 6]

Show answer

Correct answer

  • B

    [1, 2, 3, 4, 5, 2, 6]

Question 18

+6 marksOne correct option

Based on the above data, answer the given subquestions.

Identify the total number of test requirements in prime path coverage.

  1. A

    9

  2. B

    10

  3. C

    11

  4. D

    12

Show answer

Correct answer

  • D

    12