Question

Difficulty: EasyMicrosoft Command-Line Tools

A technician working at a Windows Command Prompt needs to forcefully terminate a frozen application process named app.exe. Which of the following commands should the technician execute?

  1. taskkill /f /im app.exeAnswer
  2. B
    killall -9 app.exe
  3. C
    taskkill /remove app.exe
  4. D
    tasklist /f /im app.exe

Answer

The command taskkill /f /im app.exe should be used to forcefully terminate the process by its image name.
The taskkill command combined with /f (force) and /im (image name) correctly targets and ends a frozen Windows application process by its executable name.

Step-by-Step Solution

1
Identify the target command-line utility in Windows used to terminate running tasks.
The correct tool is taskkill.
Windows provides taskkill specifically for ending processes from the command line.
2
Select the appropriate command switches for force termination and image name specification.
Use /f for force and /im to specify the executable name (app.exe).
The /f flag forces non-responsive applications to close, while /im targets the process by image name rather than PID.

Key Concept

Terminating processes using taskkill with appropriate switches in Windows Command Prompt
Estimated Time:45s
Rate this question