Software Engineering

Answer & solution
Answer: D (no official key was published)
T1 and T3 both take a==b, execute S1, then exit. T2 takes a!=b and c!=d, executes S3, then exits. T4 takes a!=b and c==d, executes S2 and then S4. Full statement coverage therefore needs T2, T4 and either T1 or T3. Of the offered suites only T1,T2,T4 meets this condition, option D.
The crucial control-flow feature is exit: neither the S1 branch nor the S3 branch reaches S4. Only T4 covers S2 and S4 together. T2 is indispensable for S3, and one of T1/T3 is indispensable for S1. Thus three tests suffice and two cannot cover all three mutually exclusive branch outcomes.