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 19 of 26
Question #361
What is the main purpose of an operating system's file system?
A. To provide network services
B. To organize and store files on storage devices
C. To handle memory allocation
D. To manage processes

Correct Answer: Option B


Explanation:
The file system manages how data is stored, retrieved, and organized on disks, including directories and metadata.

This question belongs to: Computer Operating Systems
Question #362
In Android, which component is used to receive and respond to system-wide broadcast announcements?
A. Service
B. Activity
C. Broadcast Receiver
D. Content Provider

Correct Answer: Option C


Explanation:
Broadcast Receivers listen for system events (like boot completed, battery low) and allow apps to respond.

This question belongs to: Computer Operating Systems
Question #363
Which of the following is a technique used to reduce fragmentation in memory?
A. Swapping
B. Paging
C. Segmentation
D. Compaction

Correct Answer: Option D


Explanation:
Compaction moves processes to create contiguous free space, reducing external fragmentation; paging eliminates external fragmentation.

This question belongs to: Computer Operating Systems
Question #364
In Windows, what does the 'whoami' command display?
A. The computer name
B. The IP address
C. The current user's username
D. The system uptime

Correct Answer: Option C


Explanation:
whoami returns the domain and username of the current logged-in user.

This question belongs to: Computer Operating Systems
Question #365
Which Linux command is used to display system hardware information?
A. lsusb
B. dmesg
C. lspci
D. lshw

Correct Answer: Option D


Explanation:
lshw (list hardware) provides comprehensive hardware details; other commands show specific devices.

This question belongs to: Computer Operating Systems
Question #366
What is the purpose of the Android 'Sensor Manager'?
A. To control camera
B. To handle location services
C. To manage battery status
D. To provide access to device sensors (accelerometer, gyroscope, etc.)

Correct Answer: Option D


Explanation:
Sensor Manager allows apps to read sensor data and register listeners for changes in sensor readings.

This question belongs to: Computer Operating Systems
Question #367
Which of the following is a feature of the ext4 file system?
A. Support for extents
B. Case-insensitive filenames
C. No journaling
D. File compression built-in

Correct Answer: Option A


Explanation:
ext4 supports extents (contiguous blocks) for better performance; it also has journaling, but not case-insensitivity.

This question belongs to: Computer Operating Systems
Question #368
In Windows, the 'Regedit' tool allows users to:
A. Edit system environment variables
B. Manage disk partitions
C. Configure system services
D. Edit the Windows Registry

Correct Answer: Option D


Explanation:
Regedit is the Registry Editor for viewing and modifying the hierarchical database of system and application settings.

This question belongs to: Computer Operating Systems
Question #369
Which Linux command is used to search for files using a database of filenames?
A. find
B. which
C. locate
D. whereis

Correct Answer: Option C


Explanation:
locate uses a pre-built database (updatedb) to quickly find files by name; find searches in real-time.

This question belongs to: Computer Operating Systems
Question #370
What is the primary advantage of using a virtual machine (VM) within an OS?
A. To run multiple operating systems on a single physical machine
B. To improve system performance
C. To reduce memory usage
D. To simplify file management

Correct Answer: Option A


Explanation:
Virtualization allows running isolated guest OSes on one host, enabling testing, legacy support, and efficient resource use.

This question belongs to: Computer Operating Systems
Question #371
Which Android component is responsible for managing the user interface and interactions?
A. Broadcast Receiver
B. Content Provider
C. Service
D. Activity

Correct Answer: Option D


Explanation:
Activities represent screens with UI; they handle user interactions and lifecycle events.

This question belongs to: Computer Operating Systems
Question #372
In Windows, the 'System Restore' creates restore points that include:
A. Only the registry
B. All user data files
C. Only device drivers
D. System files, registry, and installed applications

Correct Answer: Option D


Explanation:
Restore points snapshot system files, registry, and some application settings, not personal documents.

This question belongs to: Computer Operating Systems
Question #373
Which Linux command is used to display the first few lines of a file?
A. more
B. less
C. tail
D. head

Correct Answer: Option D


Explanation:
head shows the first 10 lines by default; tail shows the last lines.

This question belongs to: Computer Operating Systems
Question #374
What is the purpose of the Android 'Package Installer'?
A. To update system packages
B. To uninstall applications
C. To install APK files on the device
D. To manage app permissions

Correct Answer: Option C


Explanation:
Package Installer handles the installation of .apk files, verifying signatures and asking for permissions.

This question belongs to: Computer Operating Systems
Question #375
Which of the following is a type of memory management that uses variable-sized partitions?
A. Paging
B. Buddy system
C. Fixed partitioning
D. Segmentation

Correct Answer: Option D


Explanation:
Segmentation allows variable-size memory segments based on logical units; paging uses fixed-size pages.

This question belongs to: Computer Operating Systems
Question #376
In Windows, the command 'systeminfo' displays:
A. Only the OS version
B. List of installed updates
C. Detailed system configuration including OS version, memory, and network
D. Disk usage

Correct Answer: Option C


Explanation:
systeminfo provides a comprehensive summary of system hardware and software configuration.

This question belongs to: Computer Operating Systems
Question #377
Which Linux command is used to set the system's hostname?
A. set-hostname
B. sysctl
C. hostnamectl
D. hostname

Correct Answer: Option D


Explanation:
hostname can display or set the system's hostname; hostnamectl is also used in systemd.

This question belongs to: Computer Operating Systems
Question #378
What is the main purpose of the Windows 'Action Center'?
A. To manage user accounts
B. To control system updates
C. To view alerts and manage system notifications
D. To configure firewall settings

Correct Answer: Option C


Explanation:
Action Center displays notifications and alerts about system security, maintenance, and app messages.

This question belongs to: Computer Operating Systems
Question #379
In Android, the 'adb' (Android Debug Bridge) is used for:
A. Transferring files
B. Installing apps only
C. Debugging and communicating with an Android device via command line
D. Managing emulators

Correct Answer: Option C


Explanation:
ADB is a versatile tool for developers to execute commands, install apps, view logs, and debug on connected devices.

This question belongs to: Computer Operating Systems
Question #380
Which of the following is a disadvantage of paging?
A. Internal fragmentation
B. Complex memory management
C. Slow allocation
D. External fragmentation

Correct Answer: Option A


Explanation:
Paging causes internal fragmentation because the last page of a process may not be fully used; external fragmentation is eliminated.

This question belongs to: Computer Operating Systems