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 23 of 26
Question #441
Which Linux command is used to create an alias for a command?
A. export
B. set
C. alias
D. ln

Correct Answer: Option C


Explanation:
alias creates a shortcut for a command or series of commands.

This question belongs to: Computer Operating Systems
Question #442
What is the purpose of the Android 'Vibrator' class?
A. To manage haptic feedback
B. To control vibration feedback on the device
C. To trigger notifications with vibration
D. All of the above

Correct Answer: Option D


Explanation:
Vibrator allows apps to vibrate the device for notifications, haptic feedback, or custom patterns.

This question belongs to: Computer Operating Systems
Question #443
Which of the following is a type of scheduler that decides which processes are admitted to the system?
A. Long-term scheduler
B. Medium-term scheduler
C. Short-term scheduler
D. I/O scheduler

Correct Answer: Option A


Explanation:
The long-term scheduler controls the degree of multiprogramming by selecting processes from the job queue for execution.

This question belongs to: Computer Operating Systems
Question #444
In Windows, the 'System File Checker' (SFC) is used to:
A. Scan and repair corrupted system files
B. Check disk integrity
C. Update system drivers
D. Restore system settings

Correct Answer: Option A


Explanation:
sfc /scannow verifies the integrity of protected system files and replaces incorrect versions.

This question belongs to: Computer Operating Systems
Question #445
Which Linux command is used to permanently set an environment variable?
A. export in /etc/profile
B. setenv
C. export in .bashrc
D. All of the above

Correct Answer: Option D


Explanation:
Environment variables can be set in shell startup files (.bashrc, .profile, /etc/profile) using export.

This question belongs to: Computer Operating Systems
Question #446
What is the function of the Android 'MediaScanner'?
A. To scan media files and update the media database
B. To manage media codecs
C. To play media files
D. To transcode media

Correct Answer: Option A


Explanation:
MediaScanner scans storage for media files and adds metadata (artist, album) to the system database for apps to query.

This question belongs to: Computer Operating Systems
Question #447
Which of the following is a feature of the Windows 10/11 'Task View'?
A. Application grouping
B. Virtual desktops
C. Timeline showing activity history
D. All of the above

Correct Answer: Option D


Explanation:
Task View includes timeline (Windows 10), virtual desktops, and allows switching and grouping apps.

This question belongs to: Computer Operating Systems
Question #448
In Linux, the 'dd' command is used for:
A. Displaying disk usage
B. Deleting directories
C. Copying and converting data at a low level
D. Duplicating files

Correct Answer: Option C


Explanation:
dd is a powerful utility for block-level copying, creating disk images, and data conversion.

This question belongs to: Computer Operating Systems
Question #449
What is the purpose of the Android 'ConnectivityManager'?
A. To monitor and manage network connectivity (Wi-Fi, cellular, etc.)
B. To control Bluetooth
C. To manage Wi-Fi connections only
D. To check data usage

Correct Answer: Option A


Explanation:
ConnectivityManager provides information about active network connections and allows apps to request network status.

This question belongs to: Computer Operating Systems
Question #450
Which of the following is a type of operating system used in embedded systems?
A. Ubuntu
B. Windows 10
C. macOS
D. RTOS

Correct Answer: Option D


Explanation:
Real-time operating systems (RTOS) are common in embedded devices requiring predictable timing.

This question belongs to: Computer Operating Systems
Question #451
In Windows, the 'Robocopy' command is used for:
A. Synchronizing folders
B. Both A and C
C. Robust file copy with advanced options for networks and backups
D. Copying files only within the same drive

Correct Answer: Option B


Explanation:
Robocopy (Robust File Copy) is a powerful command-line tool for copying and synchronizing directories, with retry and logging features.

This question belongs to: Computer Operating Systems
Question #452
Which Linux command is used to display the current user's identity?
A. who
B. users
C. id
D. whoami

Correct Answer: Option D


Explanation:
whoami prints the effective username; id shows user and group IDs.

This question belongs to: Computer Operating Systems
Question #453
What is the purpose of the Android 'NetworkStatsManager'?
A. To query historical network usage statistics
B. To set network priorities
C. To monitor current network speed
D. To manage network interfaces

Correct Answer: Option A


Explanation:
NetworkStatsManager provides data on network usage by app over time, used for data quota monitoring.

This question belongs to: Computer Operating Systems
Question #454
Which of the following is a Linux command used to manage print queues?
A. lpq
B. lpc
C. lp
D. lpr

Correct Answer: Option C


Explanation:
lp is used to send files to print; lpr is similar; lpq shows queue; lpc controls printers.

This question belongs to: Computer Operating Systems
Question #455
In Windows, the 'PowerShell' is:
A. All of the above
B. A replacement for Command Prompt
C. An advanced command-line shell
D. A task automation framework and scripting language

Correct Answer: Option A


Explanation:
PowerShell is a powerful scripting environment with cmdlets, object-oriented pipeline, and automation capabilities.

This question belongs to: Computer Operating Systems
Question #456
Which Linux command is used to display the system's current runlevel?
A. systemctl get-default
B. runlevel
C. All of the above
D. who -r

Correct Answer: Option C


Explanation:
runlevel and who -r show the current and previous runlevel; systemctl get-default shows default target.

This question belongs to: Computer Operating Systems
Question #457
What is the purpose of the Android 'AccessibilityManager'?
A. To control gesture navigation
B. To provide accessibility features and services for users with disabilities
C. To manage accessibility settings
D. To handle screen readers

Correct Answer: Option B


Explanation:
AccessibilityManager enables apps to assist users with disabilities, e.g., text-to-speech, magnification.

This question belongs to: Computer Operating Systems
Question #458
Which of the following is a type of file system that supports journaling?
A. ext3
B. All of the above
C. ext4
D. NTFS

Correct Answer: Option B


Explanation:
ext3, ext4, and NTFS all support journaling, which logs changes to prevent corruption.

This question belongs to: Computer Operating Systems
Question #459
In Windows, the 'Telnet' command is used for:
A. Network file transfer
B. Web browsing
C. Remote command-line access to another host
D. Email communication

Correct Answer: Option C


Explanation:
Telnet is a protocol for remote login to a host; it's not secure and often disabled.

This question belongs to: Computer Operating Systems
Question #460
Which Linux command is used to stop a process with a signal?
A. pkill
B. killall
C. All of the above
D. kill

Correct Answer: Option C


Explanation:
kill, pkill, and killall all send signals to processes; they differ in how targets are specified.

This question belongs to: Computer Operating Systems