0% found this document useful (0 votes)
10 views3 pages

Daily Practice Questions C Programming

The document is a GATE 2025 crash course on Operating Systems, focusing on process management with multiple questions and answers related to process attributes, termination, and system operations. It includes a question set with answers and explanations for each question, covering key concepts like Process Control Blocks and multiprogramming objectives. The material is designed to help students prepare for the GATE exam in Computer Science and Information Technology.

Uploaded by

adarshsaraswat97
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

Daily Practice Questions C Programming

The document is a GATE 2025 crash course on Operating Systems, focusing on process management with multiple questions and answers related to process attributes, termination, and system operations. It includes a question set with answers and explanations for each question, covering key concepts like Process Control Blocks and multiprogramming objectives. The material is designed to help students prepare for the GATE exam in Computer Science and Information Technology.

Uploaded by

adarshsaraswat97
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

GATE

Crash Course GATE 2025


CS & IT
Operating System DPP: 1

Basics andManagement
Process Process Management

Q1 In operating system, each process has its own? (A) Have a process running at all time
(A) Address space and global variables (B) Have multiple programs waiting in a queue
(B) Open files ready to run
(C) Resources to be used (C) To decrease CPU utilization
(D) All of the mentioned (D) None of the mentioned

Q2 A process can be terminated due to? Q6 The state of a process is defined by __________
(A) Normal exit (A) The final activity of the process
(B) Fatal error (B) The activity just executed by the process
(C) killed by another process (C) The activity to next be executed by the
(D) All of the mentioned process
(D) The current activity of the process
Q3 Consider a system with degree of
multiprogramming as N and M number of CPUs Q7 Dual mode of operation is used in computer
(where N>=M). Maximum number of processes system to implement?
possible in running state simultaneously is (A) System protection
________? (B) System security
(A) N (B) M (C) System identification
(C) 1 (D) 0 (D) System authentication

Q4 A Process Control Block (PCB) does not contain Q8 Which of the following type of Operating
which of the following? system was invented because one process was
(A) Process Code not able to keep the CPU and IO devices busy
(B) Stack simultaneously?
(C) Bootstrap program (A) Uniprogramming OS
(D) Process Data (B) Multiprogramming OS
(C) Multiprocessing OS
Q5 What is the objective of multiprogramming?
(D) Realtime OS

Android App | iOS App | PW Website

[Link] 1/3
5/7/24, 12:15 AM GATE_DPP 1

GATE

Answer Key
Q1 (D) Q5 (B)

Q2 (D) Q6 (D)

Q3 (B) Q7 (A)

Q4 (A, B, C, D) Q8 (B)

Android App | iOS App | PW Website

[Link] 2/3
5/7/24, 12:15 AM GATE_DPP 1

GATE

Hints & Solutions


Q1 Text Solution: Q5 Text Solution:
When a process is allocated in memory then it Multiprogramming was introduced with the
has its own address space to store instructions, purpose of increasing the CPU utilization by
then its own space to store global variables, keeping multiple ready to running processes in
local variables and static variables also. The ready queue, so that when any running process
process has resources allocated to it, which can goes for IO operation then other process can
not be used by other processes until this be scheduled to run on CPU to keep CPU
process releases them. The process has its own always busy.
open files also. Q6 Text Solution:
Q2 Text Solution: State of the process is the current activity of the
A process can terminate with normal exit when process which process is doing currently.
the process execution completes normally. If a process is running in CPU then the state of
Any process can be killed by other process also the process is running state
like OS kills a process. If a process is waiting for IO then the state of
Any process can be terminated due to some the process is waiting or blocked.
exception or unexpected error occurring during Q7 Text Solution:
its execution. Dual mode of operation is used so that only OS
Q3 Text Solution: can run the privileged instructions or processes
There are M CPUs and N processes. Hence which are to be run by OS only not be any user
maximum M processes one in each CPU can be process. So that system can be protected by
in running as a time. processes.

Q4 Text Solution: Q8 Text Solution:


PCB contains the meta data of the process like When in uniprogramming OS, the only available
process ID, process state, process priority, process was going for IO operation by leaving
process size in memory, process memory limits, CPU, then CPU was free. Hence
list of files opened, list of resources etc. The PCB multiprogramming OS was invented so that if a
does not contain stack, code data or bootstrap process goes for IO operation then other
program. process will be ready to run on CPU to increase
CPU utilization along with IO usage.

Android App | iOS App | PW Website

[Link] 3/3

You might also like