OS Mcqs
OS Mcqs
OS Mcqs
1)During execution of a program if program references a page that is not available in main memory, it is
called
A. Demand Paging
B. Frame Fault
C. page fault
D. processor fault
2) __________has ability to mark an entry invalid through a valid–invalid bit or a special value of
protection bits
A.Secondary memory
B.Swap Device
C.Page Table
D.None of the above
A.Demand Paging
B.Virtual Memory
C.Page Fault
D.None of the above
4) Consider the following sequence of addresses : 123,215,600,1234,76,96. If page size is 100, then the
reference string is?
A. 1,2,6,12
B. 12,21,60,123,7,9
C. 1,2,6,12,0,0
D. 0,2,6,12,0,0
8)In page replacement the working set model is based on assumption of__________
a) modularity
b) locality
c) globalization
d) random access
10) Consider a disk queue with requests for I/O to blocks on cylinders.
98 183 37 122 14 124 65 67.Considering SSTF (shortest seek time first) scheduling, the total number of
head movements is, if the disk head is initially at 53 is?
a) 224
b) 236
c) 245
d) 240
11) In the ______ algorithm, the disk arm goes as far as the final request in each direction, then reverses
direction immediately without going to the end of the disk.
a) LOOK
b) SCAN
c) C-SCAN
d) C-LOOK
A.632,232
B.234,286
C.331,234
D.232,632
13) The two main aspects of Virtual memory is _____________
A. Frame allocation and Page Replacement
B.Page Fault and Thrashing
C.Thrashing and Frame allocation
D.None of the above
14) The algorithm replaces the page which will not be referred for so long in future. This is ____
A. Optimal Page Replacement algorithm
B.LRU
C.FIFO
D.None of the above
15) The time taken to locate the disk arm to a specified track where the data is to be read or write.
A.Seek Time
B.Transfer Time
C.Disk Access Time
D.None of the Above
16)Local network that uses fibre channel to connect several data storage devices
A.Storage Area Network
B.Network attached Storage
C.Both A and B
D.None of the above
17) For systems that place a heavy load on the disk which algorithm can be selected?
A.SSTF
B.SCAN
C.C-SCAN
D.Both B and C
18) ________ is series or collection of bits where each bit corresponds to a disk block.
A.Bit Map
B.Bit Block
C.Worksheet
D.None of the above
19) __________allows both parent and child processes to initially share the same pages in memory
A.fork
B. Copy-on-Write
C.Demand Paging
D.None of the above
20)__________ works based on Locality of Reference
A. Working – set Model
B.Page Fault Frequency Model
C.Thrashing
D.None of the above
21) Dividing a disk into sectors that the disk controller can read and write is ________
A. Low-level formatting
B. Logical formatting
C. Partition
D.None of the above
23) __________allows a user to transfer files without having an account on the remote system.
A. Anonymous access
B.Read access
C.Write access
D.None of the above
24) _________represent an important criterion for evaluating any file system that supports file sharing
A. Consistency semantics
B.File Sharing
C.Remote file systems
D. None of the above
29)Consider a main memory with five page frames and the following sequence of page references: 3, 8,
2, 3, 9, 1, 6, 3, 8, 9, 3, 6, 2, 1, 3. which one of the following is true with respect to page replacement
policies First-In-First-out (FIFO) and Least Recently Used (LRU)?
30)____________ stores the address of the free blocks in the first free block
A.Linked List
B.Grouping
C.Counting
D.None of the above
1)Consider a system having 64 frames and there are 4 process with the following virtual memory sizes:
V(1)=16, V(2)=128,V(3)=64,V(4)=48. The number of frames for each process using Equal allocation and
Proportional allocation
A.16,256
B.12,124
C.256,24
D.12,16
2) Consider a disk queue with request for input/output to block on cylinders 98, 183, 37, 122, 14, 124,
65, 67in that order. Assume that disk head is initially positioned at cylinder 53 and moving towards
cylinder number 0. The total number of head movements using Shortest Seek Time First (SSTF) and
SCAN algorithms are respectively
A.2013
B.1219
C.1967
D.1507
4) Assuming that the disk head is located initially at 32, find the number of disk moves required with
FCFS if the disk queue of I/O block requests are 98, 37, 14, 124, 65, 67 :
A.310
B.324
C.320
D.321
5) Which of the following statements is not true about disk-arm scheduling algorithms ?
A.SSTF (shortest seek time first) algorithm increases performance of FCFS.
B.The number of requests for disk service are not influenced by file allocation method.
C.Caching the directories and index blocks in main memory can also help in reducing disk arm
movements.
D.SCAN and C-SCAN algorithms are less likely to have a starvation problem.
6) If the disk head is located initially at 32, find the number of disk moves required with FCFS if the disk
queue of I/O blocks requests are 98, 37, 14, 124, 65, 67.
A.239
B.310
C.321
D.325
7.Consider the following page reference string: 7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1. calculate the total
number of page faults when allocated page blocks are 3
A.9
B.19
C.10
D.11
8. Consider a reference string: 4, 7, 6, 1, 7, 6, 1, 2, 7, 2. the number of frames in the memory is 3. the
number of page faults respective to Optimal Page Replacement Algorithm & c. LRU Page Replacement
Algorithm is
A.5,6
B.6,5
C.7,5
D.5,7
9. Consider the following disk request sequence for a disk with 100 tracks. 98, 137, 122, 183, 14, 133, 65,
78.Head pointer starting at 54 and moving in left direction. The number of head movements in cylinders
using SCAN & C-SCAN scheduling.
A.237,387
B.387,237
C.257,357
D.None of the above
10. The given instance of disk blocks as below. (where green blocks are allocated) can be represented by
a bitmap as
A. 0000111000000110
B. 0000111000000010
C. 0001111000000110
D. 0000111001011110
11. A CPU generates 32-bit virtual address. The page size is 4 KB. The processor has a TLB which can hold
a total of 128 page table entries and is a 4 way set associative. The minimum size of TLB tag is
A.11 bits
B.13 Bits
C.15 bits
D.20 bits
12.Match the following and select the appropriate answer
A.i)-d ; ii)-c;iii)-b;iv)a
B.i)-d ; ii)-c;iii)-a;iv)b
C.i)-b ; ii)-c;iii)-a;iv)d
D.i)-b ; ii)-a;iii)-c;iv)d
13) In Unix File Permission, -rwxr-xr-- represents that the owner has__________-rwxr-xr-- represents
that the group has_____________
A. read (r), write (w) and execute (x) permission; read (r) and execute (x) permission, but no write
permission
B. read (r) and execute (x) permission, but no write permission; read (r), write (w) and execute (x)
permission
C. read (r) only permission; read (r), write (w) and execute (x) permission
D.None of the above
14) VFS in Linux is based upon four key object types. Match appropriately.
A.i)-c ; ii)-d;iii)-b;iv)a
B.i)-d ; ii)-c;iii)-a;iv)b
C.i)-b ; ii)-c;iii)-a;iv)d
D.i)-b ; ii)-a;iii)-c;iv)d
15) What does the below graph indicate? What does it infer?
A. FIFO Page replacement Algorithm; if number of page frames increases page fault also increases
B. Belady’s Anomaly; if number of page frames increases page fault also increases
C. FIFO Page replacement Algorithm; if number of page frames decreases page fault increases
D. Belady’s Anomaly ; if number of page frames decreases page fault increases
16. Order of request is- (82,170,43,140,24,16,190) and current position of Read/Write head is : 50
total seek time using FCFS and SSTF is
A.642; 208
B.208;642
C.332;208
D.332;642
18)The first entry in the stack frame contains ______________ and second entry contains
______________
A.The previous value of the frame base; the return address of the function
B. the return address of the function; The previous value of the frame base
C. The previous value of the frame base; the next value of the frame base
D. the next value of the frame base; The previous value of the frame base
19) Match the following commands
A.i)-b ; ii)-c;iii)-a
B.i)-c ; ii)-b;iii)-a
C.i)-a ; ii)-b;iii)-c
D.i)-a ; ii)-c;iii)-b
21) Consider a typical disk that rotates at 15000 rotations per minute (RPM) and has a transfer rate of 50
× 106 bytes/sec. If the average seek time of the disk is twice the average rotational delay and the
controller’s transfer time is 10 times the disk transfer time, the average time (in milliseconds) to read or
write a 512 byte sector of the disk is _____________
A.6.1
B.7.1
C.5.1
D.8.1
22) Suppose the following disk request sequence (track numbers) for a disk with 100 tracks is given: 45,
20, 90, 10, 50, 60, 80, 25, 70. Assume that the initial position of the R/W head is on track 50. The
additional distance that will be traversed by the R/W head when the Shortest Seek Time First (SSTF)
algorithm is used compared to the SCAN (Elevator) algorithm (assuming that SCAN algorithm moves
towards 100 when it starts execution) is _________ tracks
A.8
B.9
C.10
D.11
23) Suppose a disk has 201 cylinders, numbered from 0 to 200. At some time the disk arm is at cylinder
100, and there is a queue of disk access requests for cylinders 30, 85, 90, 100, 105, 110, 135 and 145. If
Shortest-Seek Time First (SSTF) is being used for scheduling the disk access, the request for cylinder 90 is
serviced after servicing ____________ number of requests
A.1
B.2
C.3
D.4
24) A virtual memory system uses First In First Out (FIFO) page replacement policy and allocates a fixed
number of frames to a process. Consider the following statements:
25) A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin
with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages
but now in the reverse order. How many page faults will occur?
A.192
B.195
C.186
D.196
26) A process has been allocated 3 page frames. Assume that none of the pages of the process are
available in the memory initially. The process makes the following sequence of page references
(reference string): 1, 2, 1, 3, 7, 4, 5, 6, 3, 1.If optimal page replacement policy is used, how many page
faults occur for the above reference string?
A.10
B.9
C.7
D.8
27) Consider the virtual page reference string 1, 2, 3, 2, 4, 1, 3, 2, 4, 1.On a demand paged virtual
memory system running on a computer system that main memory size of 3 pages frames which are
initially empty. Let FIFO and OPTIMAL denote the number of page faults under the corresponding page
replacements policy. Then
28) Consider a disk queue with I/O requests on the following cylinders in their arriving order:
6, 10, 12, 54, 97, 73, 128, 15, 44, 110, 34, 45 .The disk head is assumed to be at cylinder 23 and moving
in the direction of decreasing number of cylinders. Total number of cylinders in the disk is 150. The disk
head movement using SCAN-scheduling algorithm is:
A.172
B.173
C.151
D.228
29) Consider a virtual page reference string 1, 2, 3, 2, 4, 2, 5, 2, 3, 4. Suppose LRU page replacement
algorithm is implemented with 3 page frames in main memory. Then the number of page faults
are_________.
A.7
B.5
C.9
D.10
A.i,ii,iii
B.ii,iii,iv
C.i,iii,iv
D.All statements are true
33) The action of moving a process out from main memory to secondary memory is called ________&
the action of moving a process out from secondary memory to main memory is called ____________
A.Swap out, Swap in
B.Swap in, Swap out
C.Counting ,Gropuing
D.Grouping, Counting
35) A computer system supports 32-bit virtual addresses as well as 32-bit physical addresses. Since the
virtual address space is of the same size as the physical address space, the operating system designers
decide to get rid of the virtual memory entirely. Which one of the following is true?
A.Efficient implementation of multi-user support is no longer possible
B. The processor cache organization can be made more efficient now
C. CPU scheduling can be made more efficient now
D. Hardware support for memory management is no longer needed