2bca Sample Question OS
2bca Sample Question OS
1. In _________, the requesting device or devices assert the signal bus request.
Priority encoded arbitration
Distributed arbitration by self-selection
Priority arbitration
Daisy chain arbitration
8. Usually the memory is divided into two partitions: one for the operating system and another for
the_______
Single partition
Multiple partitions
Various user processes
Contiguous memory allocation
9. External fragmentation exists when enough memory space exists to satisfy a request but it is _______
Contiguous
Non-contiguous
Single partition
Multiple partitions
11. Physical memory is broken into fixed sized blocks called _______
Page fault
Frames
Buffer
Page table
12. Logical memory is broken into blocks of the same size called _______
Page fault
Frames
Pages
Page table
13. Segmentation, another memory management scheme, on which logical addresses consists of two tuple.
They are:
Subroutine & stack address
Symbol table & subroutine address
Segment number & offset address
None of the above
32. During the execution time of a process, a _______and the logical address space are same.
Logical address space
Virtual address space
Physical address space
Manual address space
34. A ______is a collection of processors that do not share memory, peripheral devices, or a clock.
Computer system
Distributed system
Network
None of the above
36. __________ is responsible for allocating primary memory to processes and for assisting the programmer
in loading and storing the contents of the primary memory.
Operating system
Memory manager
Database administrator
RAM
37. Refers to the technology in which some space in hard disk is used as an ______
Extension of main memory
Cache memory
Paging
Virtual memory
Associative memory
38. Selects a process from among the ready processes to execute on the CPU
CPU Scheduler
Loader
Dispatcher
Compiler
39. The time taken by the Dispatcher to stop one process and start another running is known as
Turnaround time
Dispatch Latency
Access time
Response time
40. When resources have multiple instances ________ is used for deadlock Avoidance.
Banker’s algorithm
Resource Allocation Graph
Semaphores
All of these
Group B
(Each question carries 2 marks)
42. The ________scheduler selects processes from this pool and loads them into memory fro execution.
Simple –term
Mid Term
Long Term
Short Term
44. Logical memory is broken into fixed sized blocks called _____
Frame
Pages
Page Table
Page Map
45. ________ solves the external-fragment and size-allocation problems of contagious allocation.
Index allocation
Link Allocation
Direct allocation
All of the above
46. The best reason to use semaphores rather than busy-waiting in a user-level program is:
Decreases the chance of deadlock
Decreases the chance of lovelock
Allows more different types of synchronization to be coded
Avoids wasted processor cycles
47. In multiprogramming environment, CPU switches from one process to another to achieve multitasking.
At that time the process needs to save its state before switching takes place. Such type of process
mechanism is known as _______
Process creation
CPU scheduling
Context switch
Throughput
49. Paging is a memory management scheme which avoids the considerable problem of fitting the _______
chunks (blocks) into the backing store, from which most of the previous memory management scheme
suffered.
Fixed sized memory
Vary sized memory
Similar sized memory
Equal sized memory
50. Every address generated by the CPU is divided into two parts. They are:
Page number & offset
Page table & fault
Index table & frame
Offset address & index address
51. _______ is a situation in which two computer programs sharing the same resource are effectively
preventing each other from accessing the resource, resulting in both programs ceasing to function.
Semaphore
Deadlock
Mutual Exclusion
No preemption
52. The controller can access memory in memory cycles which are not used by the particular bank of
memory into which the DMA controller is writing data. This approach, called _______
Interrupting
Cycle stealing
Swapping
Paging
53. A process that is holding at least one resource and is waiting to acquire additional resources that are
currently being held by other processes is a characteristic of deadlock is known as _______
Mutual exclusion
No preemption
Hold & wait
Circular wait
55. If a process moves between the different levels of queue i.e. The process generates the acknowledgement
signals to move from one level to another levels is refers a _______
Multiple process scheduling
Multiprogramming scheduling
Multilevel feedback queue scheduling
Multilevel queue scheduling
60. When a process creates a new process, two possibilities exist in terms of execution. They are:
The parent continues its execution concurrently with its children.
Parents can terminate its execution with out terminating its children.
The parent waits until some or all of its children have terminated.
All of the above
Part C (Four mark questions)
1. 1, 2, 3 and 4
2. 2, 3, 4.and 5
3. 3.4.5. And 1
4. 4, 5, 1 and 2
62. The number of faults occurred when FIF0 page replacement algorithm was used for a given string set
Reference string: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1
Page frame: 3
10
15
9
12
A) 1, 2, and 3
B) 2, 3 and 4
C) 1,2 and 4
D) 1, 2, 3 and 4
64. Given the set of input process and their burst requirement what is the average waiting time if SJF
algorithm is used for CPU Scheduling?
Process Burst
P1 6
P2 8
P3 7
P4 3
7
9
15
24.5
Set B:
I). Application software
Ii) system software
Iii) smaller capacity
V) larger capacity
67. Which of these is a reason for using threads in designing operating systems?
Unlike processes, threads are not independent of one another
All threads can access every address in the task.
Because threads can share common data, they do not need to use inter-process communication.
Like processes, thread can create children.
68. The introduction of mutual exclusion can prevent race conditions but can lead to problems such as__
Deadlock
Starvation
Both a) and b)
None of these
Set B:
I. Polled I/O
Ii. Cycle stealing
Iii. Maskable and non maskable
I, 2-iii, 3-ii
Ii, 2-iii, 3-i
Iii, 2-ii, 3-i
1-i , 2-ii , 3-iii
Set B:
I) Switches between processes
Ii) Initialization of I/O devices
Iii) Sells unixware
Iv) Case sensitive
Set B:
I. FIFO
Ii. A resource that contains an integer value
Iii. Change the priority of a process,
Iv. Zombie
Set B:
A) Accounting information
B) Process State
C) CPU scheduling
D) Program counter
74. Several reasons for providing an environment that allows process co-operation are;
System call
Semaphores
Information Sharing
Computation Speed-up
Modularity
Convenience
A,d,e,f
B,c,d,e
C,d,e,f
A,b,e,f
C,d,e,f
A,b,e,f
B,c,d,e
A,b,d,e
Group D
Answer the following questions (any five)
(Each question carries 6 marks)
76. Write short notes for the followings:
● Time-sharing system
● Real time system
● Spooling
77. What are the necessary conditions for deadlock? Explain.
78. What is Semaphore? Explain with synchronization problem.
79. Explain the followings:
● Scheduling criteria
● PCB
● SJF
80. Discuss the page replace algorithm with suitable examples.
81. Differentiate the logical vs. Physical address space.
82. Explain the followings:
● Contiguous allocation
● Segmentation
● Demand paging
83. Discuss First Come First Served scheduling algorithm.
84. Explain the process with the transition diagram.
85. Explain the operating system with its functions.
Best of luck