Operating Systems
31 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which component of an operating system performs all the basic functions of the OS?

  • CPU
  • Kernel (correct)
  • Memory
  • File Manager
  • What is the purpose of a bootable CD/DVD?

  • To control execution of all other programs
  • To provide a user interface
  • To contain the core OS, applications, and utilities (correct)
  • To manage all hardware resources
  • What is the purpose of an executable file?

  • To manage all hardware resources
  • To give instructions to the computer (correct)
  • To provide a user interface
  • To perform all basic functions of the OS
  • What information does the exe header of an executable file contain?

    <p>Address of entry-point function</p> Signup and view all the answers

    What is the purpose of hardware abstraction in an operating system?

    <p>To hide hardware complexities from the user</p> Signup and view all the answers

    What is the purpose of the Process Control Block (PCB)?

    <p>To store information about the execution context of a process</p> Signup and view all the answers

    What is the difference between Global and Static variables in the BSS section?

    <p>Global variables are initialized while static variables are not</p> Signup and view all the answers

    What is the degree of multi-programming in a multi-programming system?

    <p>The number of programs that can be loaded in the memory at the same time</p> Signup and view all the answers

    What is the purpose of the task_struct in Linux?

    <p>To store information about the execution context of a process</p> Signup and view all the answers

    What is the purpose of a Resident Monitor in a batch system?

    <p>To monitor the execution of programs in memory</p> Signup and view all the answers

    What is the unit of the OS responsible for loading a mix of CPU bound and IO bound processes into memory?

    <p>Job scheduler</p> Signup and view all the answers

    What is the name of the unit of the OS responsible for selecting a process to be executed on the CPU?

    <p>CPU scheduler</p> Signup and view all the answers

    What is the term for sharing CPU time among multiple processes in the main memory?

    <p>Multi-tasking</p> Signup and view all the answers

    What is the term for a process that spends more time doing CPU computations than IO operations?

    <p>CPU bound</p> Signup and view all the answers

    What is the name of the type of multi-tasking where multiple independent processes are executing concurrently?

    <p>Process based multitasking</p> Signup and view all the answers

    What is the name of the type of multi-tasking where multiple parts/functions in a process are executing concurrently?

    <p>Thread based multitasking</p> Signup and view all the answers

    What is the name of the OS command used to track the currently logged in user and terminal?

    <p>who</p> Signup and view all the answers

    What is the purpose of using namespaces in code organization?

    <p>To prevent name collisions and organize code into logical groups</p> Signup and view all the answers

    What language does not have a namespace mechanism?

    <p>C</p> Signup and view all the answers

    What operator is used to refer to a function within a namespace without conflicts?

    <p>:</p> Signup and view all the answers

    Can instances of namespaces be created?

    <p>No</p> Signup and view all the answers

    What is the purpose of using inline functions over macros according to the text?

    <p>Macros are not type checked</p> Signup and view all the answers

    When is it appropriate to use inline functions according to the text?

    <p>When performance is needed</p> Signup and view all the answers

    What is the syntax for defining an inline function according to the text?

    <p>inline return_type functionname(int num1, int num2) {}</p> Signup and view all the answers

    What is the advantage of using inline functions according to the text?

    <p>They avoid the time overhead of a function call</p> Signup and view all the answers

    What is the disadvantage of using macros according to the text?

    <p>They are not type checked</p> Signup and view all the answers

    What is the difference between parameterized and non-parameterized manipulators in C++?

    <p>Parameterized manipulators require an argument and non-parameterized ones do not</p> Signup and view all the answers

    What is the main limitation of using macros in C++?

    <p>Macros do not perform type checking, which can lead to undesired results</p> Signup and view all the answers

    What is an inline function in C++?

    <p>A function that is treated as a macro by the compiler</p> Signup and view all the answers

    What is the purpose of namespace in C++?

    <p>To avoid naming conflicts between identifiers</p> Signup and view all the answers

    What is the syntax for defining a macro in C++?

    <p>#define macro_name value</p> Signup and view all the answers

    More Like This

    Operating Systems and File Management
    51 questions
    TEST OUT CORE 2: Operating Systems Part #2
    62 questions
    Concepts Module 4: Operating Systems
    21 questions
    Operating Systems Overview
    13 questions
    Use Quizgecko on...
    Browser
    Browser