OS Quiz Basic _ Quizizz

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Worksheets Name

OS-Quiz-Basic
Class
Total questions: 13
Worksheet time: 7mins
Date
Instructor name: OS MCQ's

1. Which of the following is responsible for allocating the CPU to processes in a preemptive scheduling technique?

a) The hardware components b) CPU Scheduler

c) The process itself d) The user interface

2. In preemptive scheduling, which of the following is the most significant factor for determining when a
process should be preempted?

a) Process execution time b) Process priority

c) I/O wait time d) Memory usage

3. What happens to the parent process when a child process terminates in a Unix-based system?

a) The parent process is notified via a SIGCHLD signal b) The parent process is unaffected and continues
and can retrieve the child's exit status. running without any notification.

c) The parent process is terminated immediately. d) The parent process waits indefinitely for the child
process.

4. In preemptive scheduling, a process can be forcibly removed from the CPU under which condition?

a) If its priority is lower than another process b) If it requests I/O operation

c) If it exceeds its time quantum d) All of the above

5. Which type of operating system allows multiple users to access a single system simultaneously

a) Embedded operating system b) Real-time operating system

c) Single-user operating system d) Multi-user operating system

6. Which of the following types of operating systems provides the best environment for running mission-critical
applications with stringent timing requirements?

a) Distributed operating system b) Single-user operating system

c) Batch processing operating system d) Real-time operating system (RTOS)


7. What is the primary advantage of using a Distributed Operating System (DOS)?

a) Simple user interface b) Improved resource sharing and performance across


multiple machines.

c) None of the Above d) Limited access to hardware resources.

8. What type of operating system is most commonly used in a washing machine?

a) Distributed operating system b) Network operating system

c) Batch processing operating system d) Real-time operating system (RTOS)

9. In which of the following devices would you typically find an Embedded Operating System?

a) Smart appliances and consumer electronics like b) Desktop computers


microoven

c) Gaming consoles d) Smartphones

10. In deadlock prevention, which condition ensures that a process cannot hold onto a resource while waiting for
another resource?

a) Resource Preemption b) No Hold and Wait

c) Circular Wait d) Hold and Wait

11. Which of the following statements about semaphores is true?

a) Semaphores do not control access to shared b) Semaphores can be binary or counting.


resources.

c) Semaphores can only be binary. d) Semaphores are used exclusively for file handling.

12. Which of the following statements about semaphores is true?

a) Semaphores guarantee mutual exclusion b) A process can access critical sections without
automatically waiting for a semaphore signal

c) A counting semaphore can take only binary values d) A semaphore is used to solve both synchronization
(0 or 1) and mutual exclusion problems

13. Which of the following concepts is used in monitors to enable synchronization between threads?

a) Counting Semaphores b) Priority Scheduling

c) Conditional Variables d) Conditional Wait


Answer Keys

1. b) CPU Scheduler 2. b) Process priority 3. a) The parent process is notified


via a SIGCHLD signal and can
retrieve the child's exit status.

4. d) All of the above 5. d) Multi-user operating system 6. d) Real-time operating system


(RTOS)

7. b) Improved resource sharing 8. d) Real-time operating system 9. a) Smart appliances and


and performance across (RTOS) consumer electronics like
multiple machines. microoven

10. b) No Hold and Wait 11. b) Semaphores can be binary 12. d) A semaphore is used to
or counting. solve both synchronization
and mutual exclusion
problems

13. c) Conditional Variables

You might also like