0
0
Software Engineeringknowledge~10 mins

Critical path method in Software Engineering - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the earliest start time for a task in the Critical Path Method.

Software Engineering
earliest_start = [1]
Drag options to blanks, or click blank then click option'
Aduration
B0
Clatest_finish
Dtotal_float
Attempts:
3 left
💡 Hint
Common Mistakes
Using duration as the earliest start time.
Confusing earliest start with latest finish.
2fill in blank
medium

Complete the code to calculate the total float of a task.

Software Engineering
total_float = latest_start - [1]
Drag options to blanks, or click blank then click option'
Aearliest_start
Bduration
Cearliest_finish
Dlatest_finish
Attempts:
3 left
💡 Hint
Common Mistakes
Using duration instead of earliest start.
Confusing latest finish with latest start.
3fill in blank
hard

Fix the error in the code to calculate the earliest finish time of a task.

Software Engineering
earliest_finish = earliest_start [1] duration
Drag options to blanks, or click blank then click option'
A-
B*
C+
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Using subtraction instead of addition.
Using multiplication or division incorrectly.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps tasks to their total float if the float is greater than zero.

Software Engineering
floats = {task: [1] for task, [2] in tasks.items() if [1] > 0}
Drag options to blanks, or click blank then click option'
Atotal_float
Bduration
Cfloat_value
Dstart_time
Attempts:
3 left
💡 Hint
Common Mistakes
Using duration instead of total float.
Using inconsistent variable names.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps task names in uppercase to their durations, but only for tasks with duration greater than 5.

Software Engineering
result = { [1]: [2] for [3], duration in tasks.items() if duration > 5}
Drag options to blanks, or click blank then click option'
Atask.upper()
Bduration
Ctask
Dduration.upper()
Attempts:
3 left
💡 Hint
Common Mistakes
Using duration.upper() which is invalid.
Mixing up task and duration variables.