Quiz Space

September 2024 term · Software Testing · BSCS3002

Software Testing Quiz 1: 27 October 2024, Set 2 (September 2024 term)

The IIT Madras BS Software Testing (Software Testing) Quiz 1 paper sat on 27 Oct 2024, in the September 2024 term, set 2: 21 questions for 103 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
21
Marks
103
Duration
120 min
MCQ
13
MSQ
6
Written
2

Updated

Official paper: 2024 Oct27: · No negative marking.

Question 1

+1 markOne correct option

THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : SOFTWARE TESTING (COMPUTER BASED EXAM)" ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT? CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN. (IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)

  1. A

    YES

  2. B

    NO

Show answer

Correct answer

  • A

    YES

Question 2

+6 marksOne correct option

Based on the above data, answer the given subquestions.

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

  • C

    8

Question 3

+6 marksOne or more correct options

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.

From the following options, identify the set(s) of test paths that provide edge-pair coverage.

Select all that apply.

  1. A

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

  2. B

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

  3. C

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

  4. D

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

Show answer

Correct answers

  • C

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

  • D

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

Question 4

+6 marksOne correct option
Figure from the original question paper
  1. A

    3

  2. B

    4

  3. C

    5

  4. D

    6

Show answer

Correct answer

  • B

    4

Question 5

+6 marksOne correct option

Consider a prime path [1, 2, 5, 6] and a test path P=[1, 2, 3, 4, 2, 3, 4, 5, 6]. Which of the following sub-paths is toured by P with a side-trip but not a detour?

  1. A

    [3, 4, 2, 3]

  2. B

    [3, 4, 5, 6]

  3. C

    [1, 2, 3, 4]

  4. D

    [2, 3, 4, 5]

Show answer

Correct answer

  • A

    [3, 4, 2, 3]

Question 6

+6 marksOne correct option
Figure from the original question paper
  1. A

    It accepts all strings that have odd number of 0s and odd number of 1s.

  2. B

    It accepts all strings that have even number of 0s and even number of 1s.

  3. C

    It accepts all strings that have odd number of 0s and even number of 1s.

  4. D

    It accepts all strings that have even number of 0s and odd number of 1s.

Show answer

Correct answer

  • B

    It accepts all strings that have even number of 0s and even number of 1s.

Question 7

+6 marksOne correct option

At which process maturity level is the objective of testing to reduce the risk associated with software usage, wherein testers and developers collaborate to reduce risk?

  1. A

    Level-0

  2. B

    Level-1

  3. C

    Level-2

  4. D

    Level-3

  5. E

    Level-4

Show answer

Correct answer

  • D

    Level-3

Question 8

+6 marksOne correct option
Figure from the original question paper
  1. A

    b > 100

  2. B

    a - b 100

  3. C

    a - b 100

  4. D

    a - b < 0 && a*b <= 100

Show answer

Correct answer

  • C

    a - b 100

Question 9

+5 marksOne correct option

Consider using a memory block to interface between two modules, where the modules can read from or write to, while a third module can create the memory block. Identify the interface between the modules.

  1. A

    Procedure call interface

  2. B

    Shared memory interface

  3. C

    Message-passing interface

  4. D

    None of these

Show answer

Correct answer

  • B

    Shared memory interface

Question 10

+5 marksOne correct option

Which of the following integration testing approaches does not require scaffolding?

  1. A

    Top-down

  2. B

    Bottom-up

  3. C

    Sandwich

  4. D

    Big bang

Show answer

Correct answer

  • D

    Big bang

Question 11

+5 marksOne correct option

Any single vertex with out-degree _____________, which is a decision vertex, is a DD-path. Fill in the blank with appropriate option.

  1. A

    = 0

  2. B

    < 2

  3. C

    = 1

  4. D

    ≥ 2

Show answer

Correct answer

  • D

    ≥ 2

Question 12

+5 marksOne correct option

The inter-procedural DU pairs are defined by the (1) of variables before calls to and returns from the called units and the_____(2)______ inside modules and after calls. Fill in the blanks with the appropriate option.

  1. A

    (1) first definitions, (2) first uses

  2. B

    (1) first definitions, (2) last uses

  3. C

    (1) last definitions, (2) first uses

  4. D

    (1) last definitions, (2) last uses

Show answer

Correct answer

  • C

    (1) last definitions, (2) first uses

Question 13

+5 marksOne or more correct options

Which of the following can be white-box testing?

Select all that apply.

  1. A

    Unit testing

  2. B

    Integration testing

  3. C

    System testing

  4. D

    Acceptance testing

  5. E

    Beta testing

Show answer

Correct answers

  • A

    Unit testing

  • B

    Integration testing

  • C

    System testing

Question 14

+5 marksOne or more correct options
Figure from the original question paper

Select all that apply.

  1. A

    Only node coverage.

  2. B

    Node coverage and edge coverage.

  3. C

    Edge coverage but not edge-pair coverage.

  4. D

    Edge-pair coverage.

Show answer

Correct answers

  • B

    Node coverage and edge coverage.

  • C

    Edge coverage but not edge-pair coverage.

Question 15

+5 marksOne or more correct options
Figure from the original question paper

Select all that apply.

  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper
Show answer

Correct answers

  • B
    Figure from the original question paper
  • D
    Figure from the original question paper

Question 16

+6 marksOne or more correct options
Figure from the original question paper

Select all that apply.

  1. A

    testCase1()

  2. B

    testCase2()

  3. C

    testCase3()

  4. D

    testCase4()

Show answer

Correct answers

  • C

    testCase3()

  • D

    testCase4()

Question 17

+6 marksOne or more correct options
Figure from the original question paper

Select all that apply.

  1. A

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

  2. B

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

  3. C

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

  4. D

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

Show answer

Correct answers

  • B

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

  • C

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

Question 18

+6 marksOne correct option

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.

How many du-pairs are there for the variable x?

  1. A

    2

  2. B

    3

  3. C

    4

  4. D

    5

Show answer

Correct answer

  • C

    4

Question 19

+5 marksOne correct option

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.

How many unique du-paths are there for the variable x?

  1. A

    2

  2. B

    3

  3. C

    4

  4. D

    5

Show answer

Correct answer

  • B

    3

Question 20

+1 markWritten answer

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.
Show answer

A written answer, not marked automatically.

Question 21

+1 markWritten answer

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.
Show answer

A written answer, not marked automatically.