CS604 CURRENT MIDTERM SOLVED SUBJECTIVE By JUNAID.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
SUBJECTIVE, SOLVED, CURRENT, 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 CURRENT MIDTERM SOLVED SUBJECTIVE By JUNAID.pdf for free?

You can preview and download "CS604 CURRENT MIDTERM SOLVED SUBJECTIVE By JUNAID.pdf" (CS604 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs604-current-midterm-solved-subjective-by-junaid-pdf-2) 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

                          CS604- OPERATING SYSTEM
                           (SOLVED Current Subjective)
                            FROM MIDTERM PAPERS
                               LECTURE (1-22)

BC190202640@vu.edu.pk     For More Visit: vulmshelp.com   JUNAID MALIK
Junaidfazal08@gmail.com                                   (0304-1659294)

      AL-JUNAID TECH INSTITUTE
   1. Exit system call Wait system call
   ANSWER:
   A call to wait() blocks the calling process until one of its child processes exits
   or a signal is received. After child process terminates, parent continues its
   execution after wait system call instruction. Child process may terminate due to
   any of these: It calls exit();
   2. why mknod() call fail give two reason.
   ANSWER:
   There are several reasons why a call to the mknod() function could fail:
   The process does not have sufficient permissions to create the file. In order to
   create a file using mknod(), the process must have the appropriate permissions
   for the directory in which the file is being created.The file name is invalid.
   There are certain characters and conventions that are not allowed in file names,
   and if the name specified in the mknod() call contains such characters or does
   not follow the correct conventions, the call will fail.The file name is too long.
   There is a maximum length for file names on most systems, and if the name
   specified in the mknod() call exceeds this maximum length, the call will
   fail.The file system is full. If the file system does not have sufficient free space
   to create the file, the mknod() call will fail.The file already exists. If a file with
   the same name already exists in the specified directory, the mknod() call will
   fail unless the O_EXCL flag is set, in which case the call will fail with the
   EEXIST error.
   3. CPU schedulers
         Long term
         Short term
         Middle term
ANSWER:
In a computer operating system, the CPU scheduler is a component that manages
the execution of processes on the CPU. There are three types of CPU schedulers:
Long-term scheduler (also called the job scheduler): This scheduler determines
which processes should be admitted to the ready queue for execution. It is

      AL-JUNAID TECH INSTITUTE
responsible for balancing the trade-off between CPU utilization and response time.
The long-term scheduler is responsible for deciding which programs will be
executed in the future and for how long. It is a slower-acting scheduler and is
usually not invoked very often.
Short-term scheduler (also called the CPU scheduler or dispatcher): This scheduler
selects which process should be executed next and allocates the CPU to it. It is a
faster-acting scheduler that is invoked very frequently (e.g., every few
milliseconds).
Middle-term scheduler: This is a hybrid of the long-term and short-term
schedulers. It is invoked less frequently than the short-term scheduler, but more
frequently than the long-term scheduler. The middle-term scheduler is responsible
for adjusting the priority of processes that have been in the system for a while and
have not yet completed. This can help prevent processes that have been in the
system for a long time (e.g., "starving" processes) from being starved of CPU
resources.

   4. ps command And working of Ps-e Ps-u Ps-l
   ANSWER:

The ps command is a command-line utility that displays information about the
processes running on a system. It can be used to display the processes of a specific
user, the processes with a specific terminal, or all processes on the system.

The ps command has many options that can be used to modify its behavior. Some
common options include:

-e: This option tells ps to display information about all processes on the system,
including processes that have been terminated but have not yet been cleaned up by
the system.

-u: This option tells ps to display information about processes owned by a specific
user. The user's name or user ID can be specified as an argument to the -u option.

-l: This option tells ps to display information in a "long" format, which includes
additional details such as the process's priority, nice value, and process ID.

      AL-JUNAID TECH INSTITUTE
For example, to display information about all processes on the system in a long
format, you could use the command ps -el. To display information about processes
owned by the user john in a long format, you could use the command ps -ul john.

   5. Similarities between threads and process

   ANSWER:

   There are several similarities between threads and processes:

       Both threads and processes are independent sequences of execution that
        can run concurrently on a computer.
       Both threads and processes can have their own set of resources, such as
        memory, file handles, and network sockets.
       Both threads and processes can be scheduled by the operating system to
        run on a CPU.
       Both threads and processes can be created and terminated by the
        operating system or by other threads or processes.
       Both threads and processes can communicate with each other through
        various means, such as shared memory, message passing, or signaling.
       Both threads and processes can be used to divide a larger task into
        smaller units of work that can be executed concurrently.
       Both threads and processes can be used to improve the performance and
        scalability of an application by allowing it to make better use of multiple
        CPU cores.

   6. Differentiate between absolute and relative path
   ANSWER:
   An absolute path is the full, exact path to a file or directory, starting from the
   root directory of the file system. It includes all directories and subdirectories
   that must be traversed to reach the file or directory. An absolute path is not
   affected by the current working directory of the process or the location of the
   file that is being executed.
   A relative path, on the other hand, is a path to a file or directory relative to the

More CS604 files

All CS604 files · Midterm Prep 2026 · MCQs Bank