1. Home
  2. Explore
  3. Other
  4. Lecture Recording Access

Study methods

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

Lecture Recording Access

  • 32Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: OS Fundamentals

What is the primary role of an operating system?

32 questions

  1. 1

    What is the primary role of an operating system?

    Model answer

    The operating system sits between the user and the hardware, managing resources and providing services so users can run applications.

    Explanation

    The OS abstracts hardware details and manages resources like CPU, memory, and devices.

  2. 2

    Name three types of user interfaces an operating system may provide.

    Model answer

    Graphical user interface (GUI), command-line interface (CLI), and batch interface.

    Explanation

    GUIs use windows and mice, CLIs use text commands, and batch interfaces run jobs automatically.

  3. 3

    Why might a bank run transactions as a batch overnight?

    Model answer

    To use quieter system resources and avoid interfering with daytime interactive users.

    Explanation

    Batch systems schedule jobs during low-usage periods for efficiency.

  4. 4

    What does the operating system provide to manage file storage?

    Model answer

    A file system that organizes files and abstracts storage devices (hard disk, SSD, USB).

    Explanation

    The file system handles opening, saving, and organizing files regardless of physical device.

  5. 5

    Give an example of inter-process communication provided by an OS.

    Model answer

    Copying a file from one device to another, or an embedded Excel sheet in OneNote.

    Explanation

    The OS enables data transfer between processes and devices.

  6. 6

    What is error detection in an OS?

    Model answer

    The OS catches illegal operations like divide-by-zero and stops them, sometimes resulting in a blue screen of death.

    Explanation

    Error detection prevents programs from harming the system.

  7. 7

    How does an operating system handle resource allocation?

    Model answer

    It decides which process gets resources like CPU time, memory, or the printer, and when.

    Explanation

    For printing, it gives the printer to one process until done, then releases it.

  8. 8

    What is accounting in an OS context?

    Model answer

    Tracking resource usage (e.g., storage space, CPU cycles) to enforce limits or charge departments.

    Explanation

    The OS monitors and controls resource consumption.

  9. 9

    How does an OS provide protection and security?

    Model answer

    Through user login/passwords and file permissions, ensuring users cannot access others' files unless granted.

    Explanation

    The OS isolates users and resources.

  10. 10

    Distinguish between single-tasking and multi-tasking operating systems.

    Model answer

    Single-tasking runs one program at a time (e.g., MS-DOS); multi-tasking runs many simultaneously (e.g., Windows, Unix).

    Explanation

    Multi-tasking allows apparent concurrency by time-sharing the CPU.

  11. 11

    Distinguish between single-user and multi-user operating systems.

    Model answer

    Single-user allows one user at a time; multi-user allows multiple concurrent users (e.g., server OS).

    Explanation

    Multi-user systems manage separate accounts and resources.

  12. 12

    What is a system call?

    Model answer

    A function provided by the OS that allows user programs to request services like file access or output.

    Explanation

    System calls form the application programming interface (API) of the OS.

  13. 13

    In the C system call for reading a file, what does the file descriptor represent?

    Model answer

    It identifies the open file to read from.

    Explanation

    The call read(fd, buffer, count) uses the file descriptor to specify which file.

  14. 14

    What is the difference between a program and a process?

    Model answer

    A program is a static file; a process is a program in execution, managed by the OS.

    Explanation

    The OS creates and manages processes.

  15. 15

    Give an example of a system call for process management.

    Model answer

    In Windows, CreateProcess; in Unix, fork to split a process.

    Explanation

    Process management calls create, terminate, and control processes.

  16. 16

    What is device management in an OS?

    Model answer

    The OS manages devices by requiring processes to request and release them (e.g., printer).

    Explanation

    Device management ensures exclusive access when needed.

  17. 17

    List three types of information stored in file attributes (properties).

    Model answer

    File name, size, creation date, read-only status, and access permissions.

    Explanation

    Attributes describe metadata about a file.

  18. 18

    How does the OS manage memory in a single-tasking system like MS-DOS?

    Model answer

    The kernel loads into low memory, then the command interpreter, then a single process, all in one contiguous space.

    Explanation

    Only one process resides in memory at a time; after exit, control returns to the interpreter.

  19. 19

    How does a multi-tasking OS like Unix manage memory?

    Model answer

    The kernel is loaded, and multiple processes are scattered throughout memory, each running seemingly concurrently.

    Explanation

    The OS uses techniques like paging to allow many processes in memory.

  20. 20

    What is the role of the kernel in an OS?

    Model answer

    The kernel is the core, most protected part that controls all other components and provides basic services.

    Explanation

    All system calls pass through the kernel to access hardware.

  21. 21

    Describe the simple structure of MS-DOS.

    Model answer

    MS-DOS has device drivers and core system commands loaded, but no hardware protection (applications can access hardware directly).

    Explanation

    This can cause system instability.

  22. 22

    How does a layered operating system structure work?

    Model answer

    Hardware is at the bottom, protected by layers; a user request (e.g., open file) goes through UI → file system → I/O → hardware, then back out.

    Explanation

    Each layer only communicates with adjacent layers, providing isolation.

  23. 23

    What is a microkernel?

    Model answer

    A microkernel puts minimal functionality in the kernel (e.g., IPC, basic scheduling) and moves other services to user mode.

    Explanation

    This increases security but may add performance overhead due to inter-process communication.

  24. 24

    What is a loadable module in an OS?

    Model answer

    A module that can be added dynamically to the kernel to extend functionality (e.g., new device drivers).

    Explanation

    Modular kernels offer flexibility without sacrificing performance.

  25. 25

    What is a hybrid kernel?

    Model answer

    A hybrid kernel combines elements of monolithic and microkernels, keeping critical parts in kernel but allowing modules (e.g., Windows, Mac OS X).

    Explanation

    It aims for both performance and flexibility.

  26. 26

    List two advantages and one disadvantage of a microkernel over a monolithic kernel.

    Model answer

    Advantages: better security and easier extensibility. Disadvantage: slower due to communication overhead.

    Explanation

    Microkernels minimize trusted code but require more IPC.

  27. 27

    Describe the boot process of an OS.

    Model answer

    The computer checks hardware, runs boot code to find an OS on a storage device, loads the kernel into memory, and transfers control to it.

    Explanation

    Some systems allow choosing between multiple OSes (dual-boot).

  28. 28

    How does the Mac OS X operating system structure work?

    Model answer

    It uses the XNU kernel (based on BSD), with a microkernel-like core and loadable modules for GUI (Aqua), QuickTime, etc.

    Explanation

    This hybrid approach balances performance and modularity.

  29. 29

    What is the Dalvik virtual machine in Android?

    Model answer

    A virtual machine that runs Java-based applications, converting them into executables for the Android OS.

    Explanation

    It allows apps to run across different Android versions and hardware.

  30. 30

    Why does Android have power management as a key service?

    Model answer

    Because it is designed for mobile devices that rely on batteries and need to maximize battery life.

    Explanation

    Power management is critical for portable devices.

  31. 31

    What is the purpose of the VirtualBox tutorial mentioned in the lecture?

    Model answer

    To allow students to install and use a Linux distribution (e.g., Ubuntu) on their existing OS to explore Linux internals for the group report.

    Explanation

    Hands-on experience helps understand operating system structures in practice.

  32. 32

    What is the focus of the group report assignment?

    Model answer

    To analyze how general operating system theories (e.g., kernels, file systems) actually work in a Linux OS, including choices made and their pros and cons.

    Explanation

    Students must research a specific Linux distribution and relate it to the concepts covered.

1 of 32
Question 1 of 32

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent