Operating System MCQ's Set -3
41] At least one resource must be held in a non-sharable mode; that is, only one process at a time can use the resource. If another process requests that resource, the requesting process must be delayed until the resource has been released. This condition for deadlock is referred to as :
(A) Mutual exclusion
(B) Hold and wait
(C) No preemption
(D) Circular wait
ANSWER : A
42] The resource-allocation-graph algorithm is applicable to___
(A) a resource allocation system with single instances of each resource type
(B) a resource allocation system with multiple instances of each resource type
(C) a resource allocation system with Single and multiple instances of each resource type
(D) None of the above
ANSWER : A
43] Banker's algorithm for resource allocation deals with?
(A) deadlock prevention
(B) deadlock avoidance
(C) deadlock recovery
(D) mutual exclusion
ANSWER : B
44] A problem encountered in multitasking when a process is denied necessary resources is called:
(A) deadlock
(B) starvation
(C) inversion
(D) aging
ANSWER : B
45] Deadlock prevention is a set of methods :
(A) to ensure that at least one of the necessary conditions cannot hold
(B) to ensure that all of the necessary conditions do not hold
(C) to decide if the requested resources for a process have to be given or not
(D) to recover from a deadlock
ANSWER : A
46] Which page replacement algorithm suffers from Belady's anomaly?
(A) LRU
(B) MRU
(C) FIFO
(D) LIFO
ANSWER : C
47] Compaction is the solution to ________ .
(A) internal fragmentation
(B) dangling reference
(C) external fragmentation
(D) memory leak
ANSWER : C
48] Virtual Memory is __________.
(A) Extremely Large Main memory
(B) Extremely Large Secondary memory
(C) An illusion of extremely large main memory
(D) An illusion of extremely large secondary memory
ANSWER : C
49] The kernel may decide keeping part of each process's address spaces in memory. It is achieved by part of memory hierarchy
(A) Caches
(B) Disk
(C) RAM
(D) Virtual memory
ANSWER : D
50] Which one is true ?
(A) The linkage editor is used to edit programs which have to later link together
(B) The linkage editor links object module during compiling
(C) The linkage editor links objects modules and resolves external references between them before loading
(D) None of the above
ANSWER : C
51] ______ is ready to execute form of a program
(A) Reentrant program
(B) Object module
(C) Binary Program
(D) Self-relocating program
ANSWER : C
52] ________ technique may split memory area at the start of the free list repeatedly,so free memory area become smaller with time.
(A) First Fit
(B) Best-Fit
(C) Next-Fit
(D) Worst-Fit
ANSWER : A
53] In Non-Contiguous memory allocation _______ .
(A) it increases the external fragmentation
(B) it reduce the external fragmentation
(C) it increases the internal fragmentation
(D) it reduce the internal fragmentation
ANSWER : B
54] Logical address is the address______ .
(A) constituents the physical address space
(B) of an instruction or data byte as used in a process.
(C) in a memory where an instruction or data byte exists
(D) All of the above
ANSWER : B
55] By using the specific system call, we can ____________
(A) open the file
(B) read the file
(C) write into the file
(D) all of the mentioned
ANSWER : D
56] The direct access method is based on a ______ model of a file, as _____ allow random access to any file block.
(A) magnetic tape, magnetic tapes
(B) tape, tapes
(C) disk, disks
(D) all of the mentioned
ANSWER : C
57] The index block contains ____________
(A) names of all contents of file
(B) pointers to each page
(C) pointers to the various blocks
(D) all of the mentioned
ANSWER : C
58] For large files, when the index itself becomes too large to be kept in memory?
(A) index is called
(B) an index is created for the index file
(C) secondary index files are created
(D) all of the mentioned
ANSWER : B
59] What will happen in the two level directory structure?
(A) each user has his/her own user file directory
(B) the system doesn’t its own master file directory
(C) all of the mentioned
(D) none of the mentioned
ANSWER : A