Operating systems MCQ questions set 5 for competitive exams with answers explained


Operating systems MCQ Set - 5


1. Which of the following C library functions do NOT directly correspond to (similarly named) system calls? That is, the implementations of which of these C library functions are NOT straightforward invocations of the underlying system call?
a. system()
b. fork()
c. exit()
d. strlen()

Click here to view answer and explanation


2. Which of the following are all system calls?
a. chmod(), chdir(), read(), main()
b. waitpid(), smdir(), mount(), open()
c. fork(), exit(), lseek(), kill()

Click here to view answer and explanation


3. A round robin scheduler:
a. favors processes that are expected to have a short CPU burst.
b. favors high priority processes.
c. dynamically adjusts the priority of processes based on their past CPU usage.
d. gives each process an equal share of the CPU.

Click here to view answer and explanation


4. A shortest remaining time first scheduler:
a. dynamically adjusts the quantum based on the process.
b. tries to optimize mean response time for processes.
c. gives each process an equal share of the CPU.
d. favors processes that use the CPU for long stretches of time.

Click here to view answer and explanation


5. Process aging:
a. helps estimate the length of the next compute period.
b. increases the runtime of a process.
c. improves the chances of a process getting scheduled to run.
d. is a count of the total CPU time used by the process and is stored in the PCB.

Click here to view answer and explanation



********