السبت، 31 يناير 2015

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

Objective Questions on Core Operating System set-12

Posted at  9:56 م - by mego almasry 0

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

الأربعاء، 28 يناير 2015

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

Interview Questions on Operating System Basis set-11

Posted at  9:13 م - by mego almasry 0

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

الثلاثاء، 27 يناير 2015

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

MCQ on Operating System Fundamental set-10

Posted at  8:10 م - by mego almasry 0

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

الاثنين، 26 يناير 2015

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 MCQ on Operating System Basis set-9

Posted at  7:47 م - by mego almasry 0

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

الأحد، 25 يناير 2015


1) Java programs are ........ independent.

A. platform

B. procedural

C. high level

D. Secure


2) Methods having same name, same type signature are called ....... methods.

A. overriding

B. overloading

C. overwriting

D. over reading


3) When several tasks are handled by a single CPU, it is called .........

A. multitasking

B. task

C. simultaneous

D. taker


4) A Java program must contain a ....... method.

A. user defined

B. main

C. local

D. return


5) Package statement helps to create many classes to have ........ name.

A. differ

B. vanity

C. same

D. punch


6) Threads can be created by extending .......... class.

A. new

B. operator

C. thread

D. super thread


7) ........... operator is used to create an array.

A. new

B. public

C. key

D. main


8) A method without the body is called ......... method.

A. view

B. class

C. abstract

D. user defined


9) Threads can be created by implementing ......... interface.

A. new

B. create

C. main

D. runnable


10) An instance of a class is ........

A. method

B. initialize

C. declared

D. object

11) The wrapper classes are defined in ........ packages.

A. java.Lan

B. java.Lang

C. java.Nill

D. java.Math


12) What is an example of polymorphism?

A. inner class

B. anonymous classes

C. method overloading

D. method overriding


13) The variable in class is called ........ variable

A. local

B. minimum

C. instance

D. define


14) User defined exception can be created using ..........class.

A. catch

B. try

C. throwable

D. get


15) To compare the contents of two objects ........ method is used.

A. equals

B. non equals

C. multiple

D. delay


16) A special type of method that is used to initialize an object is called..........

A. constructor

B. destructor

C. modification

D. editor


17) An abnormal condition occurring in a Java program is called ......

A. error

B. viewer

C. abstract

D. exception


18) Graphics object can only be drawn on ........

A. view

B. windows

C. applet

D. zoom


19) String constants are said to be .......... of string class.

A. objects

B. char

C. data

D. variable


20) Exception that is identified during compile time is called ......... exception.

A. user defined

B. checked

C. undefined

D. defined

Answers:

1) A. platform
2) A. overriding
3) A. multitasking
4) B. main
5) C. same
6) C. thread
7) A. new
8) C. abstract
9) D. runnable
10) D. object
11) B. java.Lang
12) C. method overloading
13) C. instance
14) C. throwable
15) A. equals
16) A. constructor
17) D. exception
18) B. windows
19) A. objects
20) B. checked


Related Posts:

MCQ Questions on Fundamental of Java set-16

Posted at  3:29 ص - by mego almasry 0


1) Java programs are ........ independent.

A. platform

B. procedural

C. high level

D. Secure


2) Methods having same name, same type signature are called ....... methods.

A. overriding

B. overloading

C. overwriting

D. over reading


3) When several tasks are handled by a single CPU, it is called .........

A. multitasking

B. task

C. simultaneous

D. taker


4) A Java program must contain a ....... method.

A. user defined

B. main

C. local

D. return


5) Package statement helps to create many classes to have ........ name.

A. differ

B. vanity

C. same

D. punch


6) Threads can be created by extending .......... class.

A. new

B. operator

C. thread

D. super thread


7) ........... operator is used to create an array.

A. new

B. public

C. key

D. main


8) A method without the body is called ......... method.

A. view

B. class

C. abstract

D. user defined


9) Threads can be created by implementing ......... interface.

A. new

B. create

C. main

D. runnable


10) An instance of a class is ........

A. method

B. initialize

C. declared

D. object

11) The wrapper classes are defined in ........ packages.

A. java.Lan

B. java.Lang

C. java.Nill

D. java.Math


12) What is an example of polymorphism?

A. inner class

B. anonymous classes

C. method overloading

D. method overriding


13) The variable in class is called ........ variable

A. local

B. minimum

C. instance

D. define


14) User defined exception can be created using ..........class.

A. catch

B. try

C. throwable

D. get


15) To compare the contents of two objects ........ method is used.

A. equals

B. non equals

C. multiple

D. delay


16) A special type of method that is used to initialize an object is called..........

A. constructor

B. destructor

C. modification

D. editor


17) An abnormal condition occurring in a Java program is called ......

A. error

B. viewer

C. abstract

D. exception


18) Graphics object can only be drawn on ........

A. view

B. windows

C. applet

D. zoom


19) String constants are said to be .......... of string class.

A. objects

B. char

C. data

D. variable


20) Exception that is identified during compile time is called ......... exception.

A. user defined

B. checked

C. undefined

D. defined

Answers:

1) A. platform
2) A. overriding
3) A. multitasking
4) B. main
5) C. same
6) C. thread
7) A. new
8) C. abstract
9) D. runnable
10) D. object
11) B. java.Lang
12) C. method overloading
13) C. instance
14) C. throwable
15) A. equals
16) A. constructor
17) D. exception
18) B. windows
19) A. objects
20) B. checked


Related Posts:

السبت، 24 يناير 2015


1) The CODE value in an ......... tag must name a class file that is in the same directory as the calling HTML page.

A. (applet)

B. >applet<

C. <applet>

D. <applet tag>


2) A class can be converted to a thread by implementing the interface ..........

A. Thread

B. Runnable

C. Start

D. Yield


3) Which of the following classes are not available in the java.lang package?

A. Stack

B. Object

C. Math

D. String


4) State True or False for the following statements.

i) Reader class has a method that can read and return floats and doubles

ii) It is possible to use the File class to list the contents of the current of the working directory

A. i-True, ii-False

B. i-False, ii-True

C. i-True, ii-True

D. i-False, ii-False


5) The setBackground() method is part of the following class in JAVA.awt package.

A. Component

B. Graphics

C. Applet

D. Container


6) Which method is used to set the text of a Label object?

A. setText()

B. setLabel()

C. setTextLabel()

D. setLabelText()


7) Which of the following statement is/are True?

i) A Java monitor must either extend Thread class or implement Runnable interface

ii) The CheckboxGroup class is a subclass of the component class

A. i- only

B. ii- only

C. Both i and ii

D. None of the above


8) When we invoke repaint() for JAVA.awt.Component object, the AWT invokes the method .......

A. update()

B. draw()

C. show()

D. paint()


9) Which of the following methods are invoked by the AWT to support paint and repaint operations?

A. paint()

B. repaint()

C. draw()

D. redraw()


10) A thread can make a second thread ineligible for execution by calling the ......... method on the second thread.

A. second()

B. suspend()

C. append()

D. yield()

11) When we implement the Runnable interface, we must define the method

A. run()

B. start()

C. init()

D. main()


12) Which of the following are passed as an argument to the paint() method?

A. A Canvas object

B. A Graphics object

C. An image object

D. A paint object


13) State whether the following statements are True or False.

i) A class may be both abstract and final

ii) A final class may not have any abstract methods

iii) Frames and applets cannot be used together in the same program.

A. i-True, ii-True, iii-False

B. i-True, ii-False, iii-True

C. i-False, ii-True, iii-False

D. i-False, ii-True, iii-True


14) The methods wait() and notify() are defined in?

A. java.lang.String

B. java.lang.Object

C. java.lang.Runnable

D. java.lang.Thread


15) Which of the following components generate action events?

A. Buttons

B. Labels

C. Check boxes

D. Windows


16) Which javadoc tag is used to denote a comment for a method parameter?

A. @method

B. @parameter

C. @arjument

D. @param


17) Which of the following are not the wrapper classes?

A. Byte

B. Vector

C. Integer

D. Short


18) Which of the following classes is used to perform basic console I/O?

A. system

B. security Manager

C. math

D. runtime


19) Which of the following command lines options generates documentation for all classes and methods?

A. -protected

B. -public

C. -private

D. -verbose


20) What is java_g used for?

A. Using the jdb tool

B. Executing a class with optimization turned off

C. To provide information about deprecated methods

D. None of the above

Answers:

1) C. <applet>
2) B. Runnable
3) A. Stack
4) A. i-True, ii-False
5) A. Component
6) A. setText()
7) D. None of the above
8) A. update()
9) A. paint()
10) C. append()
11) A. run()
12) B. A Graphics object
13) C. i-False, ii-True, iii-False
14) B. java.lang.Object
15) A. Buttons
16) D. @param
17) B. Vector
18) A. system
19) C. -private
20) B. Executing a class with optimization turned off


Related Posts:

Interview Questions on Core Java Language set-3

Posted at  10:01 م - by mego almasry 0


1) The CODE value in an ......... tag must name a class file that is in the same directory as the calling HTML page.

A. (applet)

B. >applet<

C. <applet>

D. <applet tag>


2) A class can be converted to a thread by implementing the interface ..........

A. Thread

B. Runnable

C. Start

D. Yield


3) Which of the following classes are not available in the java.lang package?

A. Stack

B. Object

C. Math

D. String


4) State True or False for the following statements.

i) Reader class has a method that can read and return floats and doubles

ii) It is possible to use the File class to list the contents of the current of the working directory

A. i-True, ii-False

B. i-False, ii-True

C. i-True, ii-True

D. i-False, ii-False


5) The setBackground() method is part of the following class in JAVA.awt package.

A. Component

B. Graphics

C. Applet

D. Container


6) Which method is used to set the text of a Label object?

A. setText()

B. setLabel()

C. setTextLabel()

D. setLabelText()


7) Which of the following statement is/are True?

i) A Java monitor must either extend Thread class or implement Runnable interface

ii) The CheckboxGroup class is a subclass of the component class

A. i- only

B. ii- only

C. Both i and ii

D. None of the above


8) When we invoke repaint() for JAVA.awt.Component object, the AWT invokes the method .......

A. update()

B. draw()

C. show()

D. paint()


9) Which of the following methods are invoked by the AWT to support paint and repaint operations?

A. paint()

B. repaint()

C. draw()

D. redraw()


10) A thread can make a second thread ineligible for execution by calling the ......... method on the second thread.

A. second()

B. suspend()

C. append()

D. yield()

11) When we implement the Runnable interface, we must define the method

A. run()

B. start()

C. init()

D. main()


12) Which of the following are passed as an argument to the paint() method?

A. A Canvas object

B. A Graphics object

C. An image object

D. A paint object


13) State whether the following statements are True or False.

i) A class may be both abstract and final

ii) A final class may not have any abstract methods

iii) Frames and applets cannot be used together in the same program.

A. i-True, ii-True, iii-False

B. i-True, ii-False, iii-True

C. i-False, ii-True, iii-False

D. i-False, ii-True, iii-True


14) The methods wait() and notify() are defined in?

A. java.lang.String

B. java.lang.Object

C. java.lang.Runnable

D. java.lang.Thread


15) Which of the following components generate action events?

A. Buttons

B. Labels

C. Check boxes

D. Windows


16) Which javadoc tag is used to denote a comment for a method parameter?

A. @method

B. @parameter

C. @arjument

D. @param


17) Which of the following are not the wrapper classes?

A. Byte

B. Vector

C. Integer

D. Short


18) Which of the following classes is used to perform basic console I/O?

A. system

B. security Manager

C. math

D. runtime


19) Which of the following command lines options generates documentation for all classes and methods?

A. -protected

B. -public

C. -private

D. -verbose


20) What is java_g used for?

A. Using the jdb tool

B. Executing a class with optimization turned off

C. To provide information about deprecated methods

D. None of the above

Answers:

1) C. <applet>
2) B. Runnable
3) A. Stack
4) A. i-True, ii-False
5) A. Component
6) A. setText()
7) D. None of the above
8) A. update()
9) A. paint()
10) C. append()
11) A. run()
12) B. A Graphics object
13) C. i-False, ii-True, iii-False
14) B. java.lang.Object
15) A. Buttons
16) D. @param
17) B. Vector
18) A. system
19) C. -private
20) B. Executing a class with optimization turned off


Related Posts:

الجمعة، 23 يناير 2015


1) The methods wait() and notify() are defined in

A. java.lang.String

B. java.lang.Runnable

C. java.lang.Object

D. java.lang.Thread


2) The data or variables, defined within a class are called ..... variables.

A. object

B. class

C. instance

D. schema


3) When we implement the Runnable interface, we must define the method.

A. start()

B. init()

C. run()

D. resume()


4) ........ class must give a concrete method.

A. abstract

B. constructor

C. least

D. program


5) Which exception is thrown by the read() method of input stream class?

A. Exception

B. FileNotFoundException

C. ReadException

D. IOException


6) When a method calls itself, it is called ......

A. recursion

B. distance

C. display

D. problem


7) Which of the following statements are true?

i) An abstract class may not have any final methods.

ii) A final class may not have any abstract methods

iii) An inner class may be declared with any accessibility keyword

iv) Transient variable must be static

A. i and ii

B. ii and iii

C. iii and iv

D. All i, ii, iii and iv


8) Which of the following statements is/are false?

A. A java monitor must either extend thread or implement runnable

B. The sleep() method should be enclosed in try .... catch block.

C. A thread can be temporarily suspended from running by using the wait() method.

D. A suspended thread using suspend() method can be received using the resume() method.


9) What does J2SE mean?

A. Java 2 Platform Standard Edition

B. Java 2 Internet Standard Edition

C. Java 2 System Edition

D. Java 2 Platform Independent Standard Edition


10) An ........ is a special kind of Java program that is designed to be transmitted over the Internet.

A. viewlet

B. applet

C. servlet

D. object

11) Which are the valid ways to create DataInptStream streams?

A. new DataInputStream();

B. new DataInputStream("in.dat', "r");

C. new DataInputStream(new File("in.dat"));

D. new DataInputStream(new FileInputStream("in.dat");


12) finalize() is only called just prior to .....

A. initialization

B. runtime

C. garbage collection

D. destruction


13) When we invoke repaint() for a component, the AWT invokes the method

A. draw()

B. show()

C. update()

D. paint()


14) What is the use of valueOf() method?

A. It converts data from its internal format into a human-readable form.

B. It converts integer value to string

C. It converts string to int value

D. It converts string to float value


15) What is the default thread at the time of starting the program?

A. Main thread

B. Thread Group

C. Child Thread

D. Thread Pool


16) What does the following line of code do?

       TextField text= new TextField(10);

A. Creates text object that can hold 10 rows of text

B. Creates text object that can hold 10 columns of text

C. Creates the object text and initialize it with the value 10

D. The code is illegal


17) .......... is an applet tag.

A. (applet)

B. >applet<

C. <applet>

D. <applet tag>


18) In Java thread to thread communication is called ......

A. Passing

B. sending

C. Messaging

D. Calling


19) AWT stands for

A. abstract window toolkit

B. abstract window toolbar

C. access window toolbar

D. access window toolbar


20) The setBackground() method is part of the class

A. Graphics

B. Applet

C. Component

D. Container

Answers:

1) C. java.lang.Object
2) C. instance
3) D. resume()
4) A. abstract
5) D. IOException
6) A. recursion
7) B. ii and iii
8) A. A java monitor must either extend thread or implement runnable
9) A. Java 2 Plateform Standard Edition
10) B. applet
11) D. new DataInputStream(new FileInputStream("in.dat");
12) C. garbage collection
13) C. update()
14) D. It converts string to float value
15) A. Main thread
16) B. Creates text object that can hold 10 columns of text
17) C. <applet>
18) C. Messaging
19) A. abstract window toolkit
20) C. Component

Related Posts:

Objective Questions on Core Java Language set-2

Posted at  1:21 ص - by mego almasry 0


1) The methods wait() and notify() are defined in

A. java.lang.String

B. java.lang.Runnable

C. java.lang.Object

D. java.lang.Thread


2) The data or variables, defined within a class are called ..... variables.

A. object

B. class

C. instance

D. schema


3) When we implement the Runnable interface, we must define the method.

A. start()

B. init()

C. run()

D. resume()


4) ........ class must give a concrete method.

A. abstract

B. constructor

C. least

D. program


5) Which exception is thrown by the read() method of input stream class?

A. Exception

B. FileNotFoundException

C. ReadException

D. IOException


6) When a method calls itself, it is called ......

A. recursion

B. distance

C. display

D. problem


7) Which of the following statements are true?

i) An abstract class may not have any final methods.

ii) A final class may not have any abstract methods

iii) An inner class may be declared with any accessibility keyword

iv) Transient variable must be static

A. i and ii

B. ii and iii

C. iii and iv

D. All i, ii, iii and iv


8) Which of the following statements is/are false?

A. A java monitor must either extend thread or implement runnable

B. The sleep() method should be enclosed in try .... catch block.

C. A thread can be temporarily suspended from running by using the wait() method.

D. A suspended thread using suspend() method can be received using the resume() method.


9) What does J2SE mean?

A. Java 2 Platform Standard Edition

B. Java 2 Internet Standard Edition

C. Java 2 System Edition

D. Java 2 Platform Independent Standard Edition


10) An ........ is a special kind of Java program that is designed to be transmitted over the Internet.

A. viewlet

B. applet

C. servlet

D. object

11) Which are the valid ways to create DataInptStream streams?

A. new DataInputStream();

B. new DataInputStream("in.dat', "r");

C. new DataInputStream(new File("in.dat"));

D. new DataInputStream(new FileInputStream("in.dat");


12) finalize() is only called just prior to .....

A. initialization

B. runtime

C. garbage collection

D. destruction


13) When we invoke repaint() for a component, the AWT invokes the method

A. draw()

B. show()

C. update()

D. paint()


14) What is the use of valueOf() method?

A. It converts data from its internal format into a human-readable form.

B. It converts integer value to string

C. It converts string to int value

D. It converts string to float value


15) What is the default thread at the time of starting the program?

A. Main thread

B. Thread Group

C. Child Thread

D. Thread Pool


16) What does the following line of code do?

       TextField text= new TextField(10);

A. Creates text object that can hold 10 rows of text

B. Creates text object that can hold 10 columns of text

C. Creates the object text and initialize it with the value 10

D. The code is illegal


17) .......... is an applet tag.

A. (applet)

B. >applet<

C. <applet>

D. <applet tag>


18) In Java thread to thread communication is called ......

A. Passing

B. sending

C. Messaging

D. Calling


19) AWT stands for

A. abstract window toolkit

B. abstract window toolbar

C. access window toolbar

D. access window toolbar


20) The setBackground() method is part of the class

A. Graphics

B. Applet

C. Component

D. Container

Answers:

1) C. java.lang.Object
2) C. instance
3) D. resume()
4) A. abstract
5) D. IOException
6) A. recursion
7) B. ii and iii
8) A. A java monitor must either extend thread or implement runnable
9) A. Java 2 Plateform Standard Edition
10) B. applet
11) D. new DataInputStream(new FileInputStream("in.dat");
12) C. garbage collection
13) C. update()
14) D. It converts string to float value
15) A. Main thread
16) B. Creates text object that can hold 10 columns of text
17) C. <applet>
18) C. Messaging
19) A. abstract window toolkit
20) C. Component

Related Posts:

Copyright © 2013 hello1. by Bloggertheme9 Powered by Blogger.
WP Theme-junkie converted by Blogger template