Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a basic dashboard header for agent monitoring.
Agentic_ai
<header>
<h1>[1]</h1>
</header> Drag options to blanks, or click blank then click option'
Attempts:
3 left
2fill in blank
mediumComplete the code to add a navigation bar with a link to the agent list.
Agentic_ai
<nav>
<ul>
<li><a href="[1]">Agents</a></li>
</ul>
</nav> Drag options to blanks, or click blank then click option'
Attempts:
3 left
3fill in blank
hardFix the error in the code to correctly display the agent status with color coding.
Agentic_ai
<span class="status [1]">Active</span>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
4fill in blank
hardFill both blanks to create a filter function that returns agents with status 'online'.
Agentic_ai
def filter_agents(agents): return [agent for agent in agents if agent.[1] == '[2]']
Drag options to blanks, or click blank then click option'
Attempts:
3 left
5fill in blank
hardFill all three blanks to create a dictionary comprehension that maps agent names to their CPU usage if usage is above 50%.
Agentic_ai
high_usage = {agent.[1]: agent.[2] for agent in agents if agent.[3] > 50} Drag options to blanks, or click blank then click option'
Attempts:
3 left
