100 MCQs On Operating System
100 MCQs On Operating System
Answer: d
Answer: c
Explanation: The main function of a command interpreter is to get and execute the
next user-specified command. Command Interpreter checks for valid command and
then runs that command else it will throw an error.
Answer: d
All of these scheduling algorithms have their own advantages and disadvantages.
4. To access the services of the operating system, the interface is provided by the
___________
a) Library
b) System calls
c) Assembly instructions
d) API
View Answer
Answer: b
Explanation: To access services of the Operating System an interface is provided by
the System Calls. Generally, these are functions written in C and C++. Open, Close,
Read, Write are some of most prominently used system calls.
Answer: a
Explanation: None.
Answer: b
Explanation: Kernel is the first program that is loaded in memory when OS is loading
as well as it remains in memory till OS is running. Kernel is the core part of the OS
which is responsible for managing resources, allowing multiple processes to use the
resources and provide services to various processes. Kernel modules can be loaded
and unloaded in run-time i.e. in running OS.
7. Which one of the following errors will be handle by the operating system?
a) lack of paper in printer
b) connection failure in the network
c) power failure
d) all of the mentioned
View Answer
Answer: d
Explanation: All the mentioned errors are handled by OS. The OS is continuously
monitoring all of its resources. Also, the OS is constantly detecting and correcting
errors.
Answer: a
Explanation: None.
9. If a process fails, most operating system write the error information to a ______
a) new file
b) another running process
c) log file
d) none of the mentioned
View Answer
Answer: c
Explanation: If a process fails, most operating systems write the error information to a
log file. Log file is examined by the debugger, to find out what is the actual cause of
that particular problem. Log file is useful for system programmers for correcting errors.
10. Which one of the following is not a real time operating system?
a) RTLinux
b) Palm OS
c) QNX
d) VxWorks
View Answer
Answer: b
Explanation: VxWorks, QNX & RTLinux are real-time operating systems. Palm OS is a
mobile operating system. Palm OS is developed for Personal Digital Assistants
(PDAs).
Answer: d
Explanation: In Operating Systems, each process has its own address space which
contains code, data, stack, and heap segments or sections. Each process also has a
list of files that is opened by the process as well as all pending alarms, signals, and
various signal handlers.
13. In a timeshare operating system, when the time slot assigned to a process is
completed, the process switches from the current state to?
a) Suspended state
b) Terminated state
c) Ready state
d) Blocked state
View Answer
Answer: c
Explanation: In a time-sharing operating system, when the time slot given to a process
is completed, the process goes from the running state to the Ready State. In a
time-sharing operating system, unit time is defined for sharing CPU, it is called a time
quantum or time slice. If a process takes less than 1 time quantum, then the process
itself releases the CPU.
14. Cascading termination refers to the termination of all child processes if the parent
process terminates ______
a) Normally or abnormally
b) Abnormally
c) Normally
d) None of the mentioned
View Answer
Answer: a
15. When a process is in a “Blocked” state waiting for some I/O service. When the
service is completed, it goes to the __________
a) Terminated state
b) Suspended state
c) Running state
d) Ready state
View Answer
Answer: d
Explanation: Suppose that a process is in “Blocked” state waiting for some I/O service.
When the service is completed, it goes to the ready state. Process never goes directly
to the running state from the waiting state. Only processes which are in ready state go
to the running state whenever CPU allocated by operating system.
Answer: c
Explanation: None.
17. The portion of the process scheduler in an operating system that dispatches
processes is concerned with ____________
a) assigning ready processes to waiting queue
b) assigning running processes to blocked queue
c) assigning ready processes to CPU
d) all of the mentioned
View Answer
Answer: c
Explanation: None.
Answer: c
Explanation: In a time sharing system, each user needs to get a share of the CPU at
regular intervals.
Answer: a
Explanation: In an effective operating system, we must verify the deadlock each time a
request for resources is made at fixed time intervals.
Answer: d
Explanation: Resource allocation states are used to maintain the availability of the
already and current available resources.
21. Swapping _______ be done when a process has pending I/O, or has to execute I/O
operations only into operating system buffers.
a) must never
b) maybe
c) can
d) must
View Answer
Answer: a
Explanation: None.
Answer: c
Explanation: None.
23. The operating system is responsible for?
a) bad-block recovery
b) booting from disk
c) disk initialization
d) all of the mentioned
View Answer
Answer: d
Explanation: None.
24. The operating system and the other processes are protected from being modified by
an already running process because ____________
a) every address generated by the CPU is being checked against the relocation and limit
registers
b) they have a protection algorithm
c) they are in different memory spaces
d) they are in different logical addresses
View Answer
Answer: a
Explanation: None.
25. Using transient code, _______ the size of the operating system during program
execution.
a) maintains
b) changes
c) increases
d) decreases
View Answer
Answer: b
Explanation: None.
26. The operating system maintains a ______ table that keeps track of how many
frames have been allocated, how many are there, and how many are available.
a) memory
b) mapping
c) page
d) frame
View Answer
Answer: d
Explanation: None.
27. To obtain better memory utilization, dynamic loading is used. With dynamic loading,
a routine is not loaded until it is called. For implementing dynamic loading
____________
a) special support from operating system is essential
b) special support from hardware is required
c) user programs can implement dynamic loading without any special support from
hardware or operating system
d) special support from both hardware and operating system is essential
View Answer
Answer: c
Explanation: None.
28. The _________ presents a uniform device-access interface to the I/O subsystem,
much as system calls provide a standard interface between the application and the
operating system.
a) Device drivers
b) I/O systems
c) Devices
d) Buses
View Answer
Answer: a
Explanation: None.
Answer: d
Explanation: None.
30. Hard real time operating system has ______________ jitter than a soft real time
operating system.
a) equal
b) more
c) less
d) none of the mentioned
View Answer
Answer: c
31. For real time operating systems, interrupt latency should be ____________
a) zero
b) minimal
c) maximum
d) dependent on the scheduling
View Answer
Answer: b
Explanation: Interrupt latency is the time duration between the generation of interrupt
and execution of its service.
Answer: d
Explanation: None.
33. The priority of a process will ______________ if the scheduler assigns it a static
priority.
a) depends on the operating system
b) change
c) remain unchanged
d) none of the mentioned
View Answer
Answer: c
Explanation: None.
34. What are the characteristics of Host based IDS?
a) Logs are analysed to detect tails of intrusion
b) The host operating system logs in the audit information
c) Logs includes logins, file opens, and program executions
d) All of the mentioned
View Answer
Answer: d
Explanation: None.
Answer: c
Explanation: None.
36. If the sum of the working – set sizes increases, exceeding the total number of
available frames ____________
a) the operating system selects a process to suspend
b) the system crashes
c) then the process crashes
d) the memory overflows
View Answer
Answer: a
Explanation: None.
37. The information about all files is kept in ____________
a) operating system
b) separate directory structure
c) swap space
d) none of the mentioned
View Answer
Answer: b
Explanation: None.
38. The operating system keeps a small table containing information about all open files
called ____________
a) file table
b) directory table
c) open-file table
d) system table
View Answer
Answer: c
Explanation: None.
Answer: a
Explanation: None.
40. The operating system _______ the links when traversing directory trees, to preserve
the acyclic structure of the system.
a) deletes
b) considers
c) ignores
d) none of the mentioned
View Answer
Answer: c
Explanation: None.
41. To recover from failures in the network operations _____________ information may
be maintained.
a) operating system
b) ip address
c) stateless
d) state
View Answer
Answer: d
Explanation: None.
42. On systems where there are multiple operating system, the decision to load a
particular one is done by _____________
a) process control block
b) file control block
c) boot loader
d) bootstrap
View Answer
Answer: c
Explanation: None.
Answer: a
Explanation: None.
44. The two steps the operating system takes to use a disk to hold its files are _______
and ________
a) caching & logical formatting
b) logical formatting & swap space creation
c) swap space creation & caching
d) partitioning & logical formatting
View Answer
Answer: d
Explanation: None.
45. The _______ program initializes all aspects of the system, from CPU registers to
device controllers and the contents of main memory, and then starts the operating
system.
a) bootstrap
b) main
c) bootloader
d) rom
View Answer
Answer: a
Explanation: None.
46. In SCSI disks used in high end PCs, the controller maintains a list of _________ on
the disk. The disk is initialized during ________ formatting which sets aside spare
sectors not visible to the operating system.
a) destroyed blocks, partitioning
b) bad blocks, low level formatting
c) destroyed blocks, high level formatting
d) bad blocks, partitioning
View Answer
Answer: b
Explanation: None.
47. Which principle states that programs, users, and even the systems be given just
enough privileges to perform their task?
a) principle of least privilege
b) principle of process scheduling
c) principle of operating system
d) none of the mentioned
View Answer
Answer: a
Explanation: None.
Answer: b
Explanation: None.
Answer: c
Answer: b
B) A type of hardware
C) A programming language
D) None of the above
Answer: A
A) Windows
B) Linux
C) Oracle
D) MacOS
Answer: C
A) Windows
B) Linux
C) Unix
D) MacOS
Answer: A
Answer: D
A) Windows
B) Linux
C) MacOS
D) DOS
Answer: B
Answer: B
A) Windows
B) Unix
C) RTOS
D) Linux
Answer: C
Answer: A
C) To manage files
D) To manage the network
Answer: A
A) Memory management
B) Processor management
C) Application development
D) Device management
Answer: C
61. Which command is used to display the version of the operating system in Unix/Linux?
A) version
B) uname -r
C) ver
D) osversion
Answer: B
B) Program Counter
Answer: C
63. Which operating system is known for its use in servers and mainframes?
A) Windows
B) MacOS
C) Unix
D) Android
Answer: C
B) A situation where two or more processes are unable to proceed because each is
waiting for the other to release a resource
Answer: B
A) NTFS
B) ext4
C) HFS+
D) FAT32
Answer: A
Answer: A
A) Windows
B) Linux
C) Android
D) Unix
Answer: C
Answer: C
A) DOS
B) Windows
C) Unix
D) Linux
Answer: A
B) A technique that allows the execution of processes that may not be completely in
memory
Answer: B
A) Word processing
B) Spreadsheet calculations
Answer: C
A) Proprietary
B) Open-source
C) Real-time
D) Single-user
Answer: B
73. Which part of the operating system is responsible for managing memory?
A) File system
B) Kernel
C) User interface
D) Device drivers
Answer: B
A) To edit documents
C) To play games
D) To create presentations
Answer: B
A) Windows 10
B) Ubuntu
C) Android
D) macOS
Answer: C
Answer: B
Answer: A
C) A hardware component
Answer: A
A) NTFS
B) ext4
C) HFS+
D) FAT32
Answer: C
A) A program in execution
B) A type of hardware
C) A user command
D) A system call
Answer: A
A) Threads
B) Sockets
C) Memory allocation
D) Semaphores
Answer: D
A) To manage memory
D) To schedule processes
Answer: B
Answer: B
D) A network protocol
Answer: B
A) open()
B) create()
C) start()
D) begin()
Answer: A
C) To schedule processes
Answer: A
Answer: B
B) A type of hardware
D) A user command
Answer: A
89. Which operating system is used for Apple’s desktop and laptop computers?
A) Windows
B) Linux
C) Unix
D) macOS
Answer: D
B) A type of hardware
C) A programming language
Answer: A
A) Windows
B) Linux
C) Oracle
D) MacOS
Answer: C
A) Windows
B) Linux
C) Unix
D) MacOS
Answer: A
Answer: D
A) Windows
B) Linux
C) MacOS
D) DOS
Answer: B
Answer: B
A) Windows
B) Unix
C) RTOS
D) Linux
Answer: C
Answer: A
C) To manage files
Answer: A
A) Memory management
B) Processor management
C) Application development
D) Device management
Answer: C
B) Program Counter
Answer: C