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 22 of 26
Question #421
In Windows, the 'Disk Defragmenter' is optimized for:
A. Solid-state drives (SSDs)
B. USB flash drives
C. Mechanical hard disk drives (HDDs)
D. Both HDDs and SSDs

Correct Answer: Option C


Explanation:
Defragmentation is beneficial for HDDs; SSDs use wear leveling and do not require defragmentation; Windows may recognize SSDs and trim instead.

This question belongs to: Computer Operating Systems
Question #422
Which Linux command is used to change the password of the current user?
A. chpasswd
B. usrpasswd
C. passwd
D. password

Correct Answer: Option C


Explanation:
passwd without arguments changes the current user's password; chpasswd is for batch changes.

This question belongs to: Computer Operating Systems
Question #423
What is the purpose of the Android 'WallpaperManager'?
A. To manage screen brightness
B. To set and manage the device's wallpaper
C. To control live wallpapers
D. To change the theme

Correct Answer: Option B


Explanation:
WallpaperManager provides methods to set the home screen or lock screen wallpaper from resources or bitmap.

This question belongs to: Computer Operating Systems
Question #424
Which of the following is a scheduling algorithm that allows a process to run until it blocks or is preempted by a higher priority process?
A. Preemptive priority scheduling
B. Multilevel feedback queue
C. Round Robin
D. Non-preemptive priority scheduling

Correct Answer: Option D


Explanation:
Non-preemptive priority scheduling allows a process to keep the CPU until it finishes or voluntarily yields, unless a higher priority process arrives (which would preempt in preemptive scheduling).

This question belongs to: Computer Operating Systems
Question #425
In Windows, the 'Windows Update' service is responsible for:
A. Updating device drivers
B. Managing system restore points
C. Downloading and installing updates for the OS and other Microsoft products
D. Installing new applications

Correct Answer: Option C


Explanation:
Windows Update provides security patches, feature updates, and driver updates from Microsoft.

This question belongs to: Computer Operating Systems
Question #426
Which Linux command is used to compare two files line by line?
A. diff
B. sdiff
C. cmp
D. comm

Correct Answer: Option A


Explanation:
diff shows differences between files; cmp compares byte by byte; comm compares sorted files.

This question belongs to: Computer Operating Systems
Question #427
What is the purpose of the Android 'InputMethodManager'?
A. To handle touch events
B. To control the cursor
C. To manage voice input
D. To manage the on-screen keyboard and input methods

Correct Answer: Option D


Explanation:
InputMethodManager allows apps to show/hide the soft keyboard and interact with input method editors (IMEs).

This question belongs to: Computer Operating Systems
Question #428
Which of the following is a characteristic of a distributed file system?
A. It requires a single central server
B. It is slower than local file systems
C. It is used only for backup purposes
D. Files are stored across multiple servers and can be accessed transparently

Correct Answer: Option D


Explanation:
Distributed file systems (e.g., NFS, HDFS) provide a unified view of files across network nodes, enabling scalable storage.

This question belongs to: Computer Operating Systems
Question #429
In Windows, the 'Snipping Tool' is used for:
A. Capturing screenshots
B. Creating GIFs
C. Recording screen video
D. Editing images

Correct Answer: Option A


Explanation:
Snipping Tool captures screen regions; newer Windows has Snip & Sketch.

This question belongs to: Computer Operating Systems
Question #430
Which Linux command is used to view the contents of a file?
A. more
B. less
C. All of the above
D. cat

Correct Answer: Option C


Explanation:
cat, more, and less all display file contents; less is interactive, cat dumps entire file.

This question belongs to: Computer Operating Systems
Question #431
What is the purpose of the Android 'LocationManager'?
A. To manage maps
B. To provide GPS coordinates only
C. To track user movement
D. To obtain the device's geographic location and handle location updates

Correct Answer: Option D


Explanation:
LocationManager provides access to GPS, network, and fused location providers, and registers for location updates.

This question belongs to: Computer Operating Systems
Question #432
Which of the following is a type of operating system designed to handle a large number of small tasks quickly?
A. Real-time OS
B. Time-sharing OS
C. Multiprocessing OS
D. Batch OS

Correct Answer: Option A


Explanation:
RTOS is designed for tasks with strict timing constraints; batch OS processes jobs in batches; time-sharing allows interactive use.

This question belongs to: Computer Operating Systems
Question #433
In Windows, the 'Netstat' command displays:
A. DNS cache
B. Network adapter configuration
C. Active network connections and listening ports
D. Route tables

Correct Answer: Option C


Explanation:
netstat shows active TCP/UDP connections, listening ports, and protocol statistics.

This question belongs to: Computer Operating Systems
Question #434
Which Linux command is used to count the number of lines, words, and characters in a file?
A. grep -c
B. ls -l
C. wc
D. count

Correct Answer: Option C


Explanation:
wc (word count) with -l, -w, -c options counts lines, words, and characters respectively.

This question belongs to: Computer Operating Systems
Question #435
What is the function of the Android 'TelephonyManager'?
A. To manage data connection
B. To make phone calls
C. To send SMS
D. To access device telephony and network information

Correct Answer: Option D


Explanation:
TelephonyManager provides information about cellular network, SIM, device ID, and phone state.

This question belongs to: Computer Operating Systems
Question #436
Which of the following is a feature of the Windows 'BitLocker' that uses a TPM?
A. Trusted Platform Module for hardware-based encryption key storage
B. USB key authentication only
C. Software-only encryption
D. Password only

Correct Answer: Option A


Explanation:
BitLocker can use TPM to secure encryption keys, providing hardware protection against attacks.

This question belongs to: Computer Operating Systems
Question #437
In Linux, the 'lsblk' command is used to:
A. List mounted file systems
B. List block devices (like disks and partitions) in a tree format
C. Show disk partitions only
D. Display disk usage

Correct Answer: Option B


Explanation:
lsblk shows all block devices, their sizes, and mount points in a hierarchical view.

This question belongs to: Computer Operating Systems
Question #438
What is the primary role of the Android 'AudioManager'?
A. To play audio files
B. To record audio
C. To manage Bluetooth audio
D. To control audio volume, rings, and sound modes

Correct Answer: Option D


Explanation:
AudioManager manages system audio settings like volume levels, ringer mode, and audio focus.

This question belongs to: Computer Operating Systems
Question #439
Which of the following is a file system supported by both Windows and Linux for large drives?
A. NTFS (with limited Linux write support)
B. exFAT
C. All of the above
D. FAT32

Correct Answer: Option C


Explanation:
All three are supported across Windows and Linux, though NTFS may require additional drivers for full write support in some distros.

This question belongs to: Computer Operating Systems
Question #440
In Windows, the 'Performance Monitor' (perfmon) is used to:
A. Manage system services
B. View system errors
C. Collect and view real-time performance data and logs
D. Monitor network traffic

Correct Answer: Option C


Explanation:
Performance Monitor creates Data Collector Sets and displays performance counters for CPU, memory, disk, etc.

This question belongs to: Computer Operating Systems