PARUL INSTITUTE OF ENGINEERING AND TECHNOLOGY
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING -CYBER
OPERATING SYSTEM -303105201
Submission Date – Latest by 25-01 -2025
Q.1 Multiple Choice Questions (MCQs)Question
Which of the following is not a type of operating system?
1.
a) Batch
b) Time-sharing
c) Real-time
d) Networked
What is the primary purpose of an operating system?
2.
a) To manage hardware resources
b) To provide security
c) To manage user applications
d) All of the above
3. Which of the following is a characteristic of a real-time operating system?
a) High throughput
b) Predictable response time
c) Multi-user capabilities
d) None of the above
In a time-sharing system, the CPU time is divided among:
4.
a) Processes
b) Users
c) Both a and b
d) None of the above
Which of the following is not a type of operating system?
5.
a) Batch
b) Time-sharing
c) Real-time
d) Networked
Which of the following is a primary function of an operating system?
6.
a) Managing hardware resources
b) Compiling programs
c) Designing user interfaces
d) None of the above
7. What is the purpose of a process scheduler?
a) To manage memory allocation
b) To determine the order of process execution
c) To handle input/output operations
d) To manage file systems
In which scheduling algorithm does the process with the smallest next CPU burst time get
8.
executed first?
a) First-Come, First-Served
b) Round Robin
c) Shortest Job First
d) Priority Scheduling
9. What is a deadlock?
a) A process that is waiting indefinitely
b) A situation where two or more processes are unable to proceed
c) A method of resource allocation
d) A type of scheduling algorithm
10. Which of the following is not a state of a process?
a) New
b) Ready
c) Running
d) Completed
Which of the following is a primary function of an operating system?
11.
a) Managing hardware resources
b) Compiling programs
c) Designing user interfaces
d) None of the above
Short Questions
Q.2
Define an operating system and its main functions.
1
2 Explain the difference between a batch processing system and a time-sharing system.
What is a kernel in the context of an operating system?
3
Describe the role of system calls in an operating system.
4
Define the term "process" in the context of operating systems.
5
Explain the difference between a process and a thread.
6
What is the role of the kernel in an operating system?
7
Describe the concept of virtual memory.
8
Long Questions
Q.3
Consider the following set of processes, with the arrival times and the CPU-burst times given
1
in milliseconds.
Process Priority Burst Time
P1 1 4
P2 2 3
P3 1 7
P4 3 4
P5 2 2
Find average turn around time, average waiting time, average response time.
An operating system uses the Shortest Remaining Time First (SRTF) process scheduling
2
algorithm. Consider the arrival times and execution times for the following processes:
Process Arrival time Burst Time
P1 20 ms 0 ms
P2 25 ms 15 ms
P3 10 ms 30 ms
P4 15 ms 45 ms
What is the total waiting time for process P2?
Consider the following table of arrival time and burst time for three processes P1, P2, and
3
P3, and given Time Quantum = 3 units
Process Burst Time
P1 7
P2 4
P3 9
Find completion time, Turn Around time , Response time, Waiting time.
Consider the given table below and find Completion time (CT), Turn-around time (TAT),
4
Waiting time (WT), Response time (RT), Average Turn-around time and Average Waiting
time. Apply FCFS.
Process ID Arrival time Burst time
P1 2 2
P2 5 6
P3 0 4
P4 0 7
P5 7 4