Subject / 929 questions

Programming MCQs

Page 18 of Programming multiple-choice questions with answers. Tap an option to check yourself.

Page 18 of 47

Question 341 Operating Systems

Why is double buffering used in I/O?

Correct answer D. So a device can fill one buffer while the process empties the other, overlapping I/O with processing

Open question
Advertisement
Question 347 Operating Systems

What is the relationship between a safe state and deadlock?

Correct answer A. A safe state is never deadlocked, but an unsafe state may lead to deadlock without being one yet

Open question
Advertisement
Advertisement
Question 356 Operating Systems

What is the purpose of a translation look-aside buffer (TLB)?

Correct answer A. To cache recent page-number to frame-number translations so most lookups avoid an extra memory access

Open question
Question 359 Operating Systems

In segmentation, what happens if the offset in a logical address is greater than or equal to the segment’s limit?

Correct answer C. The hardware traps to the operating system with an addressing error

Open question
Question 360 Operating Systems

What does demand paging do when a process starts running?

Correct answer D. It loads a page into memory only when that page is first referenced

Open question