Operating Systems MCQs

Computer

Operating Systems MCQs

Practice Operating System MCQs covering Windows, Linux, Android, booting, multitasking and multiprocessing concepts with answers and explanations.

510
Total Questions

Practice Questions

Page 24 of 26
Question #461
What is the purpose of the Android 'DevicePolicyManager'?
A. To manage app policies
B. To wipe device data
C. To control device settings
D. To enforce device security policies (like password, encryption) for enterprise

Correct Answer: Option D


Explanation:
DevicePolicyManager is used for enterprise management to set policies such as password requirements, lock screen, and data wipe.

This question belongs to: Computer Operating Systems
Question #462
Which of the following is a valid Linux file permission value?
A. 755
B. 700
C. 644
D. All of the above

Correct Answer: Option D


Explanation:
755, 644, and 700 are all valid octal permissions for files/directories in Linux.

This question belongs to: Computer Operating Systems
Question #463
In Windows, the 'Command Prompt' (cmd) uses which text encoding by default?
A. Unicode
B. OEM code page (e.g., 850)
C. UTF-8
D. ANSI

Correct Answer: Option B


Explanation:
By default, Command Prompt uses the OEM code page (e.g., 850 or 437) for legacy compatibility; modern versions can use UTF-8 with /U switch.

This question belongs to: Computer Operating Systems
Question #464
Which Linux command is used to view the system's boot messages?
A. messages
B. journalctl
C. dmesg
D. bootlog

Correct Answer: Option C


Explanation:
dmesg prints the kernel ring buffer messages, including boot-time logs; journalctl for systemd logs.

This question belongs to: Computer Operating Systems
Question #465
What is the function of the Android 'WifiManager'?
A. To manage Bluetooth
B. To manage cellular data
C. To manage network preferences
D. To manage Wi-Fi connectivity, scan networks, and configure connections

Correct Answer: Option D


Explanation:
WifiManager provides APIs to enable/disable Wi-Fi, scan for networks, and connect to access points.

This question belongs to: Computer Operating Systems
Question #466
Which of the following is a type of operating system that divides the CPU time among users in a fair manner?
A. Real-time OS
B. Batch OS
C. Time-sharing OS
D. Distributed OS

Correct Answer: Option C


Explanation:
Time-sharing (multitasking) OS allocates CPU time slices to multiple users, providing interactive response.

This question belongs to: Computer Operating Systems
Question #467
In Windows, the 'Registry' has five root keys. Which one contains information about the current hardware configuration?
A. HKEY_LOCAL_MACHINE\HARDWARE
B. HKEY_CLASSES_ROOT
C. HKEY_CURRENT_USER
D. HKEY_CURRENT_CONFIG

Correct Answer: Option D


Explanation:
HKEY_CURRENT_CONFIG (HKCC) stores information about the current hardware profile; HKLM\HARDWARE also contains hardware info.

This question belongs to: Computer Operating Systems
Question #468
Which Linux command is used to display the system's hostname and IP address?
A. ip addr
B. ifconfig
C. hostname -I
D. All of the above

Correct Answer: Option D


Explanation:
hostname -I shows IP addresses; ifconfig and ip addr display network interfaces with IPs.

This question belongs to: Computer Operating Systems
Question #469
What is the purpose of the Android 'UsbManager'?
A. To control USB charging
B. To manage USB device connections and communication
C. To manage USB storage
D. To detect USB devices

Correct Answer: Option B


Explanation:
UsbManager provides access to USB devices connected to the Android device, allowing communication via USB.

This question belongs to: Computer Operating Systems
Question #470
Which of the following is a characteristic of a microkernel?
A. It is less modular than monolithic
B. Only essential services like IPC and memory management are in kernel space
C. All services are in kernel space
D. It is faster than monolithic

Correct Answer: Option B


Explanation:
Microkernel keeps only minimal services in kernel mode, with drivers and file systems in user space, increasing modularity.

This question belongs to: Computer Operating Systems
Question #471
In Windows, the 'Event Log' service stores logs in which format?
A. .txt
B. .log
C. .xml
D. .evtx

Correct Answer: Option D


Explanation:
Windows event logs are stored in .evtx (Event Log XML) format; they can be read by Event Viewer.

This question belongs to: Computer Operating Systems
Question #472
Which Linux command is used to change the permissions of a file with symbolic notation?
A. All of the above
B. chmod o-r file
C. chmod u+x file
D. chmod g+w file

Correct Answer: Option A


Explanation:
chmod accepts symbolic mode like u+x (add execute for owner), g+w (add write for group), o-r (remove read for others).

This question belongs to: Computer Operating Systems
Question #473
What is the function of the Android 'BluetoothAdapter'?
A. To manage Bluetooth hardware and perform operations like discovery and pairing
B. To send files via Bluetooth
C. To manage Bluetooth profiles
D. To control Bluetooth audio

Correct Answer: Option A


Explanation:
BluetoothAdapter is the entry point for all Bluetooth operations, such as enabling/disabling, discovering devices, and bonding.

This question belongs to: Computer Operating Systems
Question #474
Which of the following is a type of operating system that supports multiple users, multitasking, and memory protection?
A. Modern general-purpose OS (Windows, Linux)
B. Batch OS
C. Simple embedded OS
D. Single-user OS

Correct Answer: Option A


Explanation:
General-purpose OSes like Windows and Linux support multiple users, multitasking, and memory protection (virtual memory).

This question belongs to: Computer Operating Systems
Question #475
In Windows, the 'System Restore' uses which service to create restore points?
A. System Protection
B. Volume Shadow Copy Service (VSS)
C. File History
D. Backup and Restore

Correct Answer: Option B


Explanation:
System Restore leverages Volume Shadow Copy (VSS) to take snapshots of system files and registry.

This question belongs to: Computer Operating Systems
Question #476
Which Linux command is used to display the current environment variables?
A. printenv
B. set
C. env
D. All of the above

Correct Answer: Option D


Explanation:
env, printenv, and set all display environment variables; set also shows shell variables.

This question belongs to: Computer Operating Systems
Question #477
What is the purpose of the Android 'SensorEvent' class?
A. To register listeners
B. To hold data from sensor readings (values, accuracy, timestamp)
C. To calibrate sensors
D. To manage sensors

Correct Answer: Option B


Explanation:
SensorEvent is used in sensor callbacks to provide the sensor data values and metadata.

This question belongs to: Computer Operating Systems
Question #478
Which of the following is a feature of the FAT32 file system?
A. Support for file permissions
B. Journaling
C. Wide compatibility with various operating systems
D. Encryption

Correct Answer: Option C


Explanation:
FAT32 is compatible with nearly all OSes, but lacks security features like permissions, journaling, and encryption.

This question belongs to: Computer Operating Systems
Question #479
In Windows, the 'Nslookup' command is used for:
A. Testing network connectivity
B. Tracing network routes
C. Displaying network statistics
D. Querying DNS servers to resolve domain names

Correct Answer: Option D


Explanation:
nslookup is a tool for DNS resolution and troubleshooting DNS records.

This question belongs to: Computer Operating Systems
Question #480
What is the purpose of the Android 'GestureDetector' class?
A. To provide haptic feedback
B. To handle motion events
C. To detect common gestures like tap, scroll, fling, and long press
D. To manage touch events

Correct Answer: Option C


Explanation:
GestureDetector simplifies detection of gestures from touch events, allowing easy implementation of gesture interactions.

This question belongs to: Computer Operating Systems