CS FundamentalsHardProduct-company placement
After a change to functions f1, f3 and f5, a team wants the smallest regression subset that exercises all three. Tests cover: T1 {f1, f2}, T2 {f2, f3, f4}, T3 {f1, f4}, T4 {f3, f5}. Which subset works and is minimal?
- A. T2 and T3
- B. T1 and T2
- C. T1, T2 and T4
- D. T3 and T4
Correct answer: D. T3 and T4
Only T4 covers f5, and it also covers f3; adding T3 (or T1) covers f1, so two tests suffice. T2 and T3 miss f5, T1 and T2 miss f5, and T1, T2, T4 works but is not minimal.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- What is the minimum number of tests that gives 100% statement coverage of this fragment? python if a > 0: if b > 0: X() else: Y() else: Z()
- A function contains if x > 5: A() followed later by if x < 3: B(), and x is not changed between them. How many entry-to-exit paths are…
- A tester has no reliable way to know the correct output for a complex scientific simulation, so she checks that doubling every input mass…
- In which situation does a suite with 100% decision (branch) coverage still NOT achieve 100% multiple-condition coverage?
- You append line L1 to a tracked file f.txt, run git add f.txt, and then append line L2. Which statement about the three diff commands is…
- main has commits A-B-C-D. feature was created at B and has commits E-F. How many commits do git log main..feature and git log…