Operating System Question Bank For Unit 1&2
Operating System Question Bank For Unit 1&2
UNIT-I
1.What are the various components of operating system structure and explain with a
neatsketch.(8M)
7.What are the various components of operating system structure and explain with a
neat sketch.(10M)
8.List out the types of operating system and explain batch OS and time sharing OS in brief.
(15M)
9. Explain about the system calls fork, exit, wait, waitpid and exec.(15M)
10.In a multi programming and time-sharing environment ,several users share the system
simultaneously.This situation can result in various security problems.What are two such
problems.(5M)
11.Can we ensure the same degree of security in time shared machine as in a dedicated
machine?Explain your answer.(5M)
12.Under what circumstances would a user be better off using a time sharing system rather
than a PC or single –user work station.(5M)
2.To access the services of the operating system, the interface is provided by the
___________
a) Library
b) System calls
c) Assembly instructions
d) API
3.What is an interrupt Vector.
a) It is a unique identity given to an interrupt
b) It is a unique device number that is indexed by an address
c) It is an address that is indexed to an interrupt handler
d) None of thementioned
4. Which one of the following is not an operating system?
a) UNIX
b) Windows
c) XENIX
d) APPLE
5. What is the Process by which the operating system is loaded into the memory?
a) Booting
b) Processing
c) Loading
d) None of the above
6. The core of UNIX operating system is called
a) Kernel
b) Karnel
c) Kannal
d) None of the above
7. _________________ Operating System does not implement multitasking.
A. Windows XP
B. Windows NT
C. Windows 98
D. MS DOS
E. None
8. By the operating system which one error will be handled from the following?
A. connection failure in the network
B. power failure
C. all of the mentioned
D. lack of paper in the printer
E. Both A & B
F. None of these
9. In the 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
10. 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
11. The systems that allow 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
12. 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
13. that are executed in sequence without any input from the user.
(A) Batch file
(B) Path
(C) Pipe
(D) All of these
14. DIR command is used to
(A) Display a list of files in a directory
(B) Display type of files in a sub directory
(C) Display contents of files in directory
(D) All of the above
UNIT-II
Consider the following set of processes, with the length of the CPU burst given in
milliseconds:
Process Burst Time Priority
P1 27 5
P2 12 1
P3 37 2
P4 19 4
P5 10 3
The processes are assumed to have arrived in the order P1, P2, P3, P4, P5 all at time 0. Draw
the Gantt charts that illustrate the execution of these processes using the following
scheduling algorithms: FCFS, SJF and Priority. Also determine the average waiting time and
average turnaround time for each of the algorithms.(15M)
5.Consider the following five processes with the length of the CPU burst time in
milliseconds.
Process Burst Time Priority
P1 10 3
P2 1 1
P3 2 3
P4 1 4
P5 5 2
6. Consider 3 processes P1, P2 and P3, which require 5, 7 and 4 time units and arrive at
times 0, 1 and 3. Draw the Gant chart, process completion sequence and average waiting
time for.
3. Which of the Following are NOT shared by the threads of the same
process.______________
(a) Stack (b) Registers (c) Address Space (d) Message Queue
1.(a) & (b) 2.(b) & (c) 3.(a) & (b) 4.(a),(b) & (c)
4. A process residing in main memory and ready and waiting for execution,is kept on
a) Execution Queue b) Wait Queue
c) Job Queue d) Ready Queue
5. When a process is in a “Blocked” state waiting for some I/O service. When the service is
completed, it goes to the _________
a) Terminated state
b) Suspended state
c) Running state
d) Ready state
6. The Solution to critical section problem must ensure following conditions
____________
a) Only Mutual Exclusion and progress
b) Only Mutual Exclusion and Bounded Waiting
c Mutual Exclusion ,Progress and Bounded Waiting
9. In a timeshare operating system, when the time slot assigned to a process is completed, the
process switches from the current state to?
a) Suspended state
b) Terminated state
c) Ready state
d) Blocked state
10. The portion of the process scheduler in an operating system that dispatches processes is
concerned with ____________
a) assigning ready processes to waiting queue
b) assigning running processes to blocked queue
c) assigning ready processes to CPU
d) all of the mentioned
11. The interval from the time of submission of a process to the time of completion is termed
as ____________
a) waiting time
b) turnaround time
c) response time
d) throughput
12. Which scheduling algorithm allocates the CPU first to the process that requests the CPU
first?
a) first-come, first-served scheduling
b) shortest job scheduling
c) priority scheduling
d) none of the mentioned
14.In priority scheduling algorithm, when a process arrives at the ready queue, its priority is
compared with the priority of ____________
a) all process
b) currently running process
c) parent process
d) init process
15.Which system call can be used by parent process to determine the termination of child
process.
a) wait
b) get
c) fork
d) exit
a) Process State
a) Data Structure
b) A Block in Memory
4. Round robin scheduling falls under the category of Time Sharing Systems
5. The strategy of making processes that are logically runnable to be temporarily suspended is
called Premptive Scheduling
7. FCFS scheduling algorithm allocates the CPU first to the process that requests the CPU
first?
10. The list of processes waiting for a particular I/O device is called a -------------(device
queue)
11. When the process issues an I/O request __________(It is placed in an I/O queue)
12. The primary distinction between the short term scheduler and the long term scheduler is
__________(The frequency of their execution)
14. Suppose that a process is in “Blocked” state waiting for some I/O service. When the
service is completed, it goes to the __________(Ready state)
15. The context of a process in the PCB of a process does not contain __________(context
switch time)
21. A process is selected from the ______ queue by the ________ scheduler, to be executed.
( ready, short term)
22.-------------------------------- is turnaround time(the total time from the completion till the
submission of a process)