Question 1
Question
What roles and functionality does an operating system provide?
Answer
-
Hide hardware complexity from applications and developers
-
Manages the underlying software
-
Provides isolation and protection
-
Guarantees applications can never access each others memory
Question 2
Question
Threads can only exist on the kernel level
Question 3
Question
Which of the following are components of an operating system?
Answer
-
Microsoft Word
-
Device Driver
-
Web Browser
-
Kernel
-
File System
Question 4
Question
An operating system abstracts and arbitrates the use of the computer system.
Question 5
Question
Distributing memory between multiple processors is an example of abstraction.
Question 6
Question
Supporting different types of speakers is an example of abstraction.
Question 7
Question
What is an embedded operating system?
Answer
-
A type of operating system that targets servers.
-
A type of operating system that targets desktops.
-
A type of operating system designed to be compact, efficient at resource usage, and reliable (such as for a smart phone/tablet).
-
A type of operating system that targets mainframes.
Question 8
Question
Check all UNIX based operating systems below.
Answer
-
Windows
-
Mac OS X (BSD)
-
Linux
-
Android
Question 9
Question
Which of the following is an abstraction?
Answer
-
Socket
-
Create
-
Schedule
-
Write
Question 10
Question
Which of the following is a mechanism?
Answer
-
Schedule
-
Process
-
File
-
Thread
Question 11
Question
To achieve it's goals an operating system supports a number of higher level abstractions and then a key number of mechanisms that operate on top of these abstractions.
Question 12
Question
Operating systems do not implement policies to determine how mechanisms will be used to manage the underlying hardware.
Question 13
Question
The policy Least Recently Used (LRU) decides that the pages that have been least recently used over a period of time are the ones that are no longer used in physical memory but instead to be used on disk. This is also known as
Answer
-
Swapping
-
Switching
-
Transferring
-
Upkeep
Question 14
Question
What are some good guiding policies when designing an OS? Check all that apply
Answer
-
Separation of mechanisms and policy
-
Tight coupling of mechanisms and policy
-
Optimize for edge cases
-
Optimize for the common case
Question 15
Question
To achieve it's role of controlling and managing hardware resources on behalf of applications, the application must have special privileges. This is achieved by distinguishing between at least two modes of
Answer
-
Kernal and User
-
Kernal and Admin
-
Admin and Master
-
Privileged and Kernel
Question 16
Question
The operating system must operate in privileged kernel mode.
Question 17
Question
User - Kernel switch is supported by which hardware?
Answer
-
The CPU
-
Motherboard
-
RAM
-
GPU
Question 18
Question
What is a trap instruction?
Answer
-
When an application attempts to perform privileged operations in user mode
-
An instruction that leads to buffer overflow
-
Any instruction sent to the CPU when close to using max RAM
-
Any instruction performed by incompatible hardware.
Question 19
Question
What happens when a trap instruction occurs?
Answer
-
Control is switched to the OS at a specific location
-
The OS checks to see what caused the trap to occur
-
Grant access or perform terminate the process if the instruction was illegal.
-
A system call
Question 20
Question
A system call is when the operating system gives privileged access to an application. Examples of this are open(file), send(socket), and malloc(memory).