CS 446 Practice
CS 446 Operating Systems Practice Quiz
Test your knowledge on operating systems concepts with our comprehensive CS 446 practice quiz! Designed for students and enthusiasts alike, this quiz offers a wide range of questions that cover fundamental topics in operating systems.
Key Features:
- 51 challenging questions
- Multiple-choice, checkboxes, and drop list formats
- Immediate scoring and feedback on your answers
The smallest OS that uses the fewest resources is a sensor node OS.
True
False
Main is the entry point for C programs and this is where the OS will begin execution.
True
False
Preemption is the process of switching one process off of the CPU and another onto the CPU in its place.
True
False
Using a base register to translate virtual memory to physical memory prevents one process from accidentally overwriting another process’ address space.
True
False
Threads share address space, global variable and lists of open files.
True
False
Condition variables solve the CPU cycle waste that occurs a mutex that uses a busy-wait.
True
False
Which of the following are contained within a process [select all that apply].
Related/dependent processes
Alarms
Associated files
Registers
Which of the following are reasons to perform a context switch?
A process is too large to fit in memory
A process of higher priority than the one on the CPU needs the CPU
A running process has finished executing
A running process needs to wait for IO
When a process is created, the operating system automatically adds which of the following to the address space? [select all that apply]
Heap
Code
Empty Space
Threads
Which of the following conditions imply that creating threads in users space is a better choice than creating them in kernel space? [select all that apply]
The programmer wants to avoid trapping
The system needs to be scaled up
System calls need to be blocked
The OS needs scheduling flexibility
When is a semaphore preferred over a mutex? [select all that apply]
When inter-process threads need to coordinate access to the critical region
Semaphores are always preferred over simple mutexes
When intra-process threads need to coordinate access to the critical region
Semaphores are never preferred over a mutex
Which of the following would cause a process to be created? Select all that apply.
A running process initiates a system call
The user requests that a process is created
The process is blocked
The operating system is initialized
By design, which of the following operating systems are designed to handle many requests from many different users at one time? [select all that apply]
Server
Sensor node systems
Pc
Mainframe
The process with PID 1 in most unix backed operating systems is init
True
False
Processes usually share all of their information with other processes.
True
False
Time sharing implies that a single process is given the entire CPU.
True
False
Virtual address spaces encompass all possible addresses assigned to RAM.
True
False
The size of the physical address space and a process’ virtual address space must be the same.
True
False
When sharing physical memory across processes, each process’ physical memory should start at 0.
True
False
What is the purpose of the translation lookaside buffer?
To store the address of all the pages that have been created for a process
To cache frequently used pages so that they can be found better
To modify the memory space and its partitions
To map all address from virtual to physical memory
When a process is created, the operating system automatically adds which of the following to the address space [select all that apply]
Empty memory space
Heap
Code
Threads
A page fault occurs. Order the series of events that take place.
Segmentation causes internal fragmentation more often than external fragmentation
True
False
The modified bit is also known as the dirty bit.
True
False
Which of the following are benefits of using global page allocation over local page allocation? [select all that apply]
Less memory wasted
Less thrashing
Differentiates number of pages per process based on criteria
Page frame consistency
Which of the following algorithms are dependent on tracking the system time that a page was last referenced? [select all that apply]
Working set
LRU
NRU
WSClock
Which of the following requires the operating system to involve itself with paging? [select all that apply]
Process blocking
Process creation
Process termination
Process execution
Parallelism is preferred over multi threading when there is a shared data dependency among threads.
True
False
If process A is using a critical region, process B should be able to read from the critical region at the same time.
True
False
Threads share address space, global variables and lists of open files.
True
False
Which of the following conditions imply that creating threads in user space is a better choice than creating them in kernel space? Select all that apply.
The system will need to be scaled up
System calls need to be blocked
The programmer wants to avoid trapping
The OS needs scheduling flexibility
Which of the following are methods of mapping user space threads to kernel space threads? [select all that apply]
One to many
Many to many
One to one
Many to one
Character devices store IO device input as fixed-size, consecutive blocks.
True
False
DMA requires specialized hardware in the MMU.
True
False
Which of the following is the OS responsible for handling when IO occurs? [select all that apply]
Device management and access
Constructing a device driver
Creates a uniform interface between apps and hardware
Waiting for a device signal and acting appropriately
Which of the following allows data to be transferred between IO devices?
HDD
IO ports
Memory mapped IO
Bus
In Linux, directories are just specialized files.
True
False
Every file, including directories, has an associated, unique inode.
True
False
Which of the following describes an untyped file system? [select all that apply]
Used in most modern OS
Does not care about file extension
Files are treated like a persistent array of bytes
Overwrites all data on the backend for that extension
A container is a VM.
True
False
A benefit of a VM is that it is portable.
True
False
Which of the following are common cloud service types?
Platform as a service
Infrastructure as a service
Software as a service
Hardware as a service
Which of the following is true of a type 1 hyper visor? [select all that apply]
Runs on bare metal
Adds a software layer between hardware and OS
Uses a host OS
Acts like an OS on the hardware
What is the role of the operating system in networking?
It provides the software necessary for networking communications
It manages access permissions
It allows the hardware to directly interact with the user space when a request is sent
It allows the user to directly manipulate the communication channel
If I introduce a new file system to an operating system, it must be mounted either manually or by the OS itself
True
False
Which of the following aspects of NFS does AFS improve?
Block writing
Redundancy
Client timeouts
Cache checking
The chmod command will allow a file’s protections to be changed
True
False
Ubuntu prioritizes ease of use over security.
True
False
Which of the following can be randomized to improve OS security?
Code entry points
Program counters
Heap
Stack
{"name":"CS 446 Practice", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge on operating systems concepts with our comprehensive CS 446 practice quiz! Designed for students and enthusiasts alike, this quiz offers a wide range of questions that cover fundamental topics in operating systems.Key Features:51 challenging questionsMultiple-choice, checkboxes, and drop list formatsImmediate scoring and feedback on your answers","img":"https:/images/course4.png"}