In Windows, what does the 'whoami' command display? MCQ with Answer and Explanation

In Windows, what does the 'whoami' command display?
A. The current user's username
B. The computer name
C. The IP address
D. The system uptime
Answer: Option A
Solution (By JKExamLibrary)
whoami returns the domain and username of the current logged-in user.

This question belongs to: Computer Operating Systems

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Operating Systems Questions

Question #1 Report Error
In Windows, the Registry is divided into which main hives?
A. HKEY_ROOT, HKEY_USER, HKEY_SYSTEM, HKEY_SOFTWARE
B. HKEY_CONFIG, HKEY_DRIVERS, HKEY_SERVICES
C. HKEY_LOCAL, HKEY_REMOTE, HKEY_DEFAULT
D. HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, HKEY_CLASSES_ROOT, HKEY_USERS, HKEY_CURRENT_CONFIG

Correct Answer: Option D


Explanation:
The five root keys (hives) are HKLM, HKCU, HKCR, HKU, and HKCC.

This question belongs to: Computer Operating Systems
Question #2 Report Error
What is the function of the Windows 'System Configuration' (msconfig) Startup tab?
A. To change system language
B. To enable or disable programs that start automatically with Windows
C. To manage system services
D. To configure boot options

Correct Answer: Option B


Explanation:
The Startup tab lists programs that run at startup; users can disable them to improve boot time.

This question belongs to: Computer Operating Systems
Question #3 Report Error
Which command-line tool in Linux displays summary statistics regarding system uptime, active user sessions, and resource load averages over recent intervals?
A. uname
B. who
C. date
D. uptime

Correct Answer: Option D


Explanation:
The 'uptime' command prints a single line tracking how long the system has been running, user counts, and system load averages for the past 1, 5, and 15 minutes.

This question belongs to: Computer Operating Systems