100% found this document useful (1 vote)
83 views5 pages

Ch2 Questions DrShrouk Answers

Uploaded by

sherifhany81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
83 views5 pages

Ch2 Questions DrShrouk Answers

Uploaded by

sherifhany81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

1) Which of the following describes the primary role of device drivers in an

operating system?

A. They provide a high-level API for hardware communication.

B. They translate system calls into machine code.

C. They enable the operating system to interact directly with hardware devices.

D. They execute application programs directly on the CPU.

2) Which of the following statements best describes the purpose of the shell in an
operating system?

A. It provides a graphical user interface for applications.

B. It offers a command-line interface for user interaction.

C. It manages memory allocation for system processes.

D. It is responsible for file management.

3) System programs that act as intermediaries between users and hardware


components are known as:

A. Interpreters

B. Device drivers

C. Compilers

D. API libraries

4) The primary disadvantage of a microkernel system structure is:

A. Increased risk of system crashes

B. Larger codebase leading to memory bloat

C. Decreased efficiency due to frequent communication between components

D. Lack of support for modularity

5) Which system program allows users to view and edit files in an operating
system?

A. Device manager
B. Text editor

C. File system manager

D. API

6) In an operating system with a modular kernel, modules are:

A. Integrated into the kernel at compile time only

B. Loaded into the kernel dynamically at runtime

C. Separate user applications running outside the kernel

D. Assigned fixed memory locations

7) Which of the following best describes a system daemon?

A. A background process that handles system-level tasks

B. A user application that interfaces directly with hardware

C. A component of the file management system

D. A command-line utility for user interaction

8) The command interpreter, or shell, is responsible for:

A. Interfacing directly with the hardware

B. Managing memory resources in the OS

C. Translating and executing user commands

D. Allocating CPU time to applications

9) A benefit of modular kernel design in operating systems is that it allows:

A. Fast boot times

B. Reduced kernel size by loading only necessary modules

C. Direct access to all system resources by user applications

D. Faster execution of application programs

10) What is the primary purpose of the API (Application Programming Interface) in
the context of operating systems?
A. To provide direct access to hardware

B. To give user programs the ability to request OS services in a standardized way

C. To manage low-level kernel tasks

D. To optimize CPU scheduling

11) In a modular kernel, the term “loadable kernel module” refers to:

A. A kernel component that cannot be removed once loaded

B. A component that can be loaded and unloaded as needed

C. A command-line utility

D. A memory segment reserved for files

12) In the context of an operating system, which of the following best describes a
“trap”?

A. A software-generated interrupt that is handled by the operating system

B. A hardware error that forces the system to shut down

C. A method of switching from kernel mode to user mode

D. A network error that prevents resource sharing

13) What is the main advantage of the command-line interface (CLI) over a
graphical user interface (GUI) for experienced users?

A. Easier learning curve

B. Faster, more direct access to system functionality

C. Improved multitasking capabilities

D. Better support for multimedia applications

14) Which type of system call is responsible for creating, terminating, and
synchronizing processes?

A. File management

B. Device management
C. Process control

D. Information maintenance

15) A key reason for using system calls in an operating system is to:

A. Provide low-level debugging tools

B. Allow user programs to request OS services safely

C. Enable programs to access hardware directly

D. Improve the system’s graphical capabilities

16) What is the purpose of the kernel mode and user mode in an operating system?

A. To distinguish between system and application programs

B. To protect critical system resources from unauthorized access by applications

C. To manage multi-threading

D. To optimize memory usage for the OS

17) The function of the wait system call in process management is to:

(a) Pause the process until resources are available

(b) Allow a process to sleep for a specified time

(c) Suspend the execution of a parent process until a child process has terminated

(d) Swap a process out of memory

18) Which of the following system calls is used to create a new process in most
operating systems?

(a) open

(b) exec

(c) fork

(d) read

19) The mechanism that allows a user to interact with an operating system via
textual commands is called:
(a) GUI (Graphical User Interface)

(b) CLI (Command-Line Interface)

(c) File system interface 1. Process control


2. file manipulation
3. device manipulation
(d) Kernel interface 4. information maintanance
5. communications
6. protection

1. Simple
20) What are the system call types? 2. Layered
21) List the main types of operating system structures. 3. Microkernels
4. Modules
5. hybrid

1) policies determine how to do something.(T or F)


2) A process is an instance of a program in execution. .(T or F)
3) A monolithic kernel divides the operating system into several small, independent
modules. .(T or F)
4) In a layered operating system architecture, each layer directly interacts with the
hardware layer. .(T or F)

1. Mechanisms determine how to do something;


policies determine what will be done.

3. Modular kernel not monolithic (simple)

4. each layer interacts only with the layer directly above or below it

You might also like