You are on page 1of 18

PROCESSES:

1) In the three state process model, the three states are

a) running

b) ready

c) blocked

d) waiting

1) a and b only
2) b only

3) a and d only

4) a, b, c only

Answer: 4

Exp: diff states of process

Level:1

2) Which of the following are the states in a process state diagram

a) New

b) Running

c) Waiting

d) Ready

e) Terminated

1) all except a

2) b,c,d only

3) all the above

4) a,b,c,d
Answer: 3

Exp: states of a process

Level:1

3) Which of the given options is a part of Process Control Block?

1) Process state

2) Program counter

3) CPU registers

4) Stack pointer

Answer: 1,2,3,4

Exp: refer PCB properties

Level: 3

4) PCB in OS stands for ________

Answer: Process control block

Exp: acronym

Level:1

5) Which of the given options is a part of PCB?

1) Process state

2) Program counter

3) CPU scheduling information

4) only 1,2

5) 1,2,3

Answer: 5
Exp: refer PCB properties

Level:1

6) Which of the given options is a part of PCB

1) process state

2) program counter

3) I/O status information

4) All the above

Answer: 4

Exp: refer PCB properties

Level:1

7) As processes enter the system, they are put into a

1) ready queue

2) Job queue

3) Device queue

4) All the above

Answer: 2

Exp: Job pool have the processes which are ready to be allocated CPU time

Level:1
8) Processes that are residing in main memory and are ready and waiting to execute are kept on
a list called

1) ready queue

2) Job queue

3) Device queue

4) All the above

Answer: 1

Exp: These are the processes which have been allocated CPU time slices and waiting for their
turn for execution

Level: 1

9) The list of processes waiting for a particular I/O device is called

1) ready queue

2) Job queue

3) Device queue

4) All the above

Answer: 3

Exp: These jobs are lined in a queue for their processing done by the devices ( generally slow
I/O devices like printers)

Level:1

10) The selection process is carried out by the

1) Dispatcher

2) Scheduler

3) both the above


4) none of the above

Answer: 2

Exp: by def

Level:1

11) ________ selects processes from the job pool and loads them into the memory for
execution

1) Long term scheduler

2) Short term scheduler

3) CPU scheduler

4) None of the above

Answer: 1

Exp: by def

Level:1

12) __________ selects from among the processes that are ready to execute, and allocates the
CPU to one of them

1) Long term scheduler

2) Short term scheduler

3) CPU scheduler

4) None of the above

Answer: 2 and 3

Exp: by def

Level: 2
13) The CPU scheduler is also known as ________

1) Long term scheduler

2) Short term scheduler

3) Mid term scheduler

4) None of the above

Answer: 2

Exp: by def

Level:1

14) _________ removes processes from memory and thus reduces the degree of
multiprogramming

1) Long term scheduler

2) Short term scheduler

3) Mid term scheduler

4) None of the above

Answer: 3

Exp: by def

Level:2

15) _____________ controls the degree of multiprogramming (the number of processes in the
memory)

1) Long term scheduler

2) Short term scheduler


3) Mid term scheduler

4) None of the above

Answer: 1

Exp: The long term scheduler control the number processes being put into the job pool thus
controls the degree of multiprogramming.

Level: 2

16) The procedure of re-introducing the process into memory and its execution can be continued
from where it left off. This scheme is called________-

!) Swapping

2) Preemption

3) Paging

4) none

Answer: 2

Exp: by def

Level: 1

17) Switching the CPU to another process requires saving the state of the old process and
loading the saved state for the new process. This task is known as________

1) Paging

2) Context Switching

3) Preemption

4) None

Answer: 2

Exp: by def

Level:1
18) Which of the given options is a part of PCB

1) process state

2) program counter

3) Memory Management information

4) All the above

Answer: 4

Exp: refer PCB properties

Level: 1

19) Provide programming examples in which multi threading provides better performance than a
single-threaded solution.
1) A Web server that services each request in a separate thread.
2) b) A parallelized application such as matrix multiplication where different parts of the
matrix may be worked on in parallel.
3) both a and b
4) none of the above
Answer: 3

Level: 2

20) What is true for the user-level threads and kernel-level threads?
1) kernel is aware of both the threads
2) On systems using either M:1 orM:N mapping, user threads are scheduled by the thread
library and the kernel schedules kernel threads.
3) both 1 and 2
4) only 2
Answer: 4

Level: 2
21) The actions taken by a kernel to context switch between kernel level threads typically requires
saving the value of the CPU registers from the thread being switched out and restoring the CPU
registers of the new thread being scheduled. T/F
Answer: T
Level: 2

22) What resources are used when a thread is created?


1) allocating a process control block (PCB), a rather large data structure.
2) allocating kernel-level processes
3) allocating a small data structure
4) none of the above
Answer: 3
Because a thread is smaller than a process, thread creation typically uses fewer resources than
process creation. Creating either a user or kernel thread involves allocating a small data structure
to hold a register set, stack, and priority.

Level:2

23) What resources are used when a process is created?


1) allocating a process control block(PCB)
2) allocating a small data structure
3) allocating kernel processes
4) none of the above
Answer: 1
The PCB includes a memory map, list of open files, and environment variables.

Level:2

24) Assume an operating system maps user-level threads to the kernel using the many-to-many
model and the mapping is done through LWPs. Further more, the system allows developers to
create real-time threads. Is it necessary to bind a real-time thread to an LWP? Yes/no
Answer: Yes.
Timing is crucial to real-time applications. If a thread is marked as real-time but is not bound to an
LWP, the thread may have to wait to be attached to an LWP before running. By binding an LWP to
a real time thread you are ensuring the thread will be able to run with minimal delay once it is
scheduled.

Level:2
25) Which of the following activities connected with process management are OS
responsibilities?

a) Creating and deleting both user and system processes.

b) Suspending and resuming processes

c) Providing paging and reverse paging

d) Providing mechanisms for process synchronization

1) a, b, c

2) b, c, d

3) a, b, c, d

4) a, b, d

Answer: 4

Exp: Not req.

Level:1

26) In a batch system how many processes are executed simultaneously?

1) only one process


2) more than one

3) Depends on the number of processors

4) None

Answer: 1

Exp: not req

Level:1
27) In a multi-processor system,

a) All processors must work on different processes


b) All processors can work on same process

c) All processors have only one user to work with

d) All users share a single processor

1) a, b, c, d

2) a, b, c

3) a, b

4) a

Answer: 3

Exp: not req.

Level:1

28) The disadvantage of multiprogramming is

1) low throughput
2) no user interaction

3) None

4) Both 1, 2

Answer: 2

Level: 1

29) Hard real time systems – required to complete a critical task within a
guaranteed amount of time. True/ False

Answer: True

Level: 2
30) Soft real time computing – requires that critical processes receive priority
over less fortunate ones. True/ False

Answer: True

Level:2

31) A process is a program after execution. True/ False

Answer: false

Level: 1

Exp: program under executon

32) Program is a ________and a process is an ________.

1) passive entity, active entity


2) active entity, passive entity

3) active, active

4) passive, passive

Answer: 1

Level: 2

33) Each process has a segment of code called a critical section, in which the process may be
changing common variables, updating a table, writing a file, etc. True/False

Answer: True

Level: 1

34) The I/O subsystem consists of

a) a memory management component that includes buffering, caching and


spooling.
b) a general device driver interface.

c) Drivers for specific hardware devices.

1) a and b only

2) a and c only

3) b and c only

4) all a, b, c

Answer: 4

Exp.: not req.

Level: 2

35) Process execution begins with a ________ burst.

1) Thread burst

2) Process burst

3) CPU burst

4) None

Answer: 3

Level: 2

36) The method requiring saving the state of old process and loading the saved process of
new process is

1) Context switching

2) Switch program

3) switch processor

4) None

Answer: 1
by def

Level: 1

37) Advantage of interrupt concept is elimination of ___

1) Spooling

2) Polling

3) Job scheduling

4) Blocking current process

Answer: 2

Level: 2

38) The state of a process after it encounters an I/O instruction is ________

1) Ready

2) Blocked

3) Idle

4) Running

Answer: 2

Level: 2

39) The region of code in a process to access a shared variable.

1) Subroutine

2) Procedure

3) Critical section

4) Function

Answer: 3

Level: 1
40) RPC stands for_____

1) Remote procedure call

2) Resource procedure call

3) Remote parameter call

4) All the above

Answer: 1

Level: 1

41) Which forms an interface between process and OS?

1) DMA

2) System call

3) Kernel

4) None

Answer: 2

Level: 1

42) Cache memory works on the principle of

1) Memory chips

2) Associative memory

3) Locality of reference

4) Least recent information

Answer: 3

Level: 2

43) Which of the following best explains a process?

1) It is a program
2) It is a program in execution

3) It is a program that uses system calls.

4) It is an instance .

Answer: 2

Level: 1

44) Which is not the state of the process?

1) Blocked
2) Running
3) Ready
4) Privileged

Ans:- 4

45) The number of processes completed per unit time is known as __________.

1) Output
2) Throughput
3) Efficiency
4) Capacity
Ans :- 2
Level: 1

46) The difference between Buffer and Cache is that a buffer may hold the only
existing data whereas a cache holds a copy of the data for the faster retrieval.

1) The statement is false


2) The statement is true.
3) The buffer holds data for faster retrieval and cache holds only existing
data.
4) None of the above

Ans :- 2

Level: 2

47) The process related to process control, file management, device


management, information about system and communication that is requested by
any higher level language can be performed by __________.
1) Editors
2) Compilers
3) System Call
4) Caching

Ans: 3
Level: 2

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

1) Ready queue
2) Device queue
3) Input queue
4) Priority queue

Ans: - 3

Level: 1

49) Which of the following involves context switch


1) System call
2) Privileged Instructions
3) Floating point exception
4) All the above
Answer:1
Level: 2
53)

50) Whichof the following is valid with respect to process


1) Static
2) Exists in space
3) Has states
4) Fixed
Answer:3
Level: 2

51)Busy waiting is a technique


1) Blocked
2) Running
3) Ready
4) Privileged
Answer:4
Level: 2

You might also like