Quiz Space

Software Testing · Quiz 2 · 1 Dec 2024 · September 2024 term

Question 12: Consider the following code segment. Based on the above …

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 12 of 18 in the IIT Madras BS Software Testing (Software Testing) Quiz 2 paper sat on 1 Dec 2024, in the September 2024 term (IIT M DEGREE AN EXAM QDB2 01 Dec 2024). It carries 6 marks.

More questions from this paper

  1. Q1Which of the following types of blackbox testing is most suitable for handling multiple inputs by considering different…
  2. Q2Consider the following annotated CFG.
  3. Q3Which of the following testing types evaluates the user interface, aesthetics, etc. of a software product?
  4. Q4Match the following from the perspective of different kinds of couplings based on the interfaces.
  5. Q5How many test cases are required to achieve predicate coverage over a predicate with n clauses?
  6. Q6Suppose we need to test a program that takes a number of integers as input. The minimum and maximum numbers of integers…
  7. Q7Consider input space partitioning (ISP) for a program that computes the scholarship amount to be disbursed to the schoo…
  8. Q8Figure question
  9. Q9Consider the method below: Consider the problem of finding a set of test cases which satisfies RICC for the method comp…
  10. Q10Consider the CFG given below. From among the given options, identify the code segment that can be correctly presented b…
  11. Q11Consider the following code segment. Based on the above data, answer the given subquestions. At LINE-1, two instances o…
  12. Q13Consider the following code segment. Based on the above data, answer the given subquestions. From among the following, …
  13. Q14From among the options, identify the one that covers all the CACC pairs for the clause a.
  14. Q15From among the options, identify the one that covers all the RACC pairs for the clause a.
  15. Q16What are the minimum numbers of test paths required for node coverage and edge coverage of the given CFG?
  16. Q17How many prime paths are present in the given CFG?
  17. Q18Identify the set of test paths that provides prime path coverage.