31 Questions
Which component of an operating system performs all the basic functions of the OS?
Kernel
What is the purpose of a bootable CD/DVD?
To contain the core OS, applications, and utilities
What is the purpose of an executable file?
To give instructions to the computer
What information does the exe header of an executable file contain?
Address of entry-point function
What is the purpose of hardware abstraction in an operating system?
To hide hardware complexities from the user
What is the purpose of the Process Control Block (PCB)?
To store information about the execution context of a process
What is the difference between Global and Static variables in the BSS section?
Global variables are initialized while static variables are not
What is the degree of multi-programming in a multi-programming system?
The number of programs that can be loaded in the memory at the same time
What is the purpose of the task_struct in Linux?
To store information about the execution context of a process
What is the purpose of a Resident Monitor in a batch system?
To monitor the execution of programs in memory
What is the unit of the OS responsible for loading a mix of CPU bound and IO bound processes into memory?
Job scheduler
What is the name of the unit of the OS responsible for selecting a process to be executed on the CPU?
CPU scheduler
What is the term for sharing CPU time among multiple processes in the main memory?
Multi-tasking
What is the term for a process that spends more time doing CPU computations than IO operations?
CPU bound
What is the name of the type of multi-tasking where multiple independent processes are executing concurrently?
Process based multitasking
What is the name of the type of multi-tasking where multiple parts/functions in a process are executing concurrently?
Thread based multitasking
What is the name of the OS command used to track the currently logged in user and terminal?
who
What is the purpose of using namespaces in code organization?
To prevent name collisions and organize code into logical groups
What language does not have a namespace mechanism?
C
What operator is used to refer to a function within a namespace without conflicts?
:
Can instances of namespaces be created?
No
What is the purpose of using inline functions over macros according to the text?
Macros are not type checked
When is it appropriate to use inline functions according to the text?
When performance is needed
What is the syntax for defining an inline function according to the text?
inline return_type functionname(int num1, int num2) {}
What is the advantage of using inline functions according to the text?
They avoid the time overhead of a function call
What is the disadvantage of using macros according to the text?
They are not type checked
What is the difference between parameterized and non-parameterized manipulators in C++?
Parameterized manipulators require an argument and non-parameterized ones do not
What is the main limitation of using macros in C++?
Macros do not perform type checking, which can lead to undesired results
What is an inline function in C++?
A function that is treated as a macro by the compiler
What is the purpose of namespace in C++?
To avoid naming conflicts between identifiers
What is the syntax for defining a macro in C++?
#define macro_name value
Test your knowledge about Operating Systems with this informative quiz! From the basic functions of a Kernel to the management of hardware resources, this quiz covers it all. Discover how an OS serves as the interface between end users, programs, and computer hardware, as well as how it controls the execution of all other programs. Take this quiz and become an expert on the essential components of an Operating System!
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free