1. Home
  2. Explore
  3. Computer Science
  4. Operating System Components

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Operating System Components

  • 54Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: OS Spaces and Interfaces

Which description best distinguishes user space from the kernel?

54 questions

  1. 1

    Which description best distinguishes user space from the kernel?

    1. A

      The kernel provides the graphical interface, while user space controls devices

    2. B

      User space runs applications, while the kernel manages access to hardware

    3. C

      User space manages hardware directly, while the kernel runs desktop applications

    4. D

      Both spaces run applications, but only user space manages memory

    Correct answer
    B

    User space runs applications, while the kernel manages access to hardware

    Explanation

    Applications run in user space, which does not directly access hardware. The kernel has hardware access and mediates hardware-related work.

  2. 2

    What is the relationship between user space and the kernel in the described OS architecture?

    1. A

      The kernel and user space are two names for the same operating-system component

    2. B

      User space and hardware together form the operating system

    3. C

      User space and the kernel together form the operating system

    4. D

      The kernel is outside the operating system and only supports applications

    Correct answer
    C

    User space and the kernel together form the operating system

    Explanation

    The operating system is described as having two main components: user space and the kernel.

  3. 3

    Why must an application request the kernel to perform a hardware-related task?

    1. A

      Applications in user space do not have direct access to hardware

    2. B

      Applications can access hardware only when a graphical interface is open

    3. C

      The kernel prevents applications from using memory or CPU resources

    4. D

      Applications run only after the kernel has been shut down

    Correct answer
    A

    Applications in user space do not have direct access to hardware

    Explanation

    User space lacks direct hardware access, so an application must ask the kernel to carry out hardware-related work.

  4. 4

    Which option correctly matches an interface with an example?

    1. A

      GUI — a terminal in which a user types commands

    2. B

      GUI — a desktop with icons that a user selects with a mouse

    3. C

      CLI — a graphical start menu with clickable applications

    4. D

      CLI — a desktop with icons that a user selects with a mouse

    Correct answer
    B

    GUI — a desktop with icons that a user selects with a mouse

    Explanation

    A graphical user interface (GUI) lets users interact with items such as desktop icons and menus. A terminal is an example of a command-line interface (CLI).

  5. 5

    What does CLI stand for?

    1. A

      Command-line interface

    2. B

      Command-level interaction

    3. C

      Computer link integration

    4. D

      Centralized logic instruction

    Correct answer
    A

    Command-line interface

    Explanation

    CLI stands for command-line interface, where users enter commands for the system to execute.

  6. 6

    Which statement best compares GUI and CLI?

    1. A

      A GUI can create folders, but a CLI cannot manage files or directories

    2. B

      Both can perform tasks such as creating a folder, but they use different interaction methods

    3. C

      GUI and CLI are both hardware components that applications must access directly

    4. D

      A CLI can create folders, but a GUI cannot perform file-management tasks

    Correct answer
    B

    Both can perform tasks such as creating a folder, but they use different interaction methods

    Explanation

    The content explains that a folder can be created through a GUI button or by entering a command in a CLI.

  7. 7

    What does the shell do in the described system?

    1. A

      It allocates physical RAM without involving the kernel

    2. B

      It gives user applications direct access to hardware

    3. C

      It receives commands from users and gets them executed

    4. D

      It stores all files in a hierarchical disk structure

    Correct answer
    C

    It receives commands from users and gets them executed

    Explanation

    The shell is described as an implementation of the CLI that receives user commands and gets them executed.

  8. 8

    A user enters mkdir in a Linux command line. What is the command intended to do?

    1. A

      Create a new directory

    2. B

      Display the current directory as a graphical window

    3. C

      Send a message directly to a USB device

    4. D

      Allocate additional RAM to the terminal

    Correct answer
    A

    Create a new directory

    Explanation

    The content uses mkdir as the CLI command for creating a new directory.

  9. 9

    When a GUI folder-creation button is used, what does the example say happens internally?

    1. A

      The GUI converts the folder into a running process

    2. B

      The GUI transfers the task to the CPU without kernel involvement

    3. C

      The GUI action invokes directory-creation work handled through the system

    4. D

      The GUI bypasses the operating system and writes directly to disk hardware

    Correct answer
    C

    The GUI action invokes directory-creation work handled through the system

    Explanation

    The example says the GUI's new-folder action internally invokes the directory-creation function handled by file management.

  10. 10

    In the Hello World shell-script example, what role does the kernel play after the user runs the script?

    1. A

      It changes the script into a USB device

    2. B

      It requests CPU computation so the requested output can be produced

    3. C

      It gives the script direct control of the CPU hardware

    4. D

      It displays the desktop icons needed to launch the script

    Correct answer
    B

    It requests CPU computation so the requested output can be produced

    Explanation

    The example describes the user-space request going to the kernel, which requests CPU cycles for the computation that produces the output.

  11. 11

    Which set contains the four principal kernel functions listed in the content?

    1. A

      User authentication, graphics design, web browsing, and command editing

    2. B

      Application design, desktop rendering, networking, and compiler construction

    3. C

      Process management, memory management, file management, and I/O management

    4. D

      CPU manufacturing, RAM installation, disk repair, and device construction

    Correct answer
    C

    Process management, memory management, file management, and I/O management

    Explanation

    The four functions listed are process management, memory management, file management, and I/O management.

  12. 12

    Which activities are identified as part of process management?

    1. A

      Creating and deleting directory trees only

    2. B

      Creating and terminating processes

    3. C

      Detecting plugged-in devices and presenting them in a GUI

    4. D

      Storing data temporarily between print jobs

    Correct answer
    B

    Creating and terminating processes

    Explanation

    The content identifies process creation and termination as parts of process management.

  13. 13

    What is the purpose of process and thread scheduling?

    1. A

      To detect when a removable device has been plugged in

    2. B

      To arrange files into a hierarchical directory tree

    3. C

      To decide how processes and threads are executed while seeking effective resource use

    4. D

      To translate every GUI button into a shell script

    Correct answer
    C

    To decide how processes and threads are executed while seeking effective resource use

    Explanation

    Scheduling determines how processes and threads are executed; the content connects it with resource utilization and priority.

  14. 14

    Which scheduling concern is explicitly mentioned alongside high priority?

    1. A

      Avoiding process starvation

    2. B

      Preventing all user-space applications from running

    3. C

      Increasing the number of directory levels

    4. D

      Ensuring that every process accesses hardware directly

    Correct answer
    A

    Avoiding process starvation

    Explanation

    The content says scheduling should account for high-priority work while avoiding process starvation.

  15. 15

    What does context switching involve in the kernel-function overview?

    1. A

      Changing a file's name whenever a process is terminated

    2. B

      Moving a directory from the disk into the GUI

    3. C

      Switching the system's execution between processes or modes as needed

    4. D

      Converting a CLI command into a hardware interrupt

    Correct answer
    C

    Switching the system's execution between processes or modes as needed

    Explanation

    Context switching is listed among kernel responsibilities and is described in connection with changing between execution contexts.

  16. 16

    Why might two processes need kernel-supported communication?

    1. A

      Processes can be isolated and still need to exchange information

    2. B

      Processes communicate only by directly controlling hardware

    3. C

      Only user-space processes can communicate, so kernel services are unnecessary

    4. D

      Processes always share the same memory and therefore never need to communicate

    Correct answer
    A

    Processes can be isolated and still need to exchange information

    Explanation

    The content describes processes as isolated and independently executed, yet notes that they sometimes need to communicate.

  17. 17

    What is a central responsibility of memory management?

    1. A

      Tracking allocated and free memory and handling allocation or deallocation

    2. B

      Interpreting every command typed into a terminal

    3. C

      Creating software interrupts for every user action

    4. D

      Deciding which GUI icons appear on the desktop

    Correct answer
    A

    Tracking allocated and free memory and handling allocation or deallocation

    Explanation

    Memory management handles memory allocation and deallocation and keeps track of vacant areas for new work.

  18. 18

    A process has finished using a region of RAM. Which kernel function is responsible for accounting for that newly free region?

    1. A

      File management

    2. B

      Process scheduling

    3. C

      Memory management

    4. D

      I/O management

    Correct answer
    C

    Memory management

    Explanation

    The content says memory management tracks free areas of RAM after memory is no longer in use.

  19. 19

    What is the role of file management in the described operating system?

    1. A

      Allocating CPU computation cycles to applications

    2. B

      Scheduling processes according to priority

    3. C

      Creating and deleting files and maintaining directory organization

    4. D

      Controlling the user's mouse and desktop icons

    Correct answer
    C

    Creating and deleting files and maintaining directory organization

    Explanation

    File management is described as creating and deleting files and maintaining the directory structure.

  20. 20

    Why is a hierarchical directory structure useful for organizing files?

    1. A

      It gives every file direct access to the CPU without an operating system

    2. B

      It ensures that all files occupy the same memory region

    3. C

      It arranges directories and files in nested levels that can be navigated to locate items

    4. D

      It replaces the need for any file-management function

    Correct answer
    C

    It arranges directories and files in nested levels that can be navigated to locate items

    Explanation

    The content describes directories as a tree-like hierarchy, which makes it manageable to navigate through levels to find a file.

  21. 21

    What is the kernel's I/O management responsible for in the device examples?

    1. A

      Managing input/output operations and devices such as USB drives

    2. B

      Deciding which user-space graphical theme is displayed

    3. C

      Maintaining only the names of files in a directory tree

    4. D

      Creating and terminating processes that use the devices

    Correct answer
    A

    Managing input/output operations and devices such as USB drives

    Explanation

    I/O management operates and controls I/O operations and devices, including detecting and providing access to a plugged-in pen drive.

  22. 22

    After a user plugs in a pen drive, which sequence best matches the described process?

    1. A

      The file system creates a process, and the CPU physically inserts the drive

    2. B

      User space detects it through direct hardware access, then shuts down the kernel

    3. C

      The kernel detects it, communicates device information to user space, and enables access

    4. D

      The GUI accesses the device directly, without any kernel involvement

    Correct answer
    C

    The kernel detects it, communicates device information to user space, and enables access

    Explanation

    The kernel detects the connected device and passes information to user space, where access can be made available through the interface.

  23. 23

    Which set names the three I/O-related techniques singled out in the content?

    1. A

      Scheduling, synchronization, and termination

    2. B

      GUI, CLI, and shell execution

    3. C

      Spooling, buffering, and caching

    4. D

      Allocation, deallocation, and directory traversal

    Correct answer
    C

    Spooling, buffering, and caching

    Explanation

    The content identifies spooling, buffering, and caching as important I/O-management activities.

  24. 24

    A printer receives ten print jobs faster than it can print them. Which technique does the example associate with storing the jobs for later processing?

    1. A

      Buffering

    2. B

      Spooling

    3. C

      Caching

    4. D

      Context switching

    Correct answer
    B

    Spooling

    Explanation

    The example says print jobs are spooled in an area because jobs arrive faster than the printer can process them.

  25. 25

    How does the content distinguish buffering from spooling?

    1. A

      Buffering holds data for near-term use within a job or process, while spooling queues work between jobs or devices

    2. B

      Buffering detects hardware devices, while spooling creates software interrupts

    3. C

      Buffering schedules CPU processes, while spooling switches between user and kernel modes

    4. D

      Buffering arranges files into directories, while spooling allocates RAM to processes

    Correct answer
    A

    Buffering holds data for near-term use within a job or process, while spooling queues work between jobs or devices

    Explanation

    The notes describe buffering as holding data for use soon within a job or process, and spooling as staging work such as multiple print jobs for a slower device.

  26. 26

    Which example is given for buffering?

    1. A

      Arranging a folder and its subfolders as a tree

    2. B

      Holding data used shortly afterward during a job, as in the YouTube example

    3. C

      Using a command to create a new directory

    4. D

      Queueing ten printer jobs in an area while the printer works more slowly

    Correct answer
    B

    Holding data used shortly afterward during a job, as in the YouTube example

    Explanation

    The content briefly associates buffering with data needed soon within a job or process and gives YouTube as an example.

  27. 27

    Which statement about caching is supported by the content?

    1. A

      Caching is defined as the method for creating directories

    2. B

      Caching is presented as a type of kernel architecture

    3. C

      Caching is named as one of the I/O-management activities

    4. D

      Caching is the mechanism that switches the CPU into user mode

    Correct answer
    C

    Caching is named as one of the I/O-management activities

    Explanation

    The content lists caching among I/O-management activities but does not provide a more detailed definition in this material.

  28. 28

    What is the kernel according to the content?

    1. A

      The central, hardware-accessing part of the operating system

    2. B

      A directory structure stored outside the operating system

    3. C

      A command-line program that runs without operating-system support

    4. D

      The graphical area where users click application icons

    Correct answer
    A

    The central, hardware-accessing part of the operating system

    Explanation

    The kernel is described as the heart of the OS and the component that directly interacts with hardware.

  29. 29

    Which component is said to be the first part of the operating system to start during startup?

    1. A

      The shell script

    2. B

      The desktop GUI

    3. C

      The kernel

    4. D

      The file directory tree

    Correct answer
    C

    The kernel

    Explanation

    The notes state that the kernel is the first operating-system component to load at startup.

  30. 30

    What distinguishes kernel mode from user mode in the description?

    1. A

      Kernel mode is used only for file names, while user mode is used only for memory allocation

    2. B

      User mode has greater hardware access, while kernel mode runs only desktop applications

    3. C

      Kernel mode has greater hardware access, while user mode is where user-level work runs

    4. D

      There is no distinction; both modes have identical access and responsibilities

    Correct answer
    C

    Kernel mode has greater hardware access, while user mode is where user-level work runs

    Explanation

    The content says the kernel mode has more hardware access and separates it from user-mode work.

  31. 31

    What is an interrupt used for in the operating-system examples?

    1. A

      Arranging files into a hierarchical structure

    2. B

      Making all isolated processes share the same memory

    3. C

      Notifying the OS that it should respond to an event or condition

    4. D

      Giving a GUI direct access to hardware

    Correct answer
    C

    Notifying the OS that it should respond to an event or condition

    Explanation

    An interrupt is described as a way to notify the operating system about a condition or event that may require attention during execution.

  32. 32

    Which event is the example of a hardware interrupt?

    1. A

      A user clicks a new-folder button in a graphical interface

    2. B

      A hardware component such as RAM signals a problem to the operating system

    3. C

      A user types mkdir and presses Enter

    4. D

      Two processes exchange data through shared memory

    Correct answer
    B

    A hardware component such as RAM signals a problem to the operating system

    Explanation

    The content gives a failing RAM component sending a signal to the OS as an example of a hardware interrupt.

  33. 33

    What is a software interrupt in the material's explanation?

    1. A

      An interrupt generated by software or the operating system rather than by hardware

    2. B

      A signal that makes every application run in kernel mode permanently

    3. C

      A type of memory area shared by two isolated processes

    4. D

      An interrupt generated only when a physical device is unplugged

    Correct answer
    A

    An interrupt generated by software or the operating system rather than by hardware

    Explanation

    A software interrupt is distinguished from a hardware interrupt as one generated by software rather than hardware.

  34. 34

    In the mkdir example, why does executing the command require a switch from user mode to kernel mode?

    1. A

      Creating a directory is performed exclusively by the CPU's graphical interface

    2. B

      The shell must move all applications into kernel mode permanently

    3. C

      Creating a directory requires kernel file-management work

    4. D

      The command must give the user direct hardware access

    Correct answer
    C

    Creating a directory requires kernel file-management work

    Explanation

    The command begins as user-level input, but directory creation is file-management work handled by the kernel, so the request is serviced in kernel mode.

  35. 35

    After kernel work for a user request is completed, what happens in the described mode-switching example?

    1. A

      Execution returns to user mode so the user-level work can continue

    2. B

      The system remains in kernel mode and forbids user applications from running

    3. C

      The kernel is deleted and reloaded from the directory tree

    4. D

      The hardware becomes part of user space

    Correct answer
    A

    Execution returns to user mode so the user-level work can continue

    Explanation

    The example describes a request moving into kernel mode for kernel work and then returning to user mode when that work is complete.

  36. 36

    What does IPC stand for?

    1. A

      Internal process control

    2. B

      Input processing channel

    3. C

      Interprocess communication

    4. D

      Integrated program command

    Correct answer
    C

    Interprocess communication

    Explanation

    IPC stands for interprocess communication, the means by which processes exchange information.

  37. 37

    Why might IPC be needed between processes that are described as isolated?

    1. A

      Processes that are isolated cannot run at the same time

    2. B

      Isolation means they have separate resources, but some tasks still require them to exchange information

    3. C

      Isolation automatically gives them direct access to each other's memory

    4. D

      IPC is needed only to connect the computer to physical devices

    Correct answer
    B

    Isolation means they have separate resources, but some tasks still require them to exchange information

    Explanation

    The content describes isolated processes as having separate resources while noting that they may still need to communicate.

  38. 38

    How does the shared-memory method of IPC work in the example?

    1. A

      One process sends a hardware interrupt that permanently stops the other

    2. B

      The kernel copies the processes into the same user interface

    3. C

      The processes exchange data by creating separate directory trees

    4. D

      One process writes data into a shared memory area for another process to read

    Correct answer
    D

    One process writes data into a shared memory area for another process to read

    Explanation

    In shared memory, one process writes information into a memory area and the other process reads it from that area.

  39. 39

    How does message passing differ from shared memory in the content?

    1. A

      Processes communicate only by taking turns using a printer

    2. B

      Processes communicate through an OS-provided channel or method rather than by reading a shared memory area

    3. C

      Processes communicate by disabling kernel-mode access

    4. D

      Processes communicate by putting all their files into one directory

    Correct answer
    B

    Processes communicate through an OS-provided channel or method rather than by reading a shared memory area

    Explanation

    Message passing uses an OS-provided method or channel to pass information, while shared memory uses a shared area that processes read and write.

  40. 40

    Which two IPC methods are explicitly identified?

    1. A

      Scheduling and context switching

    2. B

      Shared memory and message passing

    3. C

      Spooling and directory management

    4. D

      Buffering and caching

    Correct answer
    B

    Shared memory and message passing

    Explanation

    The content identifies shared memory and message passing as the two IPC methods discussed.

  41. 41

    What defines a monolithic kernel in the described comparison?

    1. A

      Only memory and process management are placed in the kernel

    2. B

      The kernel contains only a message-passing channel

    3. C

      All four major management functions are placed in the kernel

    4. D

      All management functions are placed in user space

    Correct answer
    C

    All four major management functions are placed in the kernel

    Explanation

    The content describes a monolithic kernel as placing process, memory, file, and I/O management in the kernel.

  42. 42

    Why can communication between components be efficient in a monolithic kernel?

    1. A

      Each function is isolated in a separate physical device

    2. B

      The major functions are centralized together in the kernel

    3. C

      The system eliminates all process and memory management

    4. D

      All functions run in user space and bypass operating-system services

    Correct answer
    B

    The major functions are centralized together in the kernel

    Explanation

    Because the management functions are together in the kernel, communication among them is described as efficient.

  43. 43

    Which drawback is associated with a monolithic kernel?

    1. A

      A component failure can affect the whole interconnected kernel

    2. B

      It has no access to hardware

    3. C

      It must switch to user space for every internal kernel function

    4. D

      It cannot manage files or I/O devices

    Correct answer
    A

    A component failure can affect the whole interconnected kernel

    Explanation

    The content says a monolithic kernel is bulky and less reliable because a failure in one interconnected component can stop the whole kernel.

  44. 44

    Which set of examples is associated with monolithic kernels in the content?

    1. A

      Linux, Unix, and MS-DOS

    2. B

      L4, Symbian, and MINIX

    3. C

      Mac OS and Windows NT

    4. D

      Windows PowerShell and Linux shell

    Correct answer
    A

    Linux, Unix, and MS-DOS

    Explanation

    Linux, Unix, and MS-DOS are given as examples of monolithic kernels.

  45. 45

    What is the defining organization of a microkernel in the described model?

    1. A

      All operating-system functions are placed in hardware

    2. B

      Core functions remain in the kernel, while other functions are placed in user space

    3. C

      All operating-system functions are placed inside the kernel

    4. D

      Only file management remains in the kernel, while core functions move to user space

    Correct answer
    B

    Core functions remain in the kernel, while other functions are placed in user space

    Explanation

    The content describes a microkernel as keeping major core functions in the kernel and placing other functions in user space.

  46. 46

    Which functions does the described microkernel example keep in the kernel?

    1. A

      File management and I/O management

    2. B

      GUI and CLI management

    3. C

      Caching and directory management

    4. D

      Process management and memory management

    Correct answer
    D

    Process management and memory management

    Explanation

    In the example, process and memory management are treated as core functions kept in the kernel; file and I/O management are placed in user space.

  47. 47

    What is one benefit of placing file and I/O management in user space in a microkernel design?

    1. A

      It guarantees that switching between modes has no cost

    2. B

      It gives user-space services direct hardware access

    3. C

      It removes the need for process and memory management

    4. D

      A failure in one of those user-space services need not bring down the core kernel

    Correct answer
    D

    A failure in one of those user-space services need not bring down the core kernel

    Explanation

    The content argues that failures in user-space file or I/O management are less likely to stop the core kernel, improving reliability and stability.

  48. 48

    Why can a microkernel have lower performance in the described comparison?

    1. A

      It prevents the CPU from executing processes

    2. B

      It stores every process in a separate directory

    3. C

      It places every function inside one kernel, increasing internal communication speed

    4. D

      Tasks may require repeated, costly switches between user mode and kernel mode

    Correct answer
    D

    Tasks may require repeated, costly switches between user mode and kernel mode

    Explanation

    Separating services between user and kernel spaces can require repeated mode switches, adding overhead and reducing performance.

  49. 49

    Which examples are associated with microkernels in the content?

    1. A

      Linux, Unix, and MS-DOS

    2. B

      L4, Symbian OS, and MINIX

    3. C

      Mac OS and Windows NT

    4. D

      Windows PowerShell and the Linux terminal

    Correct answer
    B

    L4, Symbian OS, and MINIX

    Explanation

    The content lists L4, Symbian OS, and MINIX as microkernel examples.

  50. 50

    What is the basic idea behind a hybrid kernel?

    1. A

      Moving all operating-system functions into user space

    2. B

      Removing process management so that mode switches are unnecessary

    3. C

      Combining selected advantages of monolithic and microkernel designs

    4. D

      Replacing the kernel with a graphical user interface

    Correct answer
    C

    Combining selected advantages of monolithic and microkernel designs

    Explanation

    A hybrid kernel is presented as a combined approach intended to take advantages from both monolithic and microkernel designs.

  51. 51

    In the hybrid-kernel arrangement described, which function is placed in user space?

    1. A

      I/O management

    2. B

      Memory management

    3. C

      File management

    4. D

      Process management

    Correct answer
    C

    File management

    Explanation

    The described hybrid arrangement places file management in user space while keeping process, memory, and I/O management in the kernel.

  52. 52

    How is the described hybrid design expected to improve on the microkernel's performance drawback?

    1. A

      Giving applications direct hardware access makes mode switching unnecessary

    2. B

      Removing file management prevents any process from using storage

    3. C

      Moving every function into user space eliminates all kernel requests

    4. D

      Keeping more functions in the kernel reduces some repeated switching overhead

    Correct answer
    D

    Keeping more functions in the kernel reduces some repeated switching overhead

    Explanation

    The content says that keeping additional management work, including I/O management, in the kernel reduces some of the switching overhead associated with the microkernel arrangement.

  53. 53

    Which examples are associated with hybrid kernels in the content?

    1. A

      L4, Symbian OS, and MINIX

    2. B

      Windows PowerShell and the Linux terminal

    3. C

      Linux, Unix, and MS-DOS

    4. D

      Mac OS and Windows NT-family systems

    Correct answer
    D

    Mac OS and Windows NT-family systems

    Explanation

    Mac OS and Windows NT-family versions are given as examples of hybrid kernels.

  54. 54

    Which two additional kernel types are named but not explained in detail?

    1. A

      Nano kernels and exokernels

    2. B

      Graphical kernels and command kernels

    3. C

      Shell kernels and directory kernels

    4. D

      Buffer kernels and cache kernels

    Correct answer
    A

    Nano kernels and exokernels

    Explanation

    The content names nano and exo kernels as additional types but says they are not discussed in detail.

Question 1 of 54
Question 1 of 54

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent