CS FundamentalsVery hardProduct-company placement · GATE CS
How many of these statements about data-flow coverage criteria are correct? 1. All-uses subsumes all-defs (when every definition reaches some use). 2. All-du-paths subsumes all-uses. 3. All-defs subsumes branch coverage. 4. Achieving all-uses guarantees all-du-paths.
- A. 1
- B. 3
- C. 2
- D. 4
Correct answer: C. 2
All-uses needs a def-clear path from each def to every reachable use, which includes reaching at least one (1), and all-du-paths needs every such simple path, which is stronger (2). All-defs can be met while branches go untaken (3 false), and all-uses needs only one path per du-pair, not all of them (4 false).
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
- The condition x > 5 and x >= 0 (x an integer) is mutated four ways. Which mutant is equivalent, so that no test can kill it?
- Under basic COCOMO organic mode (Effort = 2.4 × KLOC^1.05 person-months), how does productivity in LOC per person-month for a 100 KLOC…
- Application A maintains the Customer master data. A separate Payroll application reads that customer data from A's database to print…
- A customer-maintenance screen lets users add, change and delete customers, each with its own processing. A search screen shows customer…
- What does this code print? python ops = [lambda x: x k for k in range(1, 4)] print([op(10) for op in ops])
- What does this code print (lines joined by ' / ')? python def tag(name): def deco(f): print(name) def w(): return f'<{name}>' + f() +…