Quiz Space

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

Question 9: Consider the method below: Consider the problem of findin…

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 9 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. Q10Consider the CFG given below. From among the given options, identify the code segment that can be correctly presented b…
  10. Q11Consider the following code segment. Based on the above data, answer the given subquestions. At LINE-1, two instances o…
  11. Q12Consider the following code segment. Based on the above data, answer the given subquestions. Suppose the DART technique…
  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.