Operating System MCQ Set 1
1. CPU fetches the instruction from memory according to the value of
a) program counter
b) status register
c) instruction register
d) program status word
Answer
Answer: a [Reason:] None.
2. A memory buffer used to accommodate a speed differential is called
a) stack pointer
b) cache
c) accumulator
d) disk buffer
Answer
Answer: b [Reason:] None.
3. Which one of the following is the address generated by CPU?
a) physical address
b) absolute address
c) logical address
d) none of the mentioned
Answer
Answer: c [Reason:] None.
4. Run time mapping from virtual to physical address is done by
a) Memory management unit
b) CPU
c) PCI
d) None of the mentioned
Answer
Answer: a [Reason:] None.
5. Memory management technique in which system stores and retrieves data from secondary storage for use in main memory is called
a) fragmentation
b) paging
c) mapping
d) none of the mentioned
Answer
Answer: b [Reason:] None.
6. The address of a page table in memory is pointed by
a) stack pointer
b) page table base register
c) page register
d) program counter
Answer
Answer: b [Reason:] None.
7. Program always deals with
a) logical address
b) absolute address
c) physical address
d) relative address
Answer
Answer: a [Reason:] None.
8. The page table contains
a) base address of each page in physical memory
b) page offset
c) page size
d) none of the mentioned
Answer
Answer: a [Reason:] None.
9. What is compaction?
a) a technique for overcoming internal fragmentation
b) a paging technique
c) a technique for overcoming external fragmentation
d) a technique for overcoming fatal error
Answer
Answer: c [Reason:] None.
10. Operating System maintains the page table for
a) each process
b) each thread
c) each instruction
d) each address
Answer
Answer: a [Reason:] None.
Operating System MCQ Set 2
1. Which process can be affected by other processes executing in the system?
a) cooperating process
b) child process
c) parent process
d) init process
Answer
Answer: a [Reason:] None.
2. When several processes access the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place, is called
a) dynamic condition
b) race condition
c) essential condition
d) critical condition
Answer
Answer: b [Reason:] None.
3. If a process is executing in its critical section, then no other processes can be executing in their critical section. This condition is called
a) mutual exclusion
b) critical exclusion
c) synchronous exclusion
d) asynchronous exclusion
Answer
Answer: a [Reason:] None.
4. Which one of the following is a synchronization tool?
a) thread
b) pipe
c) semaphore
d) socket
Answer
Answer: c [Reason:] None.
5. A semaphore is a shared integer variable
a) that can not drop below zero
b) that can not be more than zero
c) that can not drop below one
d) that can not be more than one
Answer
Answer: a [Reason:] None.
6. Mutual exclusion can be provided by the
a) mutex locks
b) binary semaphores
c) both mutex locks and binary semaphores
d) none of the mentioned
Answer
Answer: c [Reason:] Binary Semaphores are known as mutex locks.
7. When high priority task is indirectly preempted by medium priority task effectively inverting the relative priority of the two tasks, the scenario is called
a) priority inversion
b) priority removal
c) priority exchange
d) priority modification
Answer
Answer: a [Reason:] None.
8. Process synchronization can be done on
a) hardware level
b) software level
c) both hardware and software level
d) none of the mentioned
Answer
Answer: c [Reason:] None.
9. A monitor is a module that encapsulates
a) shared data structures
b) procedures that operate on shared data structure
c) synchronization between concurrent procedure invocation
d) all of the mentioned
Answer
Answer: d [Reason:] None.
10. To enable a process to wait within the monitor,
a) a condition variable must be declared as condition
b) condition variables must be used as boolean objects
c) semaphore must be used
d) all of the mentioned
Answer
Answer: a [Reason:] None.
Operating System MCQ Set 3
1. The systems which allows only one process execution at a time, are called
a) uniprogramming systems
b) uniprocessing systems
c) unitasking systems
d) none of the mentioned
Answer
Answer: b [Reason:] Those systems which allows more than one process execution at a time, are called multiprogramming systems. Uniprocessing means only one processor.
2. In operating system, each process has its own
a) address space and global variables
b) open files
c) pending alarms, signals and signal handlers
d) all of the mentioned
Answer
Answer: d [Reason:] None.
3. In Unix, Which system call creates the new process?
a) fork
b) create
c) new
d) none of the mentioned
Answer
Answer: a [Reason:] None.
4. A process can be terminated due to
a) normal exit
b) fatal error
c) killed by another process
d) all of the mentioned
Answer
Answer: d [Reason:] None.
5. What is the ready state of a process?
a) when process is scheduled to run after some execution
b) when process is unable to run until some task has been completed
c) when process is using the CPU
d) none of the mentioned
Answer
Answer: a [Reason:] When process is unable to run until some task has been completed, the process is in blocked state and if process is using the CPU, it is in running state.
6. What is interprocess communication?
a) communication within the process
b) communication between two process
c) communication between two threads of same process
d) none of the mentioned
Answer
Answer: b [Reason:] None.
7. A set of processes is deadlock if
a) each process is blocked and will remain so forever
b) each process is terminated
c) all processes are trying to kill each other
d) none of the mentioned
Answer
Answer: a [Reason:] None.
8. A process stack does not contain
a) Function parameters
b) Local variables
c) Return addresses
d) PID of child process
Answer
Answer: d [Reason:] None.
9. Which system call returns the process identifier of a terminated child?
a) wait
b) exit
c) fork
d) get
Answer
Answer: a [Reason:] None.
10. The address of the next instruction to be executed by the current process is provided by the
a) CPU registers
b) Program counter
c) Process stack
d) Pipe
Answer
Answer: b [Reason:] None.
Operating System MCQ Set 4
1. Which principle states that programs, users and even the systems be given just enough privileges to perform their task?
a) principle of operating system
b) principle of least privilege
c) principle of process scheduling
d) none of the mentioned
Answer
Answer: b [Reason:] None.
2. _______ is an approach to restricting system access to authorized users.
a) Role-based access control
b) Process-based access control
c) Job-based access control
d) None of the mentioned
Answer
Answer: a [Reason:] None.
3. For system protection, a process should access
a) all the resources
b) only those resources for which it has authorization
c) few resources but authorization is not required
d) all of the mentioned
Answer
Answer: b [Reason:] None.
4. The protection domain of a process contains
a) object name
b) rights-set
c) both object name and rights-set
d) none of the mentioned
Answer
Answer: c [Reason:] None.
5. If the set of resources available to the process is fixed throughout the process’s lifetime then its domain is
a) static
b) dynamic
c) neither static nor dynamic
d) none of the mentioned
Answer
Answer: a [Reason:] None.
6. Access matrix model for user authentication contains
a) a list of objects
b) a list of domains
c) a function which returns an object’s type
d) all of the mentioned
Answer
Answer: d [Reason:] None.
7. Global table implementation of matrix table contains
a) domain
b) object
c) right-set
d) all of the mentioned
Answer
Answer: d [Reason:] None.
8. For a domain _______ is a list of objects together with the operation allowed on these objects.
a) capability list
b) access list
c) both capability and access list
d) none of the mentioned
Answer
Answer: a [Reason:] None.
9. Which one of the following is capability based protection system?
a) hydra
b) cambridge CAP system
c) both hydra and cambridge CAP system
d) none of the mentioned
Answer
Answer: c [Reason:] None.
10. In UNIX, domain switch is accomplished via
a) file system
b) user
c) superuser
d) none of the mentioned
Answer
Answer: a [Reason:] None.
Operating System MCQ Set 5
1. In real time operating system
a) all processes have the same priority
b) a task must be serviced by its deadline period
c) process scheduling can be done only once
d) kernel is not required
Answer
Answer: b [Reason:] None.
2. Hard real time operating system has ___ jitter than a soft real time operating system.
a) less
b) more
c) equal
d) none of the mentioned
Answer
Answer: a [Reason:] Jitter is the undesired deviation from the true periodicity.
3. For real time operating systems, interrupt latency should be
a) minimal
b) maximum
c) zero
d) dependent on the scheduling
Answer
Answer: a [Reason:] Interrupt latency is the time duration between the generation of interrupt and execution of its service.
4. In rate monotonic scheduling
a) shorter duration job has higher priority
b) longer duration job has higher priority
c) priority does not depend on the duration of the job
d) none of the mentioned
Answer
Answer: a [Reason:] None.
5. In which scheduling certain amount of CPU time is allocated to each process?
a) earliest deadline first scheduling
b) proportional share scheduling
c) equal share scheduling
d) none of the mentioned
Answer
Answer: b [Reason:] None.
6. The problem of priority inversion can be solved by
a) priority inheritance protocol
b) priority inversion protocol
c) both priority inheritance and inversion protocol
d) none of the mentioned
Answer
Answer: a [Reason:] None.
7. Time duration required for scheduling dispatcher to stop one process and start another is known as
a) process latency
b) dispatch latency
c) execution latency
d) interrupt latency
Answer
Answer: b [Reason:] None.
8. Time required to synchronous switch from the context of one thread to the context of another thread is called
a) threads fly-back time
b) jitter
c) context switch time
d) none of the mentioned
Answer
Answer: c [Reason:] None.
9. Which one of the following is a real time operating system?
a) RTLinux
b) VxWorks
c) Windows CE
d) All of the mentioned
Answer
Answer: d [Reason:] None.
10. VxWorks is centered around
a) wind microkernel
b) linux kernel
c) unix kernel
d) none of the mentioned
Answer
Answer: a [Reason:] None.