CS FundamentalsVery hardProduct company interview · GATE level

Activities (duration in days; predecessors): A (3; -), B (5; A), C (4; A), D (2; C), E (6; B), F (5; C), G (4; B, D), H (3; E, F, G). How many activities have zero total float, and what is the total float of F?

  1. A. 4 activities; F has 1 day
  2. B. 5 activities; F has 2 days
  3. C. 4 activities; F has 2 days
  4. D. 3 activities; F has 2 days

Correct answer: C. 4 activities; F has 2 days

Forward pass: A 0-3, B 3-8, C 3-7, D 7-9, E 8-14, F 7-12, G 9-13 (waits for D), H 14-17. Duration 17 days on A-B-E-H, so those 4 activities have zero float. Backward pass: H starts at 14 latest, so F's latest finish is 14 and its float is 14 - 12 = 2. G: latest finish 14, float 1; D: latest finish = G's latest start 10, float 1; C: latest finish = min(D's 8, F's 9) = 8, float 1. A slip of 2 days in F is absorbed; a third day delays the project.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic