0% found this document useful (0 votes)
34 views

Operating System File 2

operating system

Uploaded by

HASSAAN MOBEEN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Operating System File 2

operating system

Uploaded by

HASSAAN MOBEEN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

operating system is______?

A. link that is to interface the hardware and application programs

B. Both A & B

C. collection of programs that manages hardware resources

D. all of the mentioned

E. system service provider to the application programs

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]

The interface to access the services of operating system is provided by_______

A. Assembly instructions

B. API

C. Library

D. System calls

E. Both A & C

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]

Which one is not true from the following?

A. kernel is made of various modules which can not be loaded in running operating system

B. During booting, kernel is the first part of the operating system to load into memory

C. kernel is the program that constitutes the central core of the operating system

D. During the entire computer session kernel remains in the memory

E. Both A & B

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]A[/su_spoiler]

By the operating system which one error will be handle from the following?
A. connection failure in the network

B. power failure

C. all of the mentioned

D. lack of paper in printer

E. Both A & B

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]C[/su_spoiler]

The command interpreter in The main function is ______

A. to handle the files in operating system

B. to get and execute the next user-specified command

C. to provide the interface between the API and application program

D. none of the mentioned

E. both A & B

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]C[/su_spoiler]

The resource management can be done by operating system via_______

A. both time and space division multiplexing

B. space division multiplexing

C. time division multiplexing

D. none of the mentioned

E. Both A & B

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]A[/su_spoiler]

In most operating system if a process fails it write the error information to a ?

A. new file

B. another running process

C. log file

B. none of the mentioned


E. Both C & A

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]C[/su_spoiler]

In both user processes and in the kernel which facility dynamically adds probes to a running system?

A. DMap

B. DLocate

C. Both A & B

D. DTrace

E. DAdd

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]

Which one is not a real time operating system from the following?

A. Palm OS

B. Windows CE

C. VxWorks

D. RTLinux

E. Both A & C

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]A[/su_spoiler]

10.________ OS X has?

A. monolithic kernel with modules

B. microkernel

C. hybrid kernel

D. monolithic kernel

E. Both B & D

F. None of these
[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]C[/su_spoiler]

The systems that allows only one process execution at a time is_______

A. unitasking systems

B. uniprogramming systems

C. uniprocessing systems

D. Both A & C

E. none of the mentioned

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]C[/su_spoiler]

Each process has its own______ In operating system

A. open files

B. pending alarms, signals and signal handlers

C. Both A & B

D. address space and global variables

E. all of the mentioned

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]E[/su_spoiler]

The new process In Unix created by which system call?

A. create

B. new

C. fork

D. none of the mentioned

E. Both B & C

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]C[/su_spoiler]

Termination of a process can be due to?

A. fatal error

B. killed by another process


C. normal exit

D. Both B & C

E. all of the mentioned above

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]E[/su_spoiler]

The ready state of a process is _________?

A. when process is using the CPU

B. when process is scheduled to run after some execution

C. when process is unable to run until some task has been completed

D. Both A & C

E. none of the mentioned

Interprocess communication is____?

A. communication between two process

B. communication between two threads of same process

C. communication within the process

D. none of the mentioned

E. Both A & C

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]A[/su_spoiler]

Processes is deadlock if _______

A. all processes are trying to kill each other

B. each process is terminated

C. each process is blocked and will remain so forever

D. Both A & B

E. none of the mentioned

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]C[/su_spoiler]


Which of the following a process stack does not contain

A. Local variables

B. Function parameters

C.Both A & B

D. Return addresses

E. PID of child process

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]E[/su_spoiler]

Of a terminated child which system call returns the process identifier?

A. exit

B. Both B & D

C. fork

D. wait

E. get

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]

______ will provide the address of the next instruction that is to be executed by the current process

A. Program counter

B. CPU registers

C. Both A & B

D. Process stack

E. Pipe

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]A[/su_spoiler]

______ of the following a Process Control Block(PCB) does not contain:


A. Stack

B. Code

C. Both B & D

D. Bootstrap program

E. Data

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]

15. The number of processes completed per unit time are called _______

A. Capacity

B. Output

c. Both A & B

D. Throughput

e. Efficiency

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]

Answer: d

The state of a process is¬¬¬_______:

A. the current activity of the process

B. the final activity of the process

C. the activity just executed by the process

D. Both A & D

E. the activity to next be executed by the process

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]

Which is not the state of a process of the following?


A. New

B.Waiting

C. Both A & B

D. Old

E. Running

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]

______ is the Process Control Block :

A. Data Structure

B. Process type variable

C. Both A & B

D. A secondary storage section

E. A Block in memory

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]A[/su_spoiler]

In the current processes the entry of all the PCBs are in______

A. Program Counter

B. Process Register

C. Both A & D

D. Process Unit

E. Process Table

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]E[/su_spoiler]

_____is the degree of multiprogramming ?


A. the number of processes in memory

B. the number of processes in the I/O queue

C. the number of processes executed per unit time

D. Both A & D

E. the number of processes in the ready queue

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]B[/su_spoiler]

Allows _______ process to perform a single thread of control

A. multiple tasks at a time

B. only two tasks at a time

C. Both A & B

D. only one task at a time

E. all of the mentioned

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]

____ is the objective of multiprogramming ?

A. Have multiple programs waiting in a queue ready to run

B. Have some process running at all times

C. Both A & D

D. To minimize CPU utilization

E. None of the mentioned

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]B[/su_spoiler]

¬¬¬¬_______ do not belong to queues for processes of the following?

A. Job Queue

B. Device Queue

C. Both D & E
D. PCB queue

E. Ready Queue

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]

¬¬_______ I/O request when the process issues?

A. It is placed in the Job queue

B. It is placed in a waiting queue

C. Both A & D

D. It is placed in an I/O queue

E. It is placed in the ready queue

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]

A process terminates when_____:

A. It is removed from all, but the job queue

B. Its process control block is never de-allocated

C. Both B & E

D. Its process control block is de-allocated

E. It is removed from all queues

F. None of these

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]E[/su_spoiler]

Long-term scheduler is____ ?

A. It selects which process has to be executed next and allocates CPU

B. It selects which process has to be brought into the ready queue

C. Both A & B

D. It selects which process to remove from memory by swapping

E. None of the mentioned


[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]B[/su_spoiler]

Medium-term scheduler is ______ ?

A. It selects which process has to be executed next and allocates CPU

B. It selects which process has to be brought into the ready queue

C. Both B & D

D. It selects which process to remove from memory by swapping

E. None of the mentioned

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]

short-term scheduler is_____ ?

A. It selects which process to remove from memory by swapping

B. It selects which process has to be brought into the ready queue

C. Both A & D

D. It selects which process has to be executed next and allocates CPU

E. None of the mentioned

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]

In short term and the long term scheduler the primary distinction between is_____ :

A. The frequency of their execution

B. The length of their queues

C. The type of processes they schedule

D. Both A & B

F. None of the mentioned

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]A[/su_spoiler]

_______ is initiated by the user process itself in the only state transition:

A. wakeup

B. dispatch
C. block

D. Both A & C

E. none of the mentioned

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]C[/su_spoiler]

In multiprogramming environment ______ :

A. a single user can execute many programs at the same time

B. the processor executes more than one process at a time

C. Both B & D

D. the programs are developed by more than one person

E. more than one process resides in the memory

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]E[/su_spoiler]

In the PCB the context of a process does not contain :

A. memory-management information

B. the value of the CPU registers

C. the process state

D. Both B & D

E. context switch time

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]E[/su_spoiler]

______ does not interrupt a running process from the following ?

A. Timer

B. A device

C. Both A & E

D. Scheduler process

E. Power failure

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]D[/su_spoiler]


in the system _______ process can be affected by other processes executing?

A. child process

B. cooperating process

C. Both A & B

D. parent process

E. init process

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]B[/su_spoiler]

Which one is a synchronization tool of the following?

A. pipe

B. thread

C. socket

D. Both B & D

E. semaphore

[su_spoiler title="Answer - Click Here:" class="padding: -10px;"]E[/su_spoiler]

You might also like