Sample Paper CS604
Sample Paper CS604
FINALTERM EXAMINATION
Fall 2022
CS604 – Operating System
Time: 90 min
Marks: 60
________is the interface provided by the operating system to access the system services.
A. Library
B. System calls
C. Assembly instructions
D. API
A. Windows
B. MAC
E. Ms-Dos
C. Linux
The list of processes is placed in _______ that are prepared to be executed and waiting
for CPU.
A. Job queue
B. Ready queue
C. Execution queue
D. Process queue
A. Timer interrupt
B. Device
C. Power failure
D. Scheduler process
Which of the following "semaphore" can take the non-negative integer values?
A. Binary Semaphore
B. Counting Semaphore
C. Real Semaphore
D. Integer Semaphore
__________ that can be loaded into adjacent “holes” in the main memory.
A. Segments
B. Frames
C. Partitions
D. Pages
In deadlock characteristics we restrict that at least one resource must be held in non-
shareable mode; that is only one process is allowed to use the resource is
called__________.
A. Mutual exclusion:
B. Semaphore
C. Signal
D. Circular wait
Deadlock handling technique that each process will give the advance information like
which resource will be requested during their life time is called_______.
A. deadlock prevention
B. deadlock avoidance
C. deadlock stopping
D. deadlock creation
A System is in _______ if the system can allocate resources to each process in some
order and still avoid a deadlock.
A. Unsafe state
B. Safe state
C. Remainder state
D. Waiting state
A ______Pi →Rj indicates that process Pi may request resource Rj at some time in the
future.
A. request edge
B. claim edge
C. system edge
D. first edge
In _______ when new process enters the system, it must declare the maximum
number of instances of each resource type that it may need.
A. Response algorithm
B. Banker algorithm
C. Request algorithm
D. Debit algorithm
We obtain _______ from the resource allocation graph by removing the nodes of type
resource and collapsing the appropriate edges.
A. wait-cycle graph
B. wait-for graph.
C. Wait-sub graph
D. Wait-line graph
In resource preemption _________ indicates that, which resources and which processes
are to be pre-empted.
A. Rollback
B. Starvation
C. Selecting a Victim
D. prioritization
The compiler must generate the _________ code, where the process to be resided in
physical memory.
A. One-link
B. re-locatable
C. Stackable
D. Three-link
A. Static loading
B. Dynamic loading
C. Fuzzy loading
D. Segment loading
A. 8
B. 9
C. 4
D. 6
A. It has Page number, frame number for the page, and pointer to the previous
element—(p, f, prev).
B. It has Page number, frame number for the page, and pointer to the next element—
(p, f, next).
C. It has Segment number, page number for the page, and pointer to the previous
element—(s, f, prev).
D. It has Segment offset, frame number for the page, and pointer to the previous
element—(s, f, prev).
A. Hashing
B. Segmentation
C. Paging
D. synchronization
______ happens if the process tries to access a page that has not been brought into
memory.
A. Page fault
B. Page drop
C. Segment line
D. Page stop
A. Fixed allocation
B. Priority allocation
C. Proportional Allocation
D. Simple Allocation
A. Thrashing
B. Segmenting
C. Starting
D. Scaling
Consider a process with its segment 15 having 5096 bytes. The process generates a
logical address (15,3921). Where Page size = 1 KB
How many pages does the segment have?
What page does the logical address refer to?
In performance of paging, you are required to find the effective Memory access time
where.
Tmem (Time to Access memory) = 110 nsec
TTLB (Time to Access Look Aside Buffer) = 30 nsec
Hit ratio is 90%
Differentiate between the deadlock and starvation strategies in terms of process handling.
Explain the mounting of the file system, also differential between remote mounts and
Local mounts.
Remote mounts are done on a remote system on which data is transmitted over a
telecommunication line. Local mounts are mounts done on your local system.
See the following resource allocation graph. Does it contain deadlock? Also identify the
processes that create cycle in this graph.
In Contiguous memory allocation by using overlays, we can run the process larger than
the amount of memory allocated to it. Suppose we have following,
Available main memory: 150k
Code size: 200k
How can we run the above code using overlays with the help of a two-pass compiler?
Assume a logical address space of 32 pages of 512 words, each mapped into a physical
memory of 64 frames. You are required to calculate following parameters.
No. of bits needed for p = ?
No. of bits neede for f = ?
No. of bits needed for d = ?
Logical address size (bits) = ?
Physical address size (bits) = ?