Quiz Space

September 2023 term · Software Testing · BSCS3002

Software Testing Quiz 1: 29 October 2023 (September 2023 term)

The IIT Madras BS Software Testing (Software Testing) Quiz 1 paper sat on 29 Oct 2023, in the September 2023 term: 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
14
MSQ
3
Written
4

Updated

Official paper: IIT M DEGREE AN2 EXAM QPE2 29 Oct 2023 · 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

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

Select all that apply.

  1. A

    [1, 2, 4, 5, 6]

  2. B

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

  3. C

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

  4. D

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

Show answer

Correct answers

  • A

    [1, 2, 4, 5, 6]

  • C

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

Question 3

+6 marksOne correct option

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.

Identify the number of test requirements for edge-pair coverage in the given CFG.

  1. A

    8

  2. B

    9

  3. C

    10

  4. D

    11

Show answer

Correct answer

  • C

    10

Question 4

+6 marksOne correct option

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.

Identify the number of prime paths in the given CFG.

  1. A

    8

  2. B

    9

  3. C

    10

  4. D

    11

Show answer

Correct answer

  • C

    10

Question 5

+6 marksOne correct option

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.

Identify the correct set of test paths in the given CFG to satisfy prime path coverage.

  1. A

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

  2. B

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

  3. C

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

  4. D

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

Show answer

Correct answer

  • D

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

Question 6

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

    8

  2. B

    9

  3. C

    13

  4. D

    20

Show answer

Correct answer

  • A

    8

Question 7

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

    4

  2. B

    5

  3. C

    6

  4. D

    7

Show answer

Correct answer

  • C

    6

Question 8

+6 marksOne correct option
Figure from the original question paper
  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 answer

  • C
    Figure from the original question paper

Question 9

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

    The FSM accepts the input, if the number of a’s are odd.

  2. B

    The FSM accepts the input, if the number of a’s are even.

  3. C

    The FSM accepts the input, if the number of b’s are odd.

  4. D

    The FSM accepts the input, if the number of b’s are even.

Show answer

Correct answer

  • A

    The FSM accepts the input, if the number of a’s are odd.

Question 10

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

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

  2. B

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

  3. C

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

  4. D

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

Show answer

Correct answer

  • B

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

Question 11

+5 marksOne correct option

Which of the following approaches to integration testing does not require extra software components, known as scaffolding?

  1. A

    Top-down

  2. B

    Bottom-up

  3. C

    Big bang

  4. D

    Sandwich

Show answer

Correct answer

  • C

    Big bang

Question 12

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

    Parameter coupling

  2. B

    Shared data coupling

  3. C

    External device coupling

  4. D

    Message-passing interfaces

Show answer

Correct answer

  • B

    Shared data coupling

Question 13

+5 marksOne correct option

In which phase of Software Development Life Cycle (SDLC), developers perform extensive unit testing and debugging?

  1. A

    Planning and requirements definition

  2. B

    Design and architecture

  3. C

    Development

  4. D

    Testing

  5. E

    Maintenance

Show answer

Correct answer

  • C

    Development

Question 14

+5 marksOne correct option

The total running time of BFS algorithm can be expressed as ___________ . Fill in the blank with appropriate option.

  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 answer

  • D
    Figure from the original question paper

Question 15

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

    def-clear

  2. B

    du-path

  3. C

    du-pair

  4. D

    def(v)

Show answer

Correct answer

  • A

    def-clear

Question 16

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

  • A
    Figure from the original question paper
  • C
    Figure from the original question paper

Question 17

+7 marksOne or more correct options
Figure from the original question paper
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

  • B

    testcase2()

  • C

    testcase3()

Question 18

+5 marksWritten answer

Consider a CFG with a single component that has 6 nodes and 9 edges. What is the cyclomatic complexity of the given CFG? Do not write the number in words, if your answer is 6, enter 6 but not six.

Show answer

A written answer, not marked automatically.

Question 19

+5 marksWritten answer
Figure from the original question paper
Show answer

A written answer, not marked automatically.

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.