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 13 of 26
Question #241
In Android, which service allows apps to send and receive messages between components?
A. Service
B. Intent
C. Broadcast Receiver
D. Content Provider

Correct Answer: Option B


Explanation:
Intents are messaging objects used to request actions from other app components, such as starting an activity or broadcasting.

This question belongs to: Computer Operating Systems
Question #242
What is the main advantage of a 64-bit operating system over a 32-bit one?
A. Ability to address more than 4 GB of RAM
B. Faster CPU speed
C. Better graphics performance
D. Smaller file sizes

Correct Answer: Option A


Explanation:
64-bit OS can address larger memory space (theoretically up to 16 exabytes) compared to 32-bit's 4 GB limit.

This question belongs to: Computer Operating Systems
Question #243
Which Linux command is used to change the ownership of a file?
A. chown
B. chattr
C. chgrp
D. chmod

Correct Answer: Option A


Explanation:
chown changes the owner and/or group of a file or directory.

This question belongs to: Computer Operating Systems
Question #244
What does the term 'multiprocessing' refer to?
A. Using multiple operating systems on one computer
B. Running multiple programs on a single CPU
C. The ability to process multiple tasks simultaneously in a single program
D. The use of two or more CPUs within a single computer system

Correct Answer: Option D


Explanation:
Multiprocessing involves multiple CPUs (or cores) to execute multiple processes in parallel, improving performance.

This question belongs to: Computer Operating Systems
Question #245
Which Windows feature allows you to revert the system to a previous state without affecting personal files?
A. Backup and Restore
B. File History
C. Reset this PC
D. System Restore

Correct Answer: Option D


Explanation:
System Restore restores system files and settings to a previous restore point, preserving personal documents.

This question belongs to: Computer Operating Systems
Question #246
In Linux, what does the 'sudo' command do?
A. Shuts down the system
B. Allows a user to execute commands with superuser privileges
C. Changes the user's password
D. Switches the user to root

Correct Answer: Option B


Explanation:
sudo (superuser do) permits authorized users to run commands as the superuser or another user.

This question belongs to: Computer Operating Systems
Question #247
Which of the following is an example of a real-time operating system (RTOS)?
A. Android
B. VxWorks
C. Windows 10
D. Linux

Correct Answer: Option B


Explanation:
VxWorks is a real-time OS used in embedded systems requiring deterministic response times; general-purpose OSes are not RTOS.

This question belongs to: Computer Operating Systems
Question #248
What is the function of the Windows Page File (pagefile.sys)?
A. It is used for hibernation
B. It caches frequently used files
C. It stores system crash dumps
D. It acts as virtual memory (swap file)

Correct Answer: Option D


Explanation:
The pagefile.sys is a system file that serves as additional RAM (virtual memory) by swapping data to disk.

This question belongs to: Computer Operating Systems
Question #249
Which Linux command is used to display disk usage in a human-readable format?
A. df -h
B. fdisk -l
C. du -h
D. lsblk

Correct Answer: Option A


Explanation:
df -h shows file system disk space usage in human-readable format (GB, MB).

This question belongs to: Computer Operating Systems
Question #250
In Android, which component is responsible for storing and retrieving data that can be shared among apps?
A. Content Provider
B. SQLite Database
C. File Storage
D. Shared Preferences

Correct Answer: Option A


Explanation:
Content Providers manage shared data across applications, providing a standard interface for data access.

This question belongs to: Computer Operating Systems
Question #251
What is the maximum memory addressable by a 32-bit Windows OS?
A. 16 GB
B. 2 GB
C. 8 GB
D. 4 GB

Correct Answer: Option D


Explanation:
A 32-bit OS can address 2^32 bytes = 4 GB of memory, though some is reserved for hardware.

This question belongs to: Computer Operating Systems
Question #252
Which of the following is a feature of the Linux ext4 file system?
A. Compression
B. Case-insensitivity
C. Built-in encryption
D. Journaling

Correct Answer: Option D


Explanation:
ext4 supports journaling to protect data integrity in case of crashes; other features like encryption or compression are optional or not native.

This question belongs to: Computer Operating Systems
Question #253
What is the primary difference between UEFI and BIOS?
A. UEFI is only for Windows, BIOS for Linux
B. UEFI is a newer firmware standard with a graphical interface and Secure Boot
C. BIOS is for 32-bit systems, UEFI for 64-bit
D. BIOS supports GPT, UEFI supports MBR

Correct Answer: Option B


Explanation:
UEFI replaces BIOS with advanced features like Secure Boot, faster boot, and support for large disks.

This question belongs to: Computer Operating Systems
Question #254
In Windows, which command is used to list all running services?
A. tasklist
B. services.msc
C. sc query
D. net start

Correct Answer: Option C


Explanation:
The 'sc query' command (Service Control) displays the status of all installed services, while services.msc opens the GUI.

This question belongs to: Computer Operating Systems
Question #255
What is the role of the 'init' process in Linux?
A. It handles user login
B. It is the first process started by the kernel and parent of all other processes
C. It schedules tasks
D. It manages device drivers

Correct Answer: Option B


Explanation:
The init process (PID 1) is the first user-space process and is responsible for starting system services and daemons.

This question belongs to: Computer Operating Systems
Question #256
Which of the following is an example of a distributed operating system?
A. Linux
B. Windows Server
C. Amoeba
D. Android

Correct Answer: Option C


Explanation:
Amoeba is a distributed OS that manages a collection of computers as a single system; others are not distributed by default.

This question belongs to: Computer Operating Systems
Question #257
In Android, what is the purpose of a 'Service' component?
A. To perform long-running background operations without a user interface
B. To broadcast messages
C. To store shared data
D. To display a user interface

Correct Answer: Option A


Explanation:
Services run in the background to handle tasks like music playback or network operations, even when the app is not visible.

This question belongs to: Computer Operating Systems
Question #258
What is the function of the Windows 'chkdsk' command?
A. Cleans up temporary files
B. Checks the file system and disk for errors and repairs them
C. Defragments the hard disk
D. Converts FAT to NTFS

Correct Answer: Option B


Explanation:
chkdsk (Check Disk) scans the file system and disk sectors for errors and attempts to fix them.

This question belongs to: Computer Operating Systems
Question #259
Which Linux command is used to display the manual page of another command?
A. whatis
B. info
C. man
D. help

Correct Answer: Option C


Explanation:
The 'man' command (manual) displays the manual pages for commands, providing detailed documentation.

This question belongs to: Computer Operating Systems
Question #260
What is the primary advantage of using a microkernel architecture?
A. It is faster than monolithic kernels
B. It is more modular and easy to maintain, as only essential services run in kernel mode
C. It supports more hardware
D. It uses less memory

Correct Answer: Option B


Explanation:
Microkernel minimizes kernel code, running most services in user space, improving reliability and modularity.

This question belongs to: Computer Operating Systems