Operating System Questions MCQ
Operating System Questions MCQ
4. Which one of the following error will be handle by the operating system?
a) power failure
b) lack of paper in printer
c) connection failure in the network
d) all of the mentioned
Answer:d
17) The amount of time required for the scheduling dispatcher to stop one
process and start another is known as ______________.
a) event latency
b) interrupt latency
c) dispatch latency
d) context switch
Answer : c
27.A process P consists of five pages P1, P2, P3, P4, and P5, but the
operating system allows it only THREE page-frames. During its lifetime the
process references its pages in the order P1, P2, P3, P2, P1, P4, P1, P5.
If the memory management policy is LFU (Least Frequently Used, with FIFO
used to decide ties), which page will be replaced to make room for P5?
(a) P1 (b) P2 (c) P3
(d) P4 (e) P5.
Answer : (d)
(a) (I), (II) and (IV) are only true (b) (I), (II) and
(III) are only true
(c) None is true (d) All are true
(e) (I) and (IV) are only true.
Answer : (a)
31.The arrival times of four pre-emptive processes P1, P2, P3 and P4 to the
‘ready to run’ queue and their expected PROCESSOR times are given in the
following table.
Process
Arrival Time
Expected PROCESSOR Time
P1
0
6
P2
1
4
P3
2
8
P4
3
5
If these processes are scheduled by using the pre-emptive Shortest-Job-
First scheduling algorithm, what would be the possible sequence/sequences
of their execution?
(a) P1, P2, P3, P4 (b) P1, P2, P4, P1, P3
(c) P1, P2, P3, P4, P3
(d) P1, P2, P1, P3, P4
(e) P1, P3, P2, P4, P3.
Answer : (b)
33.let the waiting time of a process for the CPU be the total time the
process waiting in the ready to run queue. Three pre-emptive processes P1,
P2, P3 are in the ready to run queue at time 0. P1 is at the head of the
queue and P3 is at the tail. The expected CPU time for these processes P1,
P2, P3 are 24, 3 and 3 time units respectively. If the PROCESSOR time
quantum given for a process to use the CPU continuously is 4 time units,
what is the average waiting time for a process if the processes are
scheduled using the Round-Robin scheduling algorithm?
(a) 2 time units (b) 9 time units
(c) 5.66 time units
(d) 8.66 time units (e) 3.66 time units.
Answer : (c)
39.Demand paging and swapping are two widely used memory management
techniques. Which of the following statements is not true in this regard?
(a) Moving the whole user context of a process between the main memory
and the virtual memory is known as swapping
(b) Moving pages corresponding to the user context of a process between
the main memory and the virtual memory as and when required is known as
demand paging
(c) Demand paging incurs a higher overhead than swapping
(d) If both demand paging and swapping are implemented by the memory
management system, the default mechanism resorted to is demand paging
(e) When the system’s main memory space becomes comparatively smaller
than the space required to run its applications, swapping activity becomes
more visible.
Answer : (c)
42.Suppose requests have recently arrived for data on cylinders 25, 46, 12,
and 3, in that order, and that the read-write head is currently at cylinder
20. If the disk scheduling policy is SSTF, the outstanding requests will
be serviced in the order
(a) 25, 46, 12, 3 (b) 25, 46, 3, 12
(c) 3, 12, 25, 46
(d) 25, 12, 3, 46 (e) 12,3,25,46.
Answer : (d)
46.A process that executes a READ instruction for a data record currently
on disk will undergo a process state transition from
(a) Ready to blocked
(b) Running to blocked (c) Blocked to ready
(d) Blocked to running (e) Terminated.
Answer : (b)
50.Which of the following controls all the computer resources and provides
the base upon which the application programs can be written?
(a) Application Software (b) C.P.U
(c) Operating System
(d) Bare Hardware (e) Device Drivers.
Answer : (c)
53.Which of the following software layer is used between the kernel and the
user computations in the network O.S?
(a) Local O.S (b) Network O.S
(c) Global O.S
(d) Distributed O.S (e) Remote O.S.
Answer : (b)
55.If a program is under execution by CPU then we say the process is under
(a) CPU Burst (b) Process
(c) I/O Burst
(d) Ready Queue (e) New State.
Answer : (a)
57.The amount of time that a job waits in a ready queue for getting
selected by CPU is called
(a) Turn around time
(b) Waiting time (c) Completion time
(d) Submission time
(e) Throughput.
Answer : (b)
65.Which of the following area is used to store the O.S programs in the
main memory?
(a) User memory area
(b) Monitor memory area
(c) Heap area (d) Stack area
(e) Data area.
Answer : (b)
66.In Unix which of the following system calls returns the meta data about
a file?
(a) fstat (b) mstat (c) Metacall
(d) Sigabort (e) fork.
Answer : (a)
69.Before we store data into a disk it must be divided into sectors and
from where the disk controller can read and write. This is known
as________.
(a) Low-level formatting (b) Fragmenting
(c) High-level formatting
(d) Cleaning (e) Portioning a
disk.
Answer : (d)
70.The disk controller can be told to replace each bad sector logically
with one of the spare sectors in the disk. This scheme is known as_______.
(a) Sector sparing (b) Sector slipping
(c) Forwarding
(d) Back word replacing (e) Sector replace.
Answer : (a)
73.The time required to move the disk head to the desired track is known as
(a) Access Time (b) Track Time
(c) Latency Time
(d) Seek Time (e) Block Time.
Answer : (d)
75.The name of the file does not reveal any hint of the file’s physical
storage location is called_____.
(a) Location independence (b) Protection
(c) Location transparency
(d) File migration (e) Inter-machine
interface.
Answer : (c)
Answers
1.
Answer : (c)
2.
Answer : (e)
3.
Answer : (a)
4.
Answer : (b)
5.
Answer : (c)
6.
Answer : (d)
7.
Answer : (d)
8.
Answer : (d)
9.
Answer : (c)
10.
Answer : (a)
11.
Answer : (c)
12.
Answer : (b)
13.
Answer : (b)
14.
Answer : (c)
15.
Answer : (b)
16.
Answer : (d)
17.
Answer : (d)
18.
Answer : (d)
19.
Answer : (d)
20.
Answer : (c)
21.
Answer : (b)
22.
Answer : (c)
23.
Answer : (d)
24.
Answer : (b)
25.
Answer : (b)
26.
Answer : (c)
27.
Answer : (b)
28.
Answer : (d)
29.
Answer : (b)
30.
Answer : (a)
31.
Answer : (c)
32.
Answer : (a)
33.
Answer : (a)
34.
Answer : (b)
35.
Answer : (a)
36.
Answer : (a)
37.
Answer : (b)
38.
Answer : (b)
39.
Answer : (e)
40.
Answer : (a)
41.
Answer : (c)
42.
Answer : (d)
43.
Answer : (b)
44.
Answer : (c)
45.
Answer : (e)
46.
Answer : (b)
47.
Answer : (a)
48.
Answer : (b)
49.
Answer : (b)
50.
Answer : (d)
51.
Answer : (a)
52.
Answer : (c)
53.
Answer : (b)
54.
Answer : (e)
55.
Answer : (b)
56.
Answer : (a)
57.
Answer : (d)
58.
Answer : (b)
59.
Answer : (c)
60.
Answer : (c)