CS604 - Midterm Exam Questions.pdf

Verified academic study resource for CS604 (Operating Systems) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS604 – Operating Systems
Faculty
Computer Science
Format
PDF
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
MIDTERM

Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS604.

What this file covers — CS604 syllabus roadmap

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)

Frequently asked questions

Where can I download CS604 - Midterm Exam Questions.pdf for free?

You can preview and download "CS604 - Midterm Exam Questions.pdf" (CS604 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs604-midterm-exam-questions-pdf) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS604 file?

This document covers Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS604 under the VU 20% Two-Half Rule?

Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.

Are CS604 solved past papers and handouts verified for 2026 exams?

Yes. All CS604 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.

Inside this file

what is difference b/w preemptive and non-preemptive (2)
difference b/w progress and bound waiting
virtual machine V scheduling algorithm different steps ty uno ko descending order ma btana ta
pseudo code aya ta 5 marks ka
do{
critical section
exit section
}while (1)
is ma critical section ko handle karna ta
Last 5 number k question ma task diya ta with shortage memory ya btana ta which is best to perform task is thread or
child processes
Best of luck 4 all
ALLAH ap sab ko pass kary mery liy b dowa karna

                                                    Mine today paper

1)   Difference between “progress” and “ bounded time: in critical section. 2 marks (ans page 98)
2)   Background k bary me tha Question samjh nai aya tha 2 marks
3)   If process in background then we want its move in foreground then what unix linux command is use to moving. 3
marks(ans page 65)
4)   How The open source help us to test the algorithm 3 marks (ans page94)
5)
p                            Cpu burst
P1                           5
P2                           4
P3                           7
P4                           1
P5                           8
P6                           10
Ye table tha isy fcfs , round robin, sjf in 3no me karna tha 5matks

6)   Compile and running c program page 28 py jo topic hai aisa he ak program tha or us ki detail btani thi 5 marks

My paper had following Subjective Qs
Difference b/w Bounded and Progress
What is Pre-emptive , briefly describe
5 Mks Question : First Come First Serve (FCFS) , Shortest Job First (SJF) and round robin for P1 - P5 , with P 1 and
P 5 arriving at 0 , Quantum of 4 for Round Ribin,
Burst Time P1 = 9 , P2 = 4 , P 3 = 6 , P4 = 1 and P5 = 10
What is Shortest Job First , ( there was a logical statement like Wait time decreases vs long process
All quiz were from Mega File solved by Miss Kazmi : Thanks VUStudents

My today's Paper
Q1.MLFO algorithm is same as SJF algorthim justify your ans Yes or no ?
Q.2.Diff b/w bounded and progress in respect to critical section?
Q.3.Explain Semaphore Algorithm?
Q.4: For terminating a process which command you will use ?
Q.5: Every operating system creates an identified operation or or the process.which includes (data copying, the code ,heap
, When UNIX fork () system cal is make at the kernel level as well as at the User level ?
Q:6 Diff b/w FIFO and Pipe ?

and mostly MCQ's were not from the past papers so be careful while attempting your paper.

total 23
1x16
2x3
3x2
5x2

1.what are two problem of using processes that can be overcome by using the threads (5)
2. find the shortcomming of the given sloution of Critical Section Problem (page 106)
do
{
while (TestAndSet(lock)) ;
Critical section
lock=false;
Remainder section
} while(1);

1.how to dependent processes can communicate within a system(2-marks)
2.for which problem we make there two assumptions (2 marks)
1.Assume that each process executes at a nonzero speed
2. No assumption can be made regarding the relative speeds of the N processes
1.A system have I/o bound processes and CPU bond processes and the IO bound proceses are waiting for the CPU what is
the problem comes in mind by the above senario (3 marks)

papers is not straight forward its totally conceptual..
MCQs.. 70 % from old papers but all are conceptual....
Please Be prepared before attend the paper...

PAPER#1
Total 23 Questions
MCQs 16
1. List and define the different metrics by which might evaluate a scheduler (List at least 4). 5 marks
2. Write brief the multilevel feedback queue scheduling. 5 marks
3. Assumption made while formulating a solution to the critical section problem. 2 marks
4. There are many commands. Write the method through which these commands can communicate with each
other. 3 marks
5. Write Difference between SJF and Shortest Remaining Time First Scheduling algorithm. 3 marks
6. Write formula for calculating waiting time in preemptive Shortest Job First Algorithm. 2 marks
7. Define race condition and how prevent this condition. 2 marks

PAPER#2
Question No: 17 ( Marks: 2 )
What is Convoy Effect?

Question No: 18 ( Marks: 2 )
What are the common data structures in Bakery Algorithm?

Question No: 19 ( Marks: 2 )
How a pipe can be created?

Question No: 20 ( Marks: 3 )
Define Progress and Bounded Waiting.

Question No: 21 ( Marks: 3 )
What is Starvation and how it occures

Question No: 22 ( Marks: 5 )
What are the advantages of Round Robin Scheduling Algorithm?

Question No: 23 ( Marks: 5 )
Analyze the following algorithm to solve the critical section problem and explain whether it satisfies the Mutual
Exclusion Characteristic

Flag[i] = True;
Turn = j;
do{
while(Flag[j] = True && turn==j);
critical section
Flag[i] = False;
remainder section
} While(1)

1)

A code about test and set lock was given to highlight errors 5Marks

2)

What is starvation and what is its solution 5Marks

3)

What are common data structures in Bakery Algorithm 2Marks

4)

Difference between preemptive and Non Preemptive Algorithm 2Marks

5)

How inter process communication is done among processes 2Marks

6)

Difference between SJF and SRTF 3Marks

7)

Three queues in Multi level feed back……..3Marks

Question No: 3 ( M a r k s: 1 )
The -------------- system call suspends the calling process.

► fork
► wait
► exec
► exit

Question No: 4 ( M a r k s: 1 )
In ---------addressing, the recipient is not required to name the sender.

► Symmetric
► Asymmetric
► Both symmetric and asymmetric
► None of the given options

Question No: 5 ( M a r k s: 1 )
-------- command gives a snapshot of the current processes.

► ps
► top
► who
► ls

Question No: 6 ( M a r k s: 1 )
--------------command to resume the execution of a suspended job in the foreground

► fg
► bg
► jobs
► kill

Question No: 7 ( M a r k s: 1 )
You can use the ------------- command to display the status of suspended and background processes

► fg
► bg
► jobs
► kill

Question No: 8 ( M a r k s: 1 )
You can terminate a foreground process by pressing --------------

► <Ctrl-A>
► <Ctrl-C>

► <Ctrl-Z>
► None of the given options

More CS604 files

All CS604 files · Midterm Prep 2026 · MCQs Bank