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 IP address
C. The system uptime
D. The computer name
Answer: Option A
Solution (By JKSSB Mock Tests)
whoami returns the domain and username of the current logged-in user.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
Which Linux command is used to display the system's network interfaces and their IP addresses?
A. netstat
B. ip addr
C. route
D. ifconfig

Correct Answer: Option D


Explanation:
ifconfig is older but still common; ip addr from iproute2 is the modern equivalent. Both display interface config.

This question belongs to: Computer Operating Systems
Question #2
Which of the following Android components represents a background service without a user interface, designed to perform long-running tasks like fetching web data or playing audio?
A. Activity
B. Service
C. Content Provider
D. Broadcast Receiver

Correct Answer: Option B


Explanation:
An Android 'Service' is an application component designed to handle background tasks (like music playback or network synchronization) without an explicit user interface.

This question belongs to: Computer Operating Systems
Question #3
What does a 'Page Table Base Register (PTBR)' store in a hardware configuration?
A. The current CPU clock frequency.
B. The physical memory address pointing to the start of the active process's page table.
C. The layout coordinates of the desktop wallpaper.
D. The total count of connected external monitor screens.

Correct Answer: Option B


Explanation:
The PTBR is a dedicated processor register that holds the physical starting address of the active thread's page table map.

This question belongs to: Computer Operating Systems