Subject / 929 questions

Programming MCQs

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

Page 17 of 47

Advertisement
Question 324 Operating Systems

What is thrashing?

Correct answer C. A process spends more time paging pages in and out than executing, because it lacks enough frames

Open question
Question 325 Operating Systems

Why does the page-replacement code check the modify (dirty) bit of a victim page?

Correct answer B. A page that has not been modified need not be written back to disk before its frame is reused

Open question
Question 326 Operating Systems

After fork() on Linux, how are the parent’s memory pages normally handled?

Correct answer A. They are shared copy-on-write, so a page is copied only when either process writes to it

Open question
Advertisement
Question 331 Operating Systems

How does a hard link differ from a symbolic link in Linux?

Correct answer C. A hard link is another directory entry for the same inode, while a symbolic link is a separate file containing a path

Open question
Advertisement
Question 338 Operating Systems

What is the main drawback of SSTF disk scheduling?

Correct answer A. Requests far from the current head position can starve

Open question
Question 339 Operating Systems

What is the main benefit of direct memory access (DMA)?

Correct answer A. A device controller moves whole blocks of data to or from memory without the CPU handling each byte

Open question