uiz Space

September 2024 term · Software Testing · BSCS3002

Software Testing Quiz 2: 1 December 2024 (September 2024 term)

The IIT Madras BS Software Testing (Software Testing) Quiz 2 paper sat on 1 Dec 2024, in the September 2024 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
18

Updated

Official paper: IIT M DEGREE AN EXAM QDB2 01 Dec 2024 · No negative marking.

Question 1

+5 marksOne correct option

Which of the following types of blackbox testing is most suitable for handling multiple inputs 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 2

+5 marksOne correct option

Consider the following annotated CFG.

  1. A

    1-B, 2-A, 3-C

  2. B

    1-B, 2-C, 3-A

  3. C

    1-A, 2-B, 3-C

  4. D

    1-A, 2-C, 3-B

Show answer

Correct answer

  • A

    1-B, 2-A, 3-C

Question 3

+5 marksOne correct option

Which of the following testing types evaluates the user interface, aesthetics, etc. of a software product?

  1. A

    Stress testing

  2. B

    Performance testing

  3. C

    Usability testing

  4. D

    Regression testing

Show answer

Correct answer

  • C

    Usability testing

Question 4

+5 marksOne correct option

Match the following from the perspective of different kinds of couplings based on the interfaces.

  1. A

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

  2. B

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

  3. C

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

  4. D

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

Show answer

Correct answer

  • B

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

Question 5

+5 marksOne correct option

How many test cases are required to achieve predicate coverage over a predicate with n clauses?

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

Correct answer

  • B

Question 6

+6 marksOne correct option

Suppose we need to test a program that takes a number of integers as input. The minimum and maximum numbers of integers to be input are 5 and 10 respectively. Identify the correct set of BVA (Boundary Value Analysis) test cases from the following options.

  1. A

    Two test cases: (1) 5 integers as input and (2) 10 integers as input

  2. B

    Three test cases: (1) 5 integers as input, (2) 10 integers as input, and (3) 7 integers as input

  3. C

    Five test cases: (1) 5 integers as input, (2) 10 integers as input, (3) 7 integers as input, (4) 6 integers as input, and (5) 9 integers as input

  4. D

    Five test cases: (1) 5 integers as input, (2) 10 integers as input, (3) 7 integers as input, (4) 4 integers as input, and (5) 11 integers as input

Show answer

Correct answer

  • D

    Five test cases: (1) 5 integers as input, (2) 10 integers as input, (3) 7 integers as input, (4) 4 integers as input, and (5) 11 integers as input

Question 7

+6 marksOne correct option

Consider input space partitioning (ISP) for a program that computes the scholarship amount to be disbursed to the school students as presented in the table below, consisting of characteristics and blocks.

Consider the base choice given below:
grade = 9.6 attendance = 85% gender = Male
What is the minimum number of tests (including the base choice) required to satisfy base choice coverage (BCC) criterion?

  1. A

    3

  2. B

    6

  3. C

    12

  4. D

    18

Show answer

Correct answer

  • B

    6

Question 8

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

Correct answer

  • D

Question 9

+6 marksOne correct option

Consider the method below:

Consider the problem of finding a set of test cases which satisfies RICC for the method compute. Which of the following statements is true?
Please note that the variable t needs to be re-written in terms of inputs in the second predicate to achieve various coverage criteria. We use the predicate x < y to represent t.

  1. A

    We get some feasible pairs when predicate p = (t || z == 0) being true and also when p = (t || z == 0) being false.

  2. B

    We get some feasible pairs when predicate p = (t || z == 0) being true. But no feasible pairs when p = (t || z == 0) being false.

  3. C

    We get some feasible pairs when predicate p = (t || z == 0) being false. But no feasible pairs when p = (t || z == 0) being true.

  4. D

    No feasible pairs when predicate p = (t || z == 0) being true, and also when p = (t || z == 0) being true.

Show answer

Correct answer

  • B

    We get some feasible pairs when predicate p = (t || z == 0) being true. But no feasible pairs when p = (t || z == 0) being false.

Question 10

+6 marksOne correct option

Consider the CFG given below.

From among the given options, identify the code segment that can be correctly presented by given CFG.

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

Correct answer

  • B

Question 11

+6 marksOne correct option

Consider the following code segment.

Based on the above data, answer the given subquestions.

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 12

+6 marksOne correct option

Consider the following code segment.

Based on the above data, answer the given subquestions.

Suppose the 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 lead to the abort statement at LINE-2.

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

Correct answer

  • D

Question 13

+6 marksOne correct option

Consider the following code segment.

Based on the above data, answer the given subquestions.

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

  1. A

    {(a = 1, b = 2, c = 3), (a = 3, b = 3, c = 3), (a = 1, b = 3, c = 3)}

  2. B

    {(a = 1, b = 2, c = 3), (a = 3, b = 2, c = 1), (a = 1, b = 6, c = 3)}

  3. C

    {(a = 3, b = 2, c = 2), (a = 3, b = 2, c = 3), (a = 1, b = 6, c = 3)}

  4. D

    {(a = 3, b = 2, c = 2), (a = 1, b = 4, c = 3), (a = 1, b = 2, c = 3)}

Show answer

Correct answer

  • B

    {(a = 1, b = 2, c = 3), (a = 3, b = 2, c = 1), (a = 1, b = 6, c = 3)}

Question 14

+5 marksOne correct option

Based on the above data, answer the given subquestions.

From among the options, identify the one that covers all the CACC pairs for the clause a.

  1. A

    (1,5), (1,6), (2,5), (2,6)

  2. B

    (3,4), (3,8), (7,4), (7,8)

  3. C

    (1,5), (2,6)

  4. D

    (2,4), (5,7)

Show answer

Correct answer

  • A

    (1,5), (1,6), (2,5), (2,6)

Question 15

+5 marksOne correct option

Based on the above data, answer the given subquestions.

From among the options, identify the one that covers all the RACC pairs for the clause a.

  1. A

    (1,5), (1,6), (2,5), (2,6)

  2. B

    (3,4), (3,8), (7,4), (7,8)

  3. C

    (1,5), (2,6)

  4. D

    (2,4), (5,7)

Show answer

Correct answer

  • C

    (1,5), (2,6)

Question 16

+6 marksOne correct option

Based on the above data, answer the given subquestions.

What are the minimum numbers of test paths required for node coverage and edge coverage of the given CFG?

  1. A

    One test path for both node coverage and edge coverage.

  2. B

    One test path for node coverage and two test paths for edge coverage.

  3. C

    Two test paths for node coverage and one test path for edge coverage.

  4. D

    Two test paths for both node coverage and edge coverage.

Show answer

Correct answer

  • B

    One test path for node coverage and two test paths for edge coverage.

Question 17

+6 marksOne correct option

Based on the above data, answer the given subquestions.

How many prime paths are present in the given CFG?

  1. A

    6

  2. B

    7

  3. C

    8

  4. D

    9

Show answer

Correct answer

  • D

    9

Question 18

+5 marksOne correct option

Based on the above data, answer the given subquestions.

Identify the set of test paths that provides prime path coverage.

  1. A

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

  2. B

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

  3. C

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

  4. D

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

Show answer

Correct answer

  • D

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