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 (C)</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 (B)</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 (D)</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 (C)</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 (D)</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 (C)</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 (A)</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 (C)</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 (A)</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 (C)</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 (C)</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 (B)</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 (A)</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 (D)</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 (A)</p> Signup and view all the answers

    What language does not have a namespace mechanism?

    <p>C (D)</p> Signup and view all the answers

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

    <p>: (A)</p> Signup and view all the answers

    Can instances of namespaces be created?

    <p>No (A)</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 (D)</p> Signup and view all the answers

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

    <p>When performance is needed (C)</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) {} (C)</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 (C)</p> Signup and view all the answers

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

    <p>They are not type checked (D)</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 (D)</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 (D)</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 (B)</p> Signup and view all the answers

    What is the purpose of namespace in C++?

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

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

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

    More Like This

    Operating Systems Chapter 6 Flashcards
    14 questions
    Operating Systems and File Management
    51 questions
    TEST OUT CORE 2: Operating Systems Part #2
    62 questions
    Operating Systems Overview
    13 questions
    Use Quizgecko on...
    Browser
    Browser