Quiz Space

January 2023 term · Software Testing · BSCS3002

Software Testing End Term: 30 April 2023 (January 2023 term)

The IIT Madras BS Software Testing (Software Testing) End Term paper sat on 30 Apr 2023, in the January 2023 term: 12 questions for 61 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
12
Marks
61
Duration
180 min
MCQ
12

Updated

Official paper: IIT M DEGREE ET1 EXAM QPE2 S1 30 Apr 2023 · No negative marking.

Question 1

+4 marksOne correct option

Which of the following types of testing is performed to find the upper limit capacity of the system and also to determine how the system performs if the current load goes well above the expected maximum?

  1. A

    Load testing

  2. B

    Stress testing

  3. C

    Soak testing

  4. D

    Spike testing

Show answer

Correct answer

  • B

    Stress testing

Question 2

+4 marksOne correct option

Which type of client-side testing can verify the inter-value constraints of the different parameters of the input, like the selected country, selected state, selected city, entered zip code, etc.?

  1. A

    Value level bypass testing

  2. B

    Parameter level bypass testing

  3. C

    Control flow level bypass testing

  4. D

    User-session data based testing

Show answer

Correct answer

  • B

    Parameter level bypass testing

Question 3

+5 marksOne correct option
  1. A

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

  2. B

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

  3. C

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

  4. D

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

Show answer

Correct answer

  • C

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

Question 4

+5 marksOne correct option

Consider the following Java code.

Consider the following Java code.

  1. A

    Actual type change (ATC) operator

  2. B

    Parent constructor deletion (PCD) operator

  3. C

    Overriding method deletion (OMD) operator

  4. D

    Hiding variable deletion (HVD) operator

Show answer

Correct answer

  • B

    Parent constructor deletion (PCD) operator

Question 5

+5 marksOne correct option
  1. A

    Conditional operator replacement

  2. B

    Logical operator replacement

  3. C

    Relational operator replacement

  4. D

    Unary Operator Insertion

Show answer

Correct answer

  • C

    Relational operator replacement

Question 6

+5 marksOne correct option

Consider a software application that needs to be tested. The application computes the percentage of discount to be given for a given total purchase price. The input to the system is an integer that represents the total purchase price, and the output is the percentage of discount to be given. The percentage of discount to be given on the total purchase price is calculated as follows:

Consider a software application that needs to be tested. The application computes the percentage of discount to be given for a given total purchase price. The input to the system is an integer that represents the total purchase price, and the output is the percentage of discount to be given. The percentage of discount to be given on the total purchase price is calculated as follows:
What is the minimum number of test cases to be prepared for testing the software system using equivalence class partitioning technique?

  1. A

    4

  2. B

    5

  3. C

    6

  4. D

    7

Show answer

Correct answer

  • B

    5

Question 7

+5 marksOne correct option

Suppose, for a particular web application, the invalid inputs cause an abnormal server error. Identify the category of server response in this case.

  1. A

    Valid response

  2. B

    Faults and failures

  3. C

    Exposure

  4. D

    None of these

Show answer

Correct answer

  • B

    Faults and failures

Question 8

+5 marksOne correct option
  1. A

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

  2. B

    The FSM accepts the input, if the number of 0s are even, and there are at leasttwo 0s.

  3. C

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

  4. D

    The FSM accepts the input, if the number of 1s are even and, there are at leasttwo 0s.

Show answer

Correct answer

  • C

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

Question 9

+5 marksOne correct option

A __________ with respect to a variable v is a simple path that is def-clear from a def of v to a use of v.
Fill in the blank with appropriate option

  1. A

    du-path

  2. B

    def-clear path

  3. C

    du-pair

  4. D

    du-tour

Show answer

Correct answer

  • A

    du-path

Question 10

+6 marksOne correct option

Consider the control flow graph (CFG) given below.

Consider the control flow graph (CFG) given below.
What is cyclomatic complexity of the above CFG?

  1. A

    2

  2. B

    3

  3. C

    4

  4. D

    5

Show answer

Correct answer

  • B

    3

Question 11

+6 marksOne correct option

Consider the CFG given below.

Consider the CFG given below.
Based on the above data, answer the given subquestions.

Identify the correct statement about node and edge coverage of the given CFG.

  1. A

    Minimum 2 test paths are required satisfy both the node and edge coverage.

  2. B

    Minimum 1 test path is required to satisfy node coverage, and minimum 2 testpaths is required to satisfy edge coverage.

  3. C

    Minimum 3 test paths are required satisfy both the node and edge coverage.

  4. D

    Minimum of 2 test path is required to satisfy node coverage, and minimum 3test paths is required to satisfy edge coverage.

Show answer

Correct answer

  • A

    Minimum 2 test paths are required satisfy both the node and edge coverage.

Question 12

+6 marksOne correct option

Consider the CFG given below.

Consider the CFG given below.
Based on the above data, answer the given subquestions.

Find the total number of prime paths in the given CFG?

  1. A

    5

  2. B

    6

  3. C

    7

  4. D

    8

Show answer

Correct answer

  • C

    7