Operating System & Unix
MCQs based on fundamentals of Operating System & Unix
Questions
The only state transition initiated by the user process itself is
- wakeup
- block
- dispatch
- sleep
Page fault occurs when
- the page is not in main memory
- the page is in main memory
- the page is corrupted by application software
- we try to divide a number by zero
From which state will a process waiting for some I/O service in BLOCKED state start?
- Running state
- Ready state
- Terminated state
- Suspended state
Mutual exclusion problem occurs between
- two disjoint processes
- processes that share resources
- processes that don't use the same resources
- two processes in critical region
Which of the following is a real-time system?
- Payroll processing
- Aircraft control
- Library
- Automobile system
Overlay is
- a part of an operating system
- a single contiguous memory used for running long program by swapping
- overloading the system with many user files
- a single memory location
Which of the following is a single user OS?
- MS DOS
- UNIX
- OS/2
- LISP
The main function of shared memory is
- to use primary memory efficiently
- to do inter-process communication
- to do intra-process communication
- to control disk scheduling
The size of virtual memory depends on
- size of address bus
- size of main memory
- size of data bus
- none of the above
Necessary conditions for deadlock are
- non-preemption and circular wait
- mutual exclusion and partial allocation
- both 1 and 2
- none of above
Which of the following page replacement algorithms suffer(s) from Belady's Anomaly?
- LRU
- FIFO
- Optimal replacement
- Both 1 and 3
An attempt of reading a locked file is
- a deadlock
- premature termination
- system standby
- none of the above
Aging is
- increasing the priority of jobs to ensure termination in finite time
- keeping track of cache contents
- keeping track of page references
- keeping track of pages in main memory at a time
Shell command
- can be used to jump from infinite looping
- can be used to indicate comment
- provides a communication channel
- manages set of primitive functions
When a system makes system call, its mode changes from
- user to kernel
- kernel to user
- scheduled to unrestricted
- none of the above
The smallest addressable portion of a disk is called
- sector
- track
- record
- bit
Unix shell is
- a GUI interface
- a set of commands
- a command line interpreter
- a web browser
DMA stands for
- Direct Memory Access
- Direct Memory Accelerator
- Directional Memory Access
- Deemed Memory Accelerator
Semaphores are used to solve
- process synchronization
- race condition
- parallel execution
- none of the above
Dirty bit is used to show
- page with corrupted data
- wrong page in memory
- page modified after being loaded in cache memory
- page that is less frequently accessed
File pointer is
- a long integer
- a pointer data type
- a pointer to BOF
- a pointer to EOF
Which of the following calls never returns an error?
- Fork
- Getpid
- Open
- Ready
Concurrent processes are
- processes that don't overlap in time
- processes that overlap in time
- processes that are executed by CPU at the same time
- none of above
Disk scheduling decides
- which disk should be accessed next
- the order in which disk access requests must be served
- physical location of files on disk
- none of the above
Which scheduling algorithm gives minimum average waiting time?
- FCFS
- SJF
- Round Robin
- Priority