Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 38 pages
Exam (elaborations)

CS-C191 ITEC 2211 OS for Programmers Comprehensive OA 2025 (With Solns)

Document preview thumbnail
Preview 4 out of 38 pages

CS-C191 ITEC 2211 OS for Programmers Comprehensive OA 2025 (With Solns)CS-C191 ITEC 2211 OS for Programmers Comprehensive OA 2025 (With Solns)CS-C191 ITEC 2211 OS for Programmers Comprehensive OA 2025 (With Solns)

Content preview

CS – C191 ITEC 2211 Operation Systems for
Programmers

Comprehensive Objective Assessment (Qns &
Ans)

2025


1. Which scheduling algorithm prevents starvation by increasing
the priority of waiting processes over time?


a) First-Come, First-Served
b) Shortest Job First
c) Priority Scheduling
d) Aging
ANS: d) Aging
Rationale: Aging gradually increases the priority of waiting
processes to prevent starvation.
©2025

,2. In distributed systems, what protocol ensures that all nodes
agree on a transaction's outcome even in case of failures?


a) Token Ring
b) 2-Phase Commit
c) Time-Sliced Scheduling
d) RPC Chaining
ANS: b) 2-Phase Commit
Rationale: The 2-Phase Commit protocol ensures atomic
transaction commits across distributed nodes.


3. Which of the following is NOT a primary goal of virtual
memory?


a) Simplified programming
b) Increased execution speed by eliminating paging overhead
c) Efficient utilization of main memory
d) Protection and isolation among processes
ANS: b) Increased execution speed by eliminating paging
overhead


©2025

,Rationale: Paging overhead is a cost of virtual memory, not a
benefit.


4. Consider a UNIX system implementing demand paging. What
could cause a process to experience thrashing?


a) Having more frames than needed
b) Frequent page faults due to insufficient frames
c) High CPU burst times
d) Context switching
ANS: b) Frequent page faults due to insufficient frames
Rationale: Thrashing occurs when frequent page faults cause
excessive swapping.


5. Which synchronization primitive is most suitable to prevent
race conditions when several threads update a shared counter?


a) Barrier
b) Mutex
c) Condition Variable
d) Spinlock
ANS: b) Mutex
©2025

, Rationale: Mutexes ensure mutual exclusion for critical sections.


6. What is the primary purpose of the 'inode' structure in UNIX
file systems?


a) Storing the file's content
b) Storing metadata about a file, including pointers to its data
blocks
c) Allocating disk sectors on demand
d) Managing network file sharing
ANS: b) Storing metadata about a file, including pointers to its
data blocks
Rationale: Inodes contain file metadata and pointers, but not the
file content itself.


7. Which of the following best explains the role of the OS in
deadlock detection?


a) It uses the Banker's algorithm to allocate resources safely.
b) It ignores deadlocks, leaving them to be resolved by users.
c) It preempts resources whenever possible.
d) It periodically checks the resource allocation graph for cycles.
©2025

Document information

Uploaded on
May 3, 2025
Number of pages
38
Written in
2024/2025
Type
Exam (elaborations)
Contains
Unknown
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
EmilioOchieng
4.1
(24)
Sold
148
Followers
17
Items
4032
Last sold
3 months ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions