Mock Quiz Hub
Dark
Mock Quiz Hub
1
Recent Updates
Added: OS Mid 1 Quiz
Added: OS Mid 2 Quiz
Added: OS Lab 1 Quiz
Check back for more updates!
Time: 00:00
Quiz
Navigate through questions using the controls below
0%
Question 1 of 60
Quiz ID: q1
Which of the following is NOT mentioned as a major component of operating system design and operation?
I/O management
Process scheduling
Memory management
Performance management
Question 2 of 60
Quiz ID: q2
What is the primary function of device drivers in an I/O system?
To increase the speed of I/O operations
To encapsulate device details and present uniform device-access interface
To manage memory allocation for devices
To handle network communications
Question 3 of 60
Quiz ID: q3
In I/O hardware terminology, what is a port?
A network communication endpoint
A connection point for device
A type of bus architecture
A memory storage location
Question 4 of 60
Quiz ID: q4
Which bus type is mentioned as common in PCs and servers?
ISA bus
PCI bus
AGP bus
EISA bus
Question 5 of 60
Quiz ID: q5
What is Serial-attached SCSI (SAS) commonly used for?
Network interfaces
Graphics cards
Disk interface
Memory modules
Question 6 of 60
Quiz ID: q6
A controller (host adapter) contains all of the following EXCEPT:
Processor
Microcode
Private memory
Power supply unit
Question 7 of 60
Quiz ID: q7
What is Fibre Channel (FC) described as?
A simple cable connection
A complex controller, usually separate circuit board
A type of memory interface
A wireless communication protocol
Question 8 of 60
Quiz ID: q8
Which of the following is NOT typically found in device registers?
Data-in register
Status register
Control register
Cache register
Question 9 of 60
Quiz ID: q9
How many bytes do device registers typically contain?
1-4 bytes
8-16 bytes
32-64 bytes
128-256 bytes
Question 10 of 60
Quiz ID: q10
In memory-mapped I/O, device data and command registers are:
Stored in separate memory chips
Mapped to processor address space
Handled only by the CPU
Isolated from the main system
Question 11 of 60
Quiz ID: q11
What is the first step in the polling process for each byte of I/O?
Host sets command-ready bit
Read busy bit from status register until 0
Controller sets busy bit
Host copies data into data-out register
Question 12 of 60
Quiz ID: q12
What is the main disadvantage of polling when the device is slow?
It increases power consumption
It is inefficient due to busy-wait cycle
It causes data corruption
It requires special hardware
Question 13 of 60
Quiz ID: q13
How many instruction cycles can polling happen in?
1 cycle
2 cycles
3 cycles
4 cycles
Question 14 of 60
Quiz ID: q14
What triggers the CPU interrupt-request line?
Memory allocation
Process scheduling
I/O device
System timer only
Question 15 of 60
Quiz ID: q15
What is the purpose of an interrupt vector?
To store interrupt data
To dispatch interrupt to correct handler
To count the number of interrupts
To prevent interrupts from occurring
Question 16 of 60
Quiz ID: q16
Which type of interrupts cannot be ignored or delayed?
Maskable interrupts
Nonmaskable interrupts
Timer interrupts
Software interrupts
Question 17 of 60
Quiz ID: q17
What happens when more than one device shares the same interrupt number?
System crash occurs
Interrupt chaining is used
Only the first device works
Interrupts are disabled
Question 18 of 60
Quiz ID: q18
Besides I/O operations, the interrupt mechanism is also used for:
Memory allocation only
Process creation only
Exceptions and system calls
File system operations only
Question 19 of 60
Quiz ID: q19
According to the lecture, how many interrupts did a quiet macOS desktop generate over 10 seconds?
2,300 interrupts
23,000 interrupts
230,000 interrupts
2,300,000 interrupts
Question 20 of 60
Quiz ID: q20
What is the main purpose of Direct Memory Access (DMA)?
To increase CPU speed
To avoid programmed I/O for large data movement
To reduce memory usage
To improve graphics performance
Question 21 of 60
Quiz ID: q21
What does DMA require to function?
Additional CPU cores
DMA controller
Extra memory modules
Special operating system
Question 22 of 60
Quiz ID: q22
In DMA operation, what information does the OS write into the DMA command block?
Only source address
Only destination address
Source and destination addresses, read/write mode, and count of bytes
Only the count of bytes
Question 23 of 60
Quiz ID: q23
What is 'cycle stealing' in the context of DMA?
DMA controller grabs bus from CPU
CPU steals cycles from DMA
Memory cycles are lost
Bus cycles are duplicated
Question 24 of 60
Quiz ID: q24
What is DVMA?
Direct Virtual Memory Access
Dual Virtual Memory Architecture
Dynamic Virtual Memory Allocation
Distributed Virtual Memory Access
Question 25 of 60
Quiz ID: q25
What is the main function of the device-driver layer?
To increase device speed
To hide differences among I/O controllers from kernel
To manage device power consumption
To provide network connectivity
Question 26 of 60
Quiz ID: q26
Which of the following is NOT mentioned as a dimension in which devices vary?
Character-stream or block
Sequential or random-access
Wired or wireless
Synchronous or asynchronous
Question 27 of 60
Quiz ID: q27
How are I/O devices broadly grouped by the OS according to the lecture?
Fast, medium, and slow devices
Block I/O, Character I/O, Memory-mapped file access, Network sockets
Input, output, and bidirectional devices
Local, remote, and virtual devices
Question 28 of 60
Quiz ID: q28
What is the purpose of Unix ioctl() call?
To manage file permissions
To send arbitrary bits to a device control register and data to device data register
To create new processes
To allocate memory
Question 29 of 60
Quiz ID: q29
In UNIX and Linux, what is used to identify type and instance of devices?
Device names only
IP addresses
Tuple of 'major' and 'minor' device numbers
File permissions
Question 30 of 60
Quiz ID: q30
Which of the following commands is associated with block devices?
get(), put()
send(), receive()
read, write, seek
connect(), disconnect()
Question 31 of 60
Quiz ID: q31
What type of access is possible with block devices through memory-mapped files?
File mapped to virtual memory with clusters brought via demand paging
Direct hardware access only
Network-based access only
Sequential access only
Question 32 of 60
Quiz ID: q32
Character devices include all of the following EXCEPT:
Keyboards
Mice
Serial ports
Disk drives
Question 33 of 60
Quiz ID: q33
Why do network devices have their own interface separate from block and character devices?
They are faster than other devices
They vary enough from block and character devices
They require special drivers
They use different power requirements
Question 34 of 60
Quiz ID: q34
What functionality does the socket interface include?
Only network protocol management
Only network operation management
select() functionality and separation of network protocol from network operation
Only data encryption
Question 35 of 60
Quiz ID: q35
What is the normal resolution for clocks and timers mentioned in the lecture?
1/30 second
1/60 second
1/100 second
1/120 second
Question 36 of 60
Quiz ID: q36
In blocking I/O, what happens to the process?
Process continues running normally
Process is suspended until I/O completed
Process is terminated
Process creates a new thread
Question 37 of 60
Quiz ID: q37
What does nonblocking I/O return?
Nothing
Error code only
As much data as available
Complete data set only
Question 38 of 60
Quiz ID: q38
What is the main characteristic of asynchronous I/O?
Process waits for I/O completion
Process runs while I/O executes
I/O operations are queued
Multiple processes share I/O
Question 39 of 60
Quiz ID: q39
What does vectored I/O allow?
One system call to perform multiple I/O operations
Multiple processes to share one device
Automatic error recovery
Network load balancing
Question 40 of 60
Quiz ID: q40
What is an example of a vectored I/O system call in Unix?
read()
write()
readve()
select()
Question 41 of 60
Quiz ID: q41
What is the primary purpose of buffering in the kernel I/O subsystem?
To increase storage capacity
To store data in memory while transferring between devices
To encrypt data transfers
To compress data
Question 42 of 60
Quiz ID: q42
What is double buffering?
Using two different devices
Two copies of the data (kernel and user)
Backing up data twice
Using two processors
Question 43 of 60
Quiz ID: q43
What is the key difference between caching and buffering?
Caching is faster device holding copy of data, always just a copy
Buffering is permanent, caching is temporary
Caching uses more memory than buffering
There is no difference
Question 44 of 60
Quiz ID: q44
What is spooling used for?
Network communication
Memory management
Hold output for a device that can serve only one request at a time
Process scheduling
Question 45 of 60
Quiz ID: q45
What is the purpose of device reservation?
To improve performance
To provide exclusive access to a device
To save power
To reduce errors
Question 46 of 60
Quiz ID: q46
Which systems are mentioned as being more advanced in error handling?
Windows and Linux
Solaris FMA and AIX
macOS and FreeBSD
Android and iOS
Question 47 of 60
Quiz ID: q47
Why are all I/O instructions defined to be privileged?
To improve performance
To prevent user process from accidentally or purposefully disrupting normal operation
To save memory
To reduce complexity
Question 48 of 60
Quiz ID: q48
How must I/O be performed in protected systems?
Directly by user processes
Via system calls
Through hardware interrupts only
Using special user privileges
Question 49 of 60
Quiz ID: q49
What type of method does Windows use for I/O implementation?
Direct hardware access
Polling only
Message passing
Shared memory
Question 50 of 60
Quiz ID: q50
In mobile computing, power management is treated as:
A secondary concern
An optional feature
First class OS aspect
Hardware-only responsibility
Question 51 of 60
Quiz ID: q51
What does Android's component-level power management understand?
Only individual component power usage
Relationship between components
Network power consumption only
User behavior patterns only
Question 52 of 60
Quiz ID: q52
What are wake locks in Android?
Security mechanisms
Memory protection features
Locks that prevent sleep of device when held
Network synchronization tools
Question 53 of 60
Quiz ID: q53
What is power collapse in Android?
System shutdown
Battery failure
Put a device into very deep sleep with marginal power use
Power supply malfunction
Question 54 of 60
Quiz ID: q54
What does ACPI stand for?
Advanced Configuration and Power Interface
Automatic Computer Power Integration
Advanced Component Power Instructions
Application Control Power Interface
Question 55 of 60
Quiz ID: q55
Which of the following is NOT mentioned as a service coordinated by the I/O subsystem?
Management of the name space for files and devices
Device allocation
Automatic software updates
I/O scheduling
Question 56 of 60
Quiz ID: q56
In the STREAMS architecture, what interfaces with the user process?
Driver end
STREAM head
STREAM modules
Message queues
Question 57 of 60
Quiz ID: q57
What type of communication does STREAMS provide?
Simplex communication
Half-duplex communication
Full-duplex communication
Broadcast communication
Question 58 of 60
Quiz ID: q58
How do STREAM modules communicate with each other?
Direct function calls
Shared memory
Message passing between queues
Signal handling
Question 59 of 60
Quiz ID: q59
Which of the following is NOT mentioned as a way to improve I/O performance?
Reduce number of context switches
Use DMA
Increase CPU clock speed
Reduce data copying
Question 60 of 60
Quiz ID: q60
What makes network traffic especially stressful for I/O performance?
High bandwidth requirements
Complex protocols only
Multiple factors: CPU demands, context switches, data copying
Security overhead only
Quiz Summary
Review your answers before submitting
60
Total Questions
0
Answered
60
Remaining
00:00
Time Spent
Submit Quiz
Back to Questions
Previous
Question 1 of 60
Next
!
Confirm Submission
Cancel
Submit Quiz