Timedora
Free Practice Quiz Question List

OS Processes Online Quiz Questions

Use this free practice quiz with 20 questions to review OS Processes, test your knowledge, and prepare for your next test or exam.

20 questions
01
Choose one
1 point

In RISC-V, how can the kernel safely transition from kernel space to user space?

  1. A

    The user process raises its own privilege level and then runs kernel code.

  2. B

    The kernel instructs the CPU to lower privilege before jumping to user code.

  3. C

    The CPU switches to user mode only after an interrupt from a peripheral.

  4. D

    The kernel copies its instructions into the user process’s stack.

02
Choose all
1 point

Select all statements that accurately describe traps as defined here.

  1. A

    A trap can be triggered by executing an instruction in user space.

  2. B

    A trap can be used to request a kernel-only service, such as writing to a file.

  3. C

    A trap is triggered by an external event, such as input arriving from a peripheral.

  4. D

    A trap can cause the kernel to handle an error in a user process, such as an illegal instruction.

  5. E

    A trap is a transition from kernel space to user space.

03
True or false
1 point

Kernel-space code can access any process’s memory, while a user process should have access only to its own memory and must request the kernel to perform operations such as I/O.

  1. A

    True

  2. B

    False

04
Written response
1 point

What is the name of the data structure the kernel uses for each process in its process list?

05
Fill in the blank
1 point

A scheduler balances fairness, turnaround time, and —giving processes a chance to react quickly to relevant outside events.

06
Open ended
1 point

Compare cooperative and preemptive multitasking. Explain how yield lets the kernel regain control in a cooperative system, how hardware interrupts do so in a preemptive system, and one limitation of relying on yield.

07
Choose one
1 point

Assuming a single CPU core, which description best explains how time multiplexing shares execution among processes while preserving the illusion of continuous execution?

  1. A

    It executes instructions from every process simultaneously and assigns each process separate physical registers.

  2. B

    It runs each process to completion before starting another, so no switching is necessary.

  3. C

    It runs one process at a time, periodically switches the active process, and saves and restores the program counter to help preserve the illusion of continuous execution.

  4. D

    It gives each process unrestricted access to the kernel’s memory so the processes can take turns.

08
True or false
1 point

An executable is an inert file, but running the same executable more than once can create concurrent processes that share instructions and constant data while having separate heaps and stacks.

  1. A

    True

  2. B

    False

09
Written response
1 point

After restoring a process’s saved register values during a context switch, which register identifies the instruction where execution resumes?

10
Fill in the blank
1 point

In RISC-V, the kernel runs in , while user-space processes run in the less-privileged .

11
Choose one
1 point

How does the kernel safely transition from kernel space to user space in the described RISC-V model?

  1. A

    The kernel runs user code at supervisor privilege and relies on the program not to use privileged instructions.

  2. B

    The kernel explicitly lowers privilege before jumping to user code; in RISC-V, it can use a privileged control status register or sret.

  3. C

    A user process executes ecall to lower the CPU's privilege before the kernel jumps to user code.

  4. D

    The CPU switches to user mode only after a timer interrupt occurs.

12
True or false
1 point

In the definitions used here, a trap is triggered by instruction execution, while an interrupt responds to a non-instruction signal.

  1. A

    True

  2. B

    False

13
Written response
1 point

What is the term for sharing a single CPU core by running one process at a time and periodically switching which process is active?

14
Choose one
1 point

What best describes the role of a process control block (PCB)?

  1. A

    It contains only the process's executable path and launching user.

  2. B

    It stores the instructions and constant data shared by every process created from the same executable.

  3. C

    It stores information needed to run and manage the process, including identifying information, saved registers, and scheduling status.

  4. D

    It contains only the current process's stack and heap.

15
True or false
1 point

A user-space process has unrestricted access to all computer memory and can perform I/O without asking the kernel.

  1. A

    True

  2. B

    False

16
Written response
1 point

Which scheduling objective means giving processes a chance to react quickly when events such as mouse movement or a network packet arrival occur?

17
Choose one
1 point

Which statement correctly defines a trap in the terminology used here?

  1. A

    A trap is a transition from user space to kernel space triggered by executing an instruction.

  2. B

    A trap is a transition triggered only by an external I/O event.

  3. C

    A trap is a switch from one ready process to another without entering kernel space.

  4. D

    A trap is a transition from kernel space to user space that raises privilege.

18
Choose one
1 point

Which statement correctly distinguishes an executable from a process?

  1. A

    An executable is a running instance of a program, while a process is the inert file stored on disk.

  2. B

    Running an executable repeatedly creates processes that share the same heap and stack.

  3. C

    A process is a file that can be copied or attached to an email, while an executable exists only during program execution.

  4. D

    An executable is an inert file; running it creates a process, and separate processes can share instructions while having different heaps and stacks.

19
Choose one
1 point

Which set lists the three competing objectives that a process scheduling policy must balance?

  1. A

    Fairness, turnaround time, and responsiveness

  2. B

    Memory protection, file size, and CPU clock speed

  3. C

    Instruction count, disk capacity, and process age

  4. D

    Kernel access, user access, and network bandwidth

20
Choose one
1 point

At the start of a context switch, what does the OS do to the currently running process?

  1. A

    Restore the selected process’s registers, then save its current state in the PCB.

  2. B

    Change the current process to terminated, then select a blocked process.

  3. C

    Save the current process’s registers, including the program counter, in its PCB, then change its status from running to ready.

  4. D

    Select another process and resume it without restoring its saved register values.