0
0
Intro to Computingfundamentals~20 mins

Task manager and system monitoring in Intro to Computing - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Task Manager & Monitoring Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
Identify the output of the 'top' command snapshot
Given the following snapshot from the top command on a Linux system, what is the value of the CPU usage percentage for the user processes (us)?
top - 15:20:01 up 1 day,  3:45,  2 users,  load average: 0.15, 0.10, 0.05
Tasks: 150 total,   1 running, 149 sleeping,   0 stopped,   0 zombie
%Cpu(s):  5.0 us,  2.0 sy,  0.0 ni, 92.0 id,  1.0 wa,  0.0 hi,  0.0 si,  0.0 st
Mem:   8000000k total,  2000000k used,  6000000k free,   500000k buffers
Swap:  2000000k total,        0k used,  2000000k free,  1000000k cached
A2.0%
B5.0%
C92.0%
D1.0%
Attempts:
2 left
💡 Hint
Look for the '%Cpu(s):' line and find the 'us' value which stands for user CPU usage.
🧠 Conceptual
intermediate
1:00remaining
Understanding process states in a task manager
Which of the following process states indicates that a process is currently executing on the CPU?
ASleeping
BStopped
CZombie
DRunning
Attempts:
2 left
💡 Hint
Think about which state means the process is actively doing work.
Troubleshoot
advanced
1:30remaining
Diagnosing high memory usage with 'ps' command
You run the command ps aux --sort=-%mem | head -5 to find processes using the most memory. Which option correctly describes what this command does?
ALists all processes sorted by memory usage descending, showing top 5
BLists all processes sorted by CPU usage ascending, showing top 5
CLists all processes sorted by process ID ascending, showing top 5
DLists only 5 processes with highest CPU usage
Attempts:
2 left
💡 Hint
Look at the options: --sort=-%mem means sort by memory descending.
🔀 Workflow
advanced
2:00remaining
Sequence to monitor and kill a high CPU process
What is the correct order of commands to find a process consuming high CPU and terminate it safely?
A2,1,3,4
B1,3,2,4
C1,2,3,4
D1,4,2,3
Attempts:
2 left
💡 Hint
First find the process, then try gentle kill, check, then force kill if needed.
Best Practice
expert
1:30remaining
Choosing the best tool for continuous system monitoring
Which tool is best suited for continuous, real-time monitoring of system metrics with alerting capabilities in a production environment?
ANagios
Bhtop
Cps
Dkill
Attempts:
2 left
💡 Hint
Consider tools designed for monitoring and alerting, not just viewing or managing processes.