Os Bits Mid 1
Os Bits Mid 1
System: -
Choose The correct Option to the following Questions from
given list of Options?
1.Which of the following is a Program that acts as an interface between the user of a
computer and the computer hardware?
2.The Process of Loading Operating system files from the HardDisk to RAM by ROM is
said to be?
3.which of the following Provides an interface to the Services Provided by the Operating
System?
5.The Operating System is divided into several layers.the Bottom Layer (Layer 0) is said
to be _______________?
8.Which of the allows the users to install and run multiple Operating Systems in a
Single PC?
a) virtual and non-virtual mode b) user and kernel mode c)Public and Private mode
d) None of the Above
2.C program invoking printf() library call which calls____________ system call?
ANS:WRITE
3._______________is a text based interface where you can input commands that
interact with a a computer Operating System?
ANS:OPERATING SYSTEM
5.what are two Approaches to interact with the Operating System ___________ and
___________________?
7.____________ acts as a mediator between the system calls and the user interface?
ANS:SYSTEM PROGRAMS
ANS:JVM
10.______________ runs an Host OS such as windows or Linux and allows this host
system to concurrently run different guest operating systems as independent virtual
machines?
ANS:VM WARE
OPERATING SYSTEM.
UNIT 2:- PROCESS MANAGEMENT:-
Choose the correct option for the following Questions from the options given
?
1.The program under execution is said to be______________?
a)Program
b)Activity
c)System
d)Process
2.when the process completes its execution then that state is
called______________?
a)new
b)ready
c)terminate
d)All the above
3.Switching the CPU from one process to another Process is known
as___________?
a)Moving
b)Context Switching
c)Movement
d)None of the Above
4.____________ is used by Operating system to manage information about a
running Process.
a)System
b)Software
c)Both a&b
d)PCB
5.what is defined by the Thread?
a)life cycle
b)Flow of execution
c)software
d)None of the Above
6.what are MultiThreading Models?
a)many-to-One Model
b)One -to-one Model
c)Many-to- many Model
d)All the Above
7.which Scheduling Alogrithm is just like FIFO(First in First Out)?
a)FCFS
b)SJF
c)Priority Scheduling
d)None of the Above
8.If CPU Stops the execution of process force fully that is called as?
a)Preemption
b)Non Preemption
c)Both a&b
d)None of the Above
9.Which of the following Scheduling Algorithm has Preemption?
a)FCFS
b)SJF
c)Round Robin
d)All the Above
10.Consider a NON-PREEMPTIVE SJF algorithm
Processs:- p1,p2,p3,p4
BURST TIMES:- 6,8,7,3
What is Average Waiting time?
a)8.2
b)8.1
c)7
d)9
FILL THE BLANKS WITH SUITABLE ANSWERS?
1.A process is represented in OS using Process Contol block(PCB)?
2.Program Counter is a processor register which contains address of the next
instruction to be executed?
3.Process Schedulers decides the order in which the processes to be executed?
4.The best example for shared memory is producer-Consumer problem
5.Sockets is a Concatenation of IP address and Port
6.The Socket 161.25.19.8:1625 here 1625 refers to Port 1625 on host
161.25.19.8
7.Thread is Light Weight Process.
8.what is the FULL form of FCFS First Come First Serve?
9.CPU scheduling deals with the problem of deciding which of the process in
the ready queue is to be allocated the CPU.
10.Consider the FCFS Algorithm
Process→P1,P2,P3,P4,P5
Arrival Time→0,2,4,6,8
Burst Time→3,6,4,5,2
The Average Waiting Time is 4.6
UNIT 3:-
Multiple Choice Questions
1. What can potentially occur when multiple processes access shared resources
simultaneously?
-A) Mutual exclusion
–B) Object-oriented programming
– C) Race conditions
– D) Static binding
2. Which solution is primarily concerned with ensuring that only one process
enters a critical section at a time?
- A) Peterson's solution
- B) Semaphore implementation
– C) Object-oriented programming
– D) Thread synchronization
3. Which section of the critical section problem is responsible for allowing a
process to exit the critical section?
- A) Entry section
- B) Exit section
- C) Remainder section
- D) Synchronization section
4. Which section of the critical section problem ensures that only one process
can enter the critical section at a time?
- A) Entry section
- B) Exit section
– C) Remainder section
- D) Initialization section
5. What is the primary goal of process synchronization mechanisms?
- A) Ensuring high performance
- B) Maintaining data consistency
- C) Maximizing memory utilization
- D) Minimizing context switching
FILL IN THE BLANKS
1. The entry section in the critical section problem ensures that only one
process can enter the critical section at a time.
2. Process synchronization mechanisms aim to prevent race conditions and
ensure orderly execution of processes.
3. In semaphore implementation, the operation wait() decrements the
semaphore value.
4. Binary semaphores can be used to solve Critical section problems
5. Semaphore implementation allows processes to coordinate access to
shared resources using wait() and signal()operations.