FINAL TERM EXAMINATION
Spring 2010
CS604- Operating Systems (Session - 4)
Time: 90 min
Marks: 60
Question No: 1 ( Marks: 1 ) - Please choose one
A ---------------- (or anexception) is a software-generated interrupt caused either by an error (division by zero or invalid memory access) or by a user request for an operating system service.
► Interrupt
► Trap
► Signal
► Process
Question No: 2 ( Marks: 1 ) - Please choose one
Which register holds the smallest legal physical memory address for a process?
► Base register
► Limit register
► Status register
► None of the given options
Question No: 3 ( Marks: 1 ) - Please choose one
The process of switching from one process to another is called -----------------
► context switching
► scheduling
► quantum period
► latency
Question No: 4 ( Marks: 1 ) - Please choose one
The --------------semaphore provides mutual exclusion for accesses to the buffer pool and is initialized to the value 1.
► mutex
► binary
► couting
► none of the given options
Question No: 5 ( Marks: 1 ) - Please choose one
Binary semaphores are those that have only two values---------
► 0 and n
► 0 and 0
► 0 and 1
► None of the given options
Question No: 6 ( Marks: 1 ) - Please choose one
Addresses generatedrelative to part of program, not to start of physical memory are
► Virtual
► Physical
► Relocatable
► Symbolic
Question No: 7 ( Marks: 1 ) - Please choose one
Object files and libraries are combined by a ------------- program to produce the executable binary
► Compiler
► Linker
► Text editor
► Loader
Question No: 8 ( Marks: 1 ) - Please choose one
Physical memory is broken down into fixed-sized blocks, called----------- and Logical memory is divided into blocks of the same size, called -----------
► Frames, pages
► Pages, Frames
► Frames, holes
► Holes, segments
Question No: 9 ( Marks: 1 ) - Please choose one
A page table needed for keeping track of pages of the page table is called --------------
► 2-level paging
► Page directory
► Page size
► Page table size
Question No: 10 ( Marks: 1 ) - Please choose one
The address generated by the CPU, after any indexing or other addressing-mode arithmetic, is called a --------address, and the address it gets translated to by the MMU is called a ---------address.
►
Virtual, physical
► Hexadecimal, Binary,
► Valid, invalid
► Physical, Virtual
Question No: 11 ( Marks: 1 ) - Please choose one
Each page is a power of -------- bytes long in paging scheme.
► 2
► 3
► 4
► 5
Question No: 12 ( Marks: 1 ) - Please choose one
_______ is a way to establish a connection between the file to be shared and the directory entries of the users who want to have aces to this file.
► Link
► Directory
► Common Group
► Access Permission
Question No: 13 ( Marks: 1 ) - Please choose one
When a _____link is created, a directory entry for the existing file is created
► Soft
None of the given options
► Hard
► Soft or Hard
► Soft or Hard
Question No: 14 ( Marks: 1 ) - Please choose one
The ___________ method requires each file to occupy a set of contiguous blocks on the disk.
► Contiguous Allocation
► Linked Allocation
► Indexed Allocation
► None of the given options
Question No: 15 ( Marks: 1 ) - Please choose one
Which part of the computer system helps in managing the file and memory management system?
► Operating System
► Device Drivers
► Application Software
► Hardware
Question No: 16 ( Marks: 1 ) - Please choose one
Which of the following is correct definition for wait operation?
► wait(S) {
while(S<=0)
;// no op
S--;
}
► wait(S) {
S++;
}
► wait(S) {
while(S>=0)
;// no op
S--;
}
► wait(S) {
S--;
}
Question No: 17 ( Marks: 1 ) - Please choose one
Wrong use of wait and signal operations (in context with semaphores) can cause _________ problem(s).
► Mutual Exclusion
► Deadlock
► Bounded Waiting
► All of the given options are correct
Question No: 18 ( Marks: 1 ) - Please choose one
If a system is not in a safe state, there can be no deadlocks.
► True
► False
Question No: 19 ( Marks: 1 ) - Please choose one
If a process continues to fault, replacing pages, for which it then faults and brings back in right away. This high paging activity is called ___________.
► paging
► thrashing
► page fault
► CPU utilization
Question No: 20 ( Marks: 1 ) - Please choose one
In _____________ page replace algorithm we will replace the page that has not been used for the longest period of time.
► counter based
► Least Frequently Used
► FIFO
► LRU
Question No: 21 ( Marks: 1 ) - Please choose one
Overlays are implemented by the _________________
► Operating system
► Programmer
► Kernel
► Shell
Question No: 22 ( Marks: 1 ) - Please choose one
An acyclic graph does not allow directories to have shared subdirectories and files.
► True
► False