CS 332 Practice Exam
CS 332 Practice Exam: Test Your Operating Systems Knowledge
Prepare yourself for your next exam with our comprehensive practice quiz on Operating Systems! This quiz contains 36 challenging questions that cover a range of important topics, from memory management to process synchronization. Test your knowledge and identify areas for improvement.
Key Features:
- 36 multiple-choice questions
- Immediate feedback on your answers
- Designed for students studying Operating Systems
A process is placed in the ready queue as an element of a:
Stack
Variable
Linked list
Register
The memory address register is loaded with a value from the:
Cache
Stack
Instruction register
PC register
Direct memory access loads data into the memory by using
Interrupts
Traps
Cycle stealing
Semaphores
The entity we create for the O/S to handle a process is a :
Struct
Table
Vector
Device
A miss indicates that the word that was referenced:
Is on the disk
Is not in cache
Is not on the stack
Is in the register
Virtual memory is a portion of the:
Registers
Main memory
Disk
Cache memory
When a process is busy waiting it is:
Waiting in the ready queue
Waiting in the device queue
Exicuting in a continous loop
Exicuting a wait(s) function
Data is transferred from memory to cache in units of
Blocks
Words
Threads
Vectors
In a multithreaded process model, each of the individual threads:
Have their own PC register
Have their own open files
Have their own stack section
Have their own data section
If the time quantum is made larger, the number of context switches will likely
Increase
Decrease
Either increase or decrease
Not be affected
A monitor used in an O/S is a
Terminal
Software module
Hardware device
Boolean flag
You delete a file from the disl. What happens to the bit sequence that was there?
It was removed by the O/S
It was erased when you clicked 'delete'
It gets changed to all zeros
Nothing
The Program Counter of a process holds a:
Process number
Memory address
Logical address
Cache address
The critical section, is a segment of code
That is needed to do critical calculations
In which a process utilizes some shared resources
In the users program that is the most important
Used in special applications which deal with life/death matters
A user process can request the services of the O/S through
Aging
Short term scheduler
System calls
Interrupts
In a multithreaded process controlled in the user level (Choose all that are true)
When any thread blocks, its process cannot continue to run
When a process blocks, its threads can continue to run
The difference between FCFS and RR in scheduling is:
Length of queue
Preemption based on a clock
Priority scheduling
None of the above
An interrupt is issued by:
The short term scheduler
The running process
The interrupt vector
The I/O device
Process B exits and there are still threads of that pocess running, they will
Continue to run untill they complete
Be put on a device queue
Be put into virtual memory
Terminate when the process exits
When a process exicutes a signal operation on a semaphore then:
The process must block itself
The process must exicute a wait(s)
The process must go to the ready queue
None of the above
A semaphore used to impliment mutual exclusion that contains a negative value indicates:
The number of resources of that type availible
The number of process using that resource that are running concurrently
Number of processes needing that resource that are blocked
Priority of the running processes that need that resource
Priority of the running processes that needs that resource
Priority of the blocked process that needs that resource
A semaphore used to impliment mutual exclusion that contains a positive value indicates:
The number of resources of that type availible
The number of process using that resource that are running concurrently
Number of processes needing that resource that are blocked
Priority of the running processes that need that resource
Priority of the running processes that needs that resource
Priority of the blocked process that needs that resource
The most significant bits of the IR register hold the
Address
Block
Op-code
Vector
Data
The least significant bits of the IR register hold the
Address
Block
Op-code
Vector
Data
Device drivers are
Hardware chips in the computer
Hardware chips in the device
Software in the O/S
Controls to run the device
Cache memory contains a copy of some parts of main memory
True
False
Cycle stealing is a type of interrupt
True
False
Multithreaded processes can have no more than three threads
True
False
A process and its threads must be in the same state at all times
True
False
The return address of a function call is normally held in the
Pcb structure
Return register
Stack
Cache memory
All files must have a filename and at least one character in the file
True
False
The part of the O/S that allocates memory space to a new process is the
Dispatcher
Medium term scheduler
Long term scheduler
Memory controller
Process B moves from the running state to the ready state. To do this the O/S must:
Move its location in memory to the back of the ready queue
Move its location in memory to the front of the ready queue
Change the values of its queue pointers
Do nothing since the process will move itself
Data is transferred from cahce to registers in units of
Blocks
Words
Threads
Vectors
The stack pointer will give the maximum address of the stack
True
False
The disk cache is located
In the cache memory
On the disk
In main memory
None of the above
{"name":"CS 332 Practice Exam", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Prepare yourself for your next exam with our comprehensive practice quiz on Operating Systems! This quiz contains 36 challenging questions that cover a range of important topics, from memory management to process synchronization. Test your knowledge and identify areas for improvement.Key Features:36 multiple-choice questionsImmediate feedback on your answersDesigned for students studying Operating Systems","img":"https:/images/course5.png"}