Subject / 929 questions

Programming MCQs

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

Page 21 of 47

Advertisement
Question 404 Operating Systems

What does a successful call to execve() do to the calling process?

Correct answer C. Replaces the process's program image with a new program while keeping the same process ID

Open question
Question 406 Operating Systems

What is a major drawback of user-level threads managed entirely by a library under the many-to-one model?

Correct answer C. If one thread makes a blocking system call, the whole process blocks

Open question
Question 408 Operating Systems

In a batch operating system, how are jobs typically handled?

Correct answer A. Similar jobs are grouped and run one after another without user interaction

Open question
Advertisement
Question 411 Operating Systems

Which statement best describes a distributed operating system?

Correct answer C. It manages a collection of networked computers so that users see them as a single system

Open question
Question 412 Operating Systems

What is the purpose of the mode bit provided by CPU hardware?

Correct answer B. It indicates whether the CPU is executing in kernel mode or user mode

Open question
Question 413 Operating Systems

What happens if a user-mode program tries to execute a privileged instruction such as disabling interrupts?

Correct answer C. The hardware traps to the operating system instead of executing it

Open question
Advertisement
Question 416 C#

What does the yield return statement do in a C# method?

Correct answer C. It returns one element of an iterator and resumes from that point on the next request

Open question