CS FundamentalsHardProduct-company placement
Activities (days; predecessors): P 5 (-), Q 6 (-), R 5 (P), S 5 (Q), T 4 (R, S). The manager can shorten only one activity by 2 days. Which choice shortens the project the most?
- A. Shorten P by 2 days
- B. Shorten R by 2 days
- C. Shorten T by 2 days
- D. Shorten S by 2 days
Correct answer: C. Shorten T by 2 days
Paths: P-R-T = 14 and Q-S-T = 15, so the project takes 15. Cutting S leaves P-R-T at 14 (project 14), while cutting T, which lies on both paths, gives 13. Cutting P or R saves nothing because they are not critical.
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
- Counting each simple condition separately (each 'and'/'or' adds one) and each loop header as one decision, what is the cyclomatic…
- For the function below, which single call executes every statement (100% statement coverage)? python def f(a, n): total = 0 for x in a: if…
- For the call f([3], 5) on the function below, what decision (branch) coverage is achieved, treating the for loop as a decision with two…
- The function below has cyclomatic complexity 3. What is the minimum number of test calls that achieves 100% branch coverage of it? python…
- A planar control-flow graph of a single function has 11 nodes and 14 edges. By the region method, McCabe's V(G) equals the number of…
- How many of these statements about coverage criteria are correct? 1. 100% branch coverage guarantees 100% statement coverage. 2. 100%…