‏إظهار الرسائل ذات التسميات Operating System. إظهار كافة الرسائل
‏إظهار الرسائل ذات التسميات Operating System. إظهار كافة الرسائل
Solved MCQ on Core Operating System Principle set-13

Solved MCQ on Core Operating System Principle set-13

1) In memory management, a technique called as paging, the physical memory is broken into fixed sized blocks called .........

A. pages

B. frames

C. blocks

D. segments


2) Which method is used to recover from deadlock?

A. Process termination

B. Resource preemption

C. Resource non-preemption

D. Process termination and Resource preemption


3) Saving the state of the old process and loading the saved state of the new process is called ....

A. context switch

B. static

C. multi programming

D. none of the above


4) The degree of Multiprogramming is controlled by ......

A. CPU scheduler

B. context switching

C. long term scheduler

D. medium term scheduler


5) Input transfers are done in advance and output transfers are done after sometimes in which of these technique?

A. Spooling

B. Buffering

C. Swapping

D. Paging


6) A binary semaphore .........

A. has the values one or zero

B. is essential to binary computers

C. is used only for synchronization

D. is used only for mutual exclusion


7) A scheduling algorithm is fair .......

A. if no process faces starvation.

B. if a process is starved, detect it and run it with high priority

C. if it uses semaphores

D. only if a queue is used for scheduling


8) Which of the following is also known as Double buffering?

A. anticipated buffering

B. buffer swapping

C. circular buffering

D. swapping buffering


9) .......... is the ability of a system to continue functioning in the event of partial system failure.

A. fault avoidance

B. fault tolerance

C. fault detection

D. fault recovery


10) Virtual memory is .........

A. an extremely large main memory

B. an extremely large secondary memory

C. an illusion of extremely large main memory

D. a type of memory used in super computers


11) Error handling and I/O interrupt handling are the functions of ......

A. I/O device Handler

B. I/O traffic controller

C. I/O scheduler

D. I/O buffer


12) In a multi-threaded environment..........

A. each thread is allocated with new memory from main memory

B. main thread terminates after the termination of child threads

C. every process can have only one thread

D. none of the above


13) The kernel keeps track of the state of each task by using a data structure called ......

A. process control block

B. user control block

C. memory control block

D. hardware control block


14) A virtual device is a ..........

A. dedicated for none purpose

B. shared device converted to a dedicated device

C. dedicated device converted to a shared device

D. shared device


15) CPU scheduling is the basis of ...........operating system.

A. batch

B. real time

C. multiprogramming

D. monoprogramming


16) ......... is a high speed cache used to hold recently referenced page table entries a part of paged virtual memory.

A. Translation look a side buffer

B. Inverse page table

C. Segmented page table

D. Indexed page table


17) A technique that smooths out peaks in I/O demand is ........

A. spooling

B. buffering

C. swapping

D. paging


18) In kernel model, the operating system services such as process management, memory management are provided by the kernel.

A. monolithic

B. micro

C. macro

D. Complex


19) A process is said to be in ........... state if it was waiting for an event that will never occur.

A. safe

B. unsafe

C. starvation

D. dead lock


20) Which of the following is an example of spooled device?

A. The terminal used to enter the input data for a program being executed

B. The secondary memory device in a virtual memory system

C. A line printer used to print the output of a number of jobs

D. None of the above

Answers:

1) B. frames
2) D. Process termination and Resource preemption
3) A. context switch
4) C. long term scheduler
5) B. Buffering
6) A. has the values one or zero
7) A. if no process faces starvation
8) B. buffer swapping
9) B. fault tolerance
10) C. an illusion of extremely large main memory
11) A. I/O device Handler
12) B. main thread terminates after the termination of child threads
13) A. process control block
14) B. shared device converted to a dedicated device
15) C. multiprogramming
16) A. Translation look a side buffer
17) B. buffering
18) A. monolithic
19) D. dead lock
20) C. A line printer used to print the output of a number of jobs


Related Posts:

More MCQs on Operating System

Objective Questions on Core Operating System set-12

Objective Questions on Core Operating System set-12

1) An optimal scheduling algorithm in terms of minimizing the average waiting time of a given set of process is ...

A. FCFS scheduling

B. Round robin scheduling algorithm

C. Shortest job first scheduling algorithm

D. Priority scheduling algorithm


2) The hardware mechanism that enables a device to notify the CPU is called .......

A. polling

B. interrupt

C. system call

D. none of the above


3) In the running state ........

A. only the process which has control of the processor is found

B. all the process waiting for I/O to be completed are found

C. all the processes waiting for the processor are found

D. none of the above


4) Which technique was introduced because a single job could keep both the CPU and the I/O devices busy?

A. Time sharing

B. Spooling

C. Preemptive scheduling

D. Multiprogramming


5) RMA works on static priorities while EDF algorithm works on ........

A. starvation

B. dynamic priorities

C. RR scheduling

D. FIFO scheduling


6) In the ........... method of data transfer, the participation of the processor is eliminated during data transfer.

A. buffering

B. caching

C. direct memory access

D. indirect memory access


7) Inter process communication can be done through ....

A. mails

B. messages

C. system calls

D. traps


8) RR scheduling is most suitable for ........

A. time shared OS

B. distributed OS

C. real time OS

D. an Ordinary OS


9) The aim of ......... transparency is to ensure that the movement of the object is handled automatically by the system in a user transparent manner.

A. location

B. name

B. migration

D. scaling


10) ........... is a memory management scheme that permits the physical address space of a process to be noncontiguous.

A. Paging

B. Segmentation

C. Virtual memory

D. main memory


11) Context switching is ........

A. part of spooling

B. part of polling

C. part of interrupt handling

D. part of paging


12) The normal functioning of an RPC may get disrupted due to ..........

A. call message gets lost

B. response message gets lost

C. callee node and caller node crashes and is restarted

D. All of the above


13) Mutual exclusion is referred as .......

A. if one process is in a critical region others are excluded

B. prevents deadlock

C. requires semaphore to implement

D. is found only in the windows NT operating system


14) IFO scheduling is ..........

A. preemptive

B. non-preemptive

C. deadline scheduling

D. RR scheduling


15) .......... deals with the process of deciding which process should be assigned to which processor.

A. Process migration

B. Processor allocation

C. threads

D. none of the above


16) Which scheduler controls the degree of multiprogramming?

A. Short term scheduler

B. Long term scheduler


C. Middle term scheduler

D. Pre term scheduler


17) Safe state is .......

A. deadlock state

B. non-deadlocked state

C. polling state

D. spooling state


18) ........ time is defined as the time period for which the execution of the process is stopped for transferring its information to the destination node.

A. turn around

B. latency

C. freezing

D. execution



19) The principle of locality of reference justifies the use of

A. virtual memory

B. interrupts

C. main memory

D. cache memory


20) For a multiple instances of resource type which algorithm is used .......

A. divide and conquer algorithm

B. banker's algorithm

C. partition algorithm

D. sorting algorithm


Answers:

1) C. Shortest job first scheduling algorithm
2) B. interrupt
3) A. only the process which has control of the processor is found
4) D. Multiprogramming
5) C. RR scheduling
6) C. direct memory access
7) B. messages
8) A. time shared OS
9) B. migration
10) A. Paging
11) C. part of interrupt handling
12) D. All of the above
13) A. if one process is in a critical region others are excluded
14) B. non-preemptive
15) B. Processor allocation
16) B. Long term scheduler
17) B. non-deadlocked state
18) C. freezing
19) D. cache memory
20) B. banker's algorithm


Related Posts:

More MCQs on Operating System

Interview Questions on Operating System Basis set-11

Interview Questions on Operating System Basis set-11

1) Which of the following is crucial time while accessing data on the disk?

A. Seek time

B. Rotational time

C. Transmission time

D. Waiting time


2) What is the primary job of the operating system is a computer?

A. Command resources

B. Manage resources

C. Provide utilities

D. Be user friendly


3) The ......... is a user process that initiates a remote procedure call.

A. client

B. server

C. network

D. operating system


4) Which of the following memory allocation scheme suffers from external fragmentation?

A. Segmentation

B. Pure demand paging

C. Swapping

D. Paging


5) Which of the following is used to removal of process from active contention of CPU and reintroduce them into memory later?

A. Interrupt

B. Swapping

C. Signal

D. Thread


6) The operating system manages .....

A. memory

B. processor

C. disk and I/O devices

D. all of the above


7) Information about a process is maintained in a .........

A. stack

B. translation look a side buffer

C. process control block

D. program control block


8) Paging .........

A. solves the memory fragmentation problem

B. allows modular programming

C. allows structured programming

D. avoids deadlock


9) Which is not the layer of the Operating system?

A. Kernel

B. Shell

C. Application program

D. Critical Section


10) Distributed OS works on the ............ principle.

A. file foundation

B. single system image

C. multi system image

D. networking image


11) The collection of processes on the disk that is waiting to be brought into memory for execution forms the .......

A. ready queue

B. device queue

C. input queue

D. priority queue


12) In ....... condition, processes are allowed to request for new resources without releasing the resources that they are currently holding.

A. Mutual exclusion

B. Hold and wait

C. No preemption

D. Circular wait


13) The time taken by the disk arm to locate the specific address of a sector for getting information is called .....

A. rotational delay

B. seek time

C. search time

D. response time


14) The principle of locality of reference justifies the use of ........

A. virtual memory

B. interrupts

C. main memory

D. cache memory


15) In .......... condition, a resource that has been allocated to a process becomes available for allocation to another process only after it has been voluntarily released by the process holding it.

A. Mutual exclusion

B. Hold and wait

C. No preemption

D. Circular wait


16) Identify the odd thing in the services of operating system ...

A. Accounting

B. Protection

C. Error detection and correction

D. Dead lock handling


17) Multiprocessing ...........

A. makes the operating system simpler

B. allows multiple processes to run simultaneously

C. is completely understood by all major computer vendors

D. allows the same computer to have the multiple processors


18) In ............. condition, two or more processes must form a circular chain in which each process is waiting for a resource that is held by the next member of the chain.

A. Mutual exclusion

B. Hold and wait

C. No preemption

D. Circular wait


19) Which of the following is not advantage of multiprogramming?

A. Increased throughput

B. Shorter response time

C. Decreased operating system overhead

D. Ability to assign priorities of jobs


20) Which is not a state of the process?

A. Blocked

B. Running

C. Ready

D. Privileged


Answers:

1) A. Seek time
2) B. Manage resources
3) A. client
4) A. Segmentation
5) B. Swapping
6) D. all of the above
7) C. process control block
8) A. solves the memory fragmentation problem
9) D. Critical Section
10) B. single system image
11) C. input queue
12) B. Hold and wait
13) B. seek time
14) D. cache memory
15) C. No preemption
16) C. Error detection and correction
17) D. allows the same computer to have the multiple processors
18) D. Circular wait
19) C. Decreased operating system overhead
20) D. Privileged


Related Posts:

More MCQs on Operating System

MCQ on Operating System Fundamental set-10

MCQ on Operating System Fundamental set-10

1) The process of storing extra or duplicate information used for rebuilding the lost information in event of disks failure is known as ...

A. stripping

B. redundancy

C. disk array

D. RAID


2) A thread that is to be canceled is often referred to as the ....

A. target thread

B. thread cancellation

C. asynchronous cancellation

D. defined cancellation


3) ........... ensures the every message sent to a group of receivers will be delivered to either all of them or none of them.

A. Ordered delivery

B. Atomicity

B. Survivability

D. Realiability


4) An arrangement of record in a sequence in which they arrive is known as a ...........

A. pile

B. file

C. disk

D. directory


5) ........... also known as monitor mode.

A. User mode

B. System mode

C. Unprivileged mode

D. Process mode


6) The technique, for sharing the time of a computer among several jobs, which switches jobs so rapidly such that each job appears to have the computer to itself, is called ........

A. time sharing

B. time out

C. time domain

D. multitasking


7) For batch and payroll applications which of the following file organization is better ........

A. random file

B. sequential file

C. indexed file

D. hashed file


8) Name the scheduler that selects among the processes that are ready to execute and allocates the CPU to one of them.

A. Long term scheduler

B. Medium term scheduler

C. Job scheduler

D. Short term scheduler


9) Failure during inter-process communication may be due to .....

A. loss of request transfer unit

B. single datagram messages

C. multi datagram messages

D. message passing


10) The process of direct mapping by using some faster algorithms is called as .........

A. hashing

B. searching

C. sorting

D. indexing


11) Name the system in which the processors do not share memory and each processor that its own local memory.

A. Tightly coupled system

B. Parallel processing system

C. Loosely coupled system

D. Batch processing system


12) Which technique was introduced because a single job could not keep both the CPU and I/O devices busy?

A. Time-sharing

B. Spooling

C. preemptive scheduling

D. Multiprogramming


13) Those directories in which the root directory has all system file and no other sub-directory is known as ...

A. flat directory

B. single directory

C. hierarchical directory

D. indexed directory


14) Which is responsible for maintaining all the important abstractions of the operating system?

A. Kernel

B. System libraries

C. System utilities

D. Daemons


15) A four message reliable IPC protocol for client server communication works as ........

A. request, reply, acknowledgment

B. reply, acknowledgment, request, acknowledgment

C. request, acknowledgment, reply, acknowledgment

D. request, request, reply, acknowledgment


16) A path name that starts at root directory is ..........

A. absolute

B. relative

C. hybrid

D. hierarchical


17) Where does the problem of fragmentation occur?

A. Static storage allocation

B. Static allocation storage

C. Stack allocation with dynamic binding

D. Heap allocation


18) Idempotency basically means .........

A. reliability

B. repeatability

C. Survivability

D. flexibility


19) All path names are specified relative to the working directory ........

A. absolute path name

B. relative path name

C. hybrid path name

D. hierarchical path name


20) The time taken by the disk arm to locate the specific address of a sector for getting information is called ........

A. rotational latency

B. seek time

C. search time

D. response time

Answers:

1) B. redundancy
2) A. target thread
3) B. Atomicity
4) A. pile
5) B. System mode
6) A. time sharing
7) B. sequential file
8) D. Short term scheduler
9) B. single datagram messages
10) A. hashing
11) C. Loosely coupled system
12) D. Multiprogramming
13) A. flat directory
14) A. Kernel
15) C. request, acknowledgment, reply, acknowledgment
16) A. absolute
17) D. Heap allocation
18) B. repeatability
19) B. relative path name
20) D. response time


Related Posts:

More MCQs on Operating System

Solved MCQ on Operating System Basis set-9

Solved MCQ on Operating System Basis set-9

1) The process is ........

A. an instance of a program in execution

B. a program only

C. a processor state

D. the kernel state


2) The mechanism that brings a page into memory only when it is needed is called .....

A. segmentation

B. fragmentation

C. demand paging

D. page replacement


3) The two paradigms if IPC are ............ and .......

A. call, reply

B. shared memory, message passing

C. send, receive

D. call by value, call by reference


4) A program is passive while a process is ..........

A. inactive

B. spontaneous

C. active

D. impulse


5) FIFO scheduling is ..........

A. preemptive scheduling

B. non preemptive scheduling

C. deadline scheduling

D. fair share scheduling


6) ......... ensures that once transaction completes successively, the results of the operations become permanent.

A. serializability

B. synchronizability

C. atomicity

D. durability


7) A process is created and is initially put in the ........

A. ready queue

B. device queue

C. i/o queue

D. waiting queue


8) Which directory implementation is used in most of the Operating System?

A. single level directory structure

B. two level directory structure

C. tree directory structure

D. acyclic directory structure


9) Isolation property is also know as .........

A. Performance

B. Serializability

C. Durability

D. Atomicity


10) A thread is a ..........

A. task

B. process

C. program

D. light weight process


11) The interval from the fine submission of a process to the time of completion is the ......

A. waiting time

B. blocked time

C. turnaround time

D. response time


12) The term "Operating System" means ..........

A. a set of programs which controls computer working

B. the way a computer operator works

C. conversion of high-level language in to machine level language

D. the way a floppy disk drive operates


13) Generally we have user level threads and ...........

A. Programmer level thread

B. kernel level thread

C. program level thread

D. process level thread


14) To ensure that the ......... condition never occurs in the system, we must guarantee that, whenever a process requests a resource, it does not have any other resource.

A. mutual exclusion

B. no-preemption

C. circular waits

D. hold and wait


15) Resource locking ........

A. allows multiple tasks to simultaneously use resource

B. forces only on task to use any resource at any time

C. can easily cause a dead lock condition

D. in not used for disk drives


16) A program responsible for assigning the CPU to the process that has been selected by the short term scheduler is known as .........

A. scheduler

B. dispatcher

C. debugger

D. compiler


17) The .......... instruct Kernel to do various operations of the calling program and exchange data between the Kernel at the program.

A. shell

B. editors

C. system calls

D. commands


18) Which of the following buffering strategies are used in interprocess communication?

A. null pointer

B. single message buffer

C. multiple message buffer

D. all of the above


19) The process of splitting of data into equal size partitions over multiple disks is known as .....

A. data stripping

B. array of disks

C. RAID

D. SCAN


20) Pipes allow transfer of data between processor in a .......... manner.

A. last in first out

B. shortest job first

C. multilevel queue

D. first in first out

Answers:

1) A. an instance of a program in execution
2) C. demand paging
3) B. shared memory, message passing
4) C. active
5) B. non preemptive scheduling
6) D. durability
7) A. ready queue
8) C. tree directory structure
9) B. Serializability
10) D. light weight process
11) C. turnaround time
12) A. a set of programs which controls computer working
13) B. kernel level thread
14) D. hold and wait
15) B. forces only on task to use any resource at any time
16) B. dispatcher
17) C. system calls
18) D. all of the above
19) A. data stripping
20) D. first in first out


Related Posts:

More MCQs on Operating System

Solved Objective Questions on Operating System set-8

Solved Objective Questions on Operating System set-8


1. A small program which loads OS into the memory is called as ...........
Objective Questions on Operating System
System management components (Photo credit: Wikipedia)

A) ROM

B) bootstrap loader

C) BIOS

D) RAM



2. Virtual memory is ..............

A) Simple to implement

B) Used by all major commercial OS

C) Less efficient memory utilization

D) Less effective



3. A special purpose register that is set to the highest address occupied by the OS code is ...........

A) fence register

B) general purpose register

C) protection register

D) control register



4. As OS program module that selects the next job to be admitted for execution is called as .....

A) scheduler

B) compiler

C) throughput

D) dispatcher





5. Multiprogramming systems .................

A) are easier to develop than single programming systems.

B) execute each job faster

C) execute more jobs in the same time.

D) are used only on large main frame computers



6. SSTF stands for ........................

A) Small seek Time First

B) Simple Seek Time First

C) Shortest Seek Time First

D) Synchronous Seek Time First



7. The program is known as .................. which interacts with the inner part of called kernel.

A) compiler

B) device driver

C) protocol

D) shell



8. Semaphore can be used for solving ............

A) wait & signal

B) deadlock

C) synchronization

D) priority



9. The number of processes completed per unit time is known as ............

A) output

B) throughput

C) efficiency

D) capacity



10. On what principle does Distributed OS work?

A) File foundation

B) Single system image

C) Multi system image

D) Networking image


Answers:



1. A small program which loads OS into the memory is called as ...........

B) bootstrap loader

2. Virtual memory is ..............

B) Used by all major commercial OS

3. A special purpose register that is set to the highest address occupied by the OS code is ...........

A) fence register

4. As OS program module that selects the next job to be admitted for execution is called as .....

A) scheduler

5. Multiprogramming systems .................

C) execute more jobs in the same time.

6. SSTF stands for ........................

C) Shortest Seek Time First

7. The program is known as .................. which interacts with the inner part of called kernel.

D) shell

8. Semaphore can be used for solving ............

C) synchronization

9. The number of processes completed per unit time is known as ............

B) throughput

10. On what principle does Distributed OS work?

B) Single system image



Related Posts:


Solved MCQ Questions on Operating System set-7

Solved MCQ Questions on Operating System set-7


1. Operating System means ........................

A) a set of programs which controls computer working.

MCQ Questions on Operating System
Operating System (Photo credit: Wikipedia)
B) a way of computer drives works

C) a set of devices and programs

D) All of the above



2. The basic types of OS are ...................

A) batch and time sharing

B) sequential and real time

C) direct and interactive

D) batch and interactive



3. The simplest way of deadlock is to ...

A) preempt a resource

B) rollback

C) kill one of the processes

D) lock one of the processes



4. Throughput of a system is

A) Number of programs processed by it per unit time

B) Number of times the program is invoked by the system

C) Number of requests made to a program by the system

D) None of the above



5. Which of the following is not OS layer?

A) Kernel

B) Shell

C) Application Programs

D) Critical Section



6. Round robin scheduling is essentially the preemptive version of ...........

A) first in first out

B) shortest job first

C) shortest remaining

D) longest time first



7. The process that are residing in the main memory and are waiting to execute are kept on a list called the ............

A) job queue

B) ready queue

C) wait queue

D) device queue



8. Which of the following describes the ability of an OS to support multiple, concurrent paths of execution within a single process?

A) Multithreading

B) Multiprocessing

C) Multitasking

D) Multiprogramming



9. Virtual memory is

A) an extremely large main memory

B) an extremely large secondary memory

C) an illusion of extremely large main memory

D) a type of memory used in super computers



10. A thread is a .................... precess.

A) heavy weight

B) multiprocess

C) inter thread

D) light weight






Answers:


1. Operating System means ........................

A) a set of programs which controls computer working.

2. The basic types of OS are ...................

D) batch and interactive

3. The simplest way of deadlock is to ...

C) kill one of the processes

4. Throughput of a system is

A) Number of programs processed by it per unit time

5. Which of the following is not OS layer?

D) Critical Section

6. Round robin scheduling is essentially the preemptive version of ...........

A) first in first out

7. The process that are residing in the main memory and are waiting to execute are kept on a list called the ............

B) ready queue

8. Which of the following describes the ability of an OS to support multiple, concurrent paths of execution within a single process?

A) Multithreading

9. Virtual memory is

C) an illusion of extremely large main memory

10. A thread is a .................... precess.

D) light weight



Related Posts: