Quiz Space

May 2023 term · Software Testing · BSCS3002

Software Testing Quiz 2: 6 August 2023 (May 2023 term)

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

Updated

Official paper: IIT M DEGREE AN3 EXAM QPE3 06 Aug 2023 · No negative marking.

Question 1

+5 marksOne or more correct options

Identify the predicate(s) which are tautology.

Select all that apply.

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

Correct answers

  • A
  • D

Question 2

+4 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • B

Question 3

+5 marksOne correct option

Based on the above data, answer the given subquestions.

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

  1. A

    {1, 2, 3, 4} x {5, 6, 7, 8}

  2. B

    {1, 2, 4} x {5, 6, 8}

  3. C

    {1, 2, 4} x {5, 7, 8}

  4. D

    (1, 5), (2, 6), (4, 8)

Show answer

Correct answer

  • B

    {1, 2, 4} x {5, 6, 8}

Question 4

+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

    {1, 2, 3, 4} × {5, 6, 7, 8}

  2. B

    {1, 2, 4} × {5, 6, 8}

  3. C

    {1, 2, 4} × {5, 7, 8}

  4. D

    (1, 5), (2, 6), (4, 8)

Show answer

Correct answer

  • D

    (1, 5), (2, 6), (4, 8)

Question 5

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

    (3, 7) for p = false, no feasible pair for p = true

  2. B

    (3, 7) for p = true, no feasible pair for p = false

  3. C

    (1, 5), (3, 7), (4, 8)

  4. D

    (1, 5), (2, 6), (4, 8)

Show answer

Correct answer

  • B

    (3, 7) for p = true, no feasible pair for p = false

Question 6

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

Correct answer

  • D

Question 7

+4 marksOne correct option

At LINE-1 two instances of symbolic execution are created. Identify the path constraints applicable to those.

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

Correct answer

  • C

Question 8

+4 marksOne correct option

Suppose that DART technique is applied for testing the code. Identify the path constraint that represents an equivalence class of input vectors containing all input values that leads to the abort statement at LINE-2.

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

Correct answer

  • B

Question 9

+7 marksOne correct option

From among the following identify the set of concrete test inputs that all the instances of symbolic execution.

  1. A

    {x = 1, y = 1}, {x = 10, y = 5}, {x = 5, y = 10}

  2. B

    {x = 10, y = 10}, {x = -5, y = 10}

  3. C

    {x = 10, y = -5}, {x = -5, y = 10}

  4. D

    {x = 10, y = 10}, {x = 3, y = 5}, {x = 5, y = 10}

Show answer

Correct answer

  • A

    {x = 1, y = 1}, {x = 10, y = 5}, {x = 5, y = 10}

Question 10

+4 marksOne correct option

A software organization wants to develop a file sharing platform for its customers. As a part of requirement gathering process, the developers team explore the requirements pertaining to the data privacy, security, accessibility, or other legal compliance. What kind of requirements these are?

  1. A

    Functional requirements

  2. B

    User requirements

  3. C

    Regulatory requirements

  4. D

    Non-functional requirements

Show answer

Correct answer

  • C

    Regulatory requirements

Question 11

+4 marksOne correct option

In which kind of functional testing multiple test inputs are selected by considering different combinations of equivalence classes?

  1. A

    Equivalence class partitioning

  2. B

    Boundary value analysis

  3. C

    Decision tables

  4. D

    Random testing

Show answer

Correct answer

  • C

    Decision tables

Question 12

+5 marksOne correct option

Based on the above data, answer the given subquestions.

What is the minimum number of tests required to satisfy each choice coverage (ECC) criterion?

  1. A

    4

  2. B

    3

  3. C

    9

  4. D

    36

Show answer

Correct answer

  • A

    4

Question 13

+5 marksOne correct option

Based on the above data, answer the given subquestions.

What is the minimum number of tests required (considering same test case to cover more than one unique pair of values) to satisfy each pair-wise coverage (PWC) criterion?

  1. A

    4

  2. B

    8

  3. C

    15

  4. D

    36

Show answer

Correct answer

  • C

    15

Question 14

+7 marksOne correct option

Based on the above data, answer the given subquestions.

Suppose the base choice test is (annualIncome = 2LK, age = 20, gender = ’MALE’). What is the minimum number of tests required (including the base choice test case) to satisfy each base choice coverage (BCC) criterion?

  1. A

    4

  2. B

    8

  3. C

    15

  4. D

    36

Show answer

Correct answer

  • B

    8

Question 15

+7 marksOne correct option
  1. A

    3

  2. B

    5

  3. C

    4

  4. D

    2

Show answer

Correct answer

  • B

    5

Question 16

+5 marksOne correct option

Which of the graph coverage criteria is applicable to FSM (Finite State Machine) to execute every state?

  1. A

    Node coverage

  2. B

    Edge coverage

  3. C

    Edge pair coverage

  4. D

    Data flow coverage

Show answer

Correct answer

  • A

    Node coverage

Question 17

+5 marksOne correct option

Find the cyclomatic complexity of the function fact.

  1. A

    2

  2. B

    3

  3. C

    4

  4. D

    5

Show answer

Correct answer

  • B

    3

Question 18

+7 marksOne correct option

Find the number of test requirements for prime path coverage.

  1. A

    6

  2. B

    7

  3. C

    8

  4. D

    9

Show answer

Correct answer

  • A

    6

Question 19

+5 marksOne or more correct options

Select all that apply.

  1. A

    [1, 4]

  2. B

    [1, 4, 2, 1]

  3. C

    [1, 4, 2, 1, 4]

  4. D

    [1, 2, 3, 4, 2, 4]

Show answer

Correct answers

  • A

    [1, 4]

  • C

    [1, 4, 2, 1, 4]