TGPSC HMWSSB Manager 2015 Paper 2 CSE · Question 63
Question 63 of the TSPSC Manager (Engineering), HMWSSB, 2015: Paper 2 (Computer Science & Information Technology) (1 November 2015). Try it first, then open the answer. The explanation is in the practice app with the All-in-One Pass.
The following program is to be tested for statement coverage,
begin f(a=b) { S1; exit; } else if (c=d) { s2; } else { S3; exit; } s4 endThe test cases T1,T2,T3 and T4 given below are expressed in terms of the properties satisfied by the values of variables a, b, c & d. The exact values are not given: T1: a, b, c &d are all equal T2: a ,b, c & d are all distinct T3: a=b & c!=d T4: a!=b & c=d Which of the test suites given below ensures coverage of statement S1,S2, S3 & S4
- T1,T2,T3
- T2,T3
- T3,T4
- T1,T2,T4
Show answer
Answer: (4) T1,T2,T4
Explanation: open it in the practice app. It needs the ₹149 All-in-One Pass: one payment for every exam on the site.