0
0
Agentic AIml~10 mins

Why complex tasks need planning in Agentic AI - Test Your Understanding

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

Complete the code to print the first step in a complex task plan.

Agentic AI
print('Step 1: [1] the problem clearly.')
Drag options to blanks, or click blank then click option'
Aforget
Bdefine
Cskip
Dignore
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing words that mean ignoring or skipping the problem.
2fill in blank
medium

Complete the code to show the importance of breaking a task into smaller parts.

Agentic AI
print('Break the task into [1] parts to make it easier.')
Drag options to blanks, or click blank then click option'
Asmaller
Blarger
Cfaster
Dharder
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'larger' which makes the task harder.
3fill in blank
hard

Fix the error in the code that plans the order of steps.

Agentic AI
steps = ['Define problem', 'Gather info', 'Analyze data']
plan = sorted(steps, key=lambda x: [1])
print(plan)
Drag options to blanks, or click blank then click option'
Ax
Bx.upper()
Cx.lower()
Dlen(x)
Attempts:
3 left
💡 Hint
Common Mistakes
Sorting by length changes the order unexpectedly.
4fill in blank
hard

Fill both blanks to create a dictionary mapping steps to their order numbers.

Agentic AI
plan_order = {step: [1] for [2], step in enumerate(steps)}
print(plan_order)
Drag options to blanks, or click blank then click option'
Aindex
Bstep
Ci
Dnumber
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the variables or using wrong names.
5fill in blank
hard

Fill all three blanks to filter and list steps that contain the word 'data'.

Agentic AI
filtered_steps = [[1] for [2] in steps if '[3]' in [2]]
print(filtered_steps)
Drag options to blanks, or click blank then click option'
Astep
Bs
Cdata
Dinfo
Attempts:
3 left
💡 Hint
Common Mistakes
Using different variable names or wrong filter words.