💻

Operating System MCQs

1K+ questions with answers

751

The FAT is used much as a _________

a stack
b linked list
c data
d pointer
Medium
View Details →
752

A section of disk at the beginning of each partition is set aside to contain the table in _____________

a fat
b linked allocation
c hashed allocation
d indexed allocation
Medium
View Details →
753

Contiguous allocation has two problems _________ and _________ that linked allocation solves.

a external – fragmentation & size – declaration
b internal – fragmentation & external – fragmentation
c size – declaration & internal – fragmentation
d memory – allocation & size – declaration
Medium
View Details →
754

Each _______ has its own index block.

a partition
b address
c file
d all of the mentioned
Medium
View Details →
755

The pointer overhead of indexed allocation is generally _________ the pointer overhead of linked allocation.

a less than
b equal to
c greater than
d keeps varying with
Medium
View Details →
756

For any type of access, contiguous allocation requires ______ access to get a disk block.

a only one
b at least two
c exactly two
d none of the mentioned
Medium
View Details →
757

Consider a disk where blocks 2, 3, 4, 5, 8, 9, 10, 11, 12, 13, 17, 18, 25, 26 and 27 are free and the rest of the blocks are allocated. Then the free space bitmap would be _____________

a 10000110000001110011111100011111…
b 110000110000001110011111100011111…
c 01111001111110001100000011100000…
d 001111001111110001100000011100000…
Medium
View Details →
758

_______ tend to represent a major bottleneck in system performance.

a CPUs
b Disks
c Programs
d I/O
Medium
View Details →
759

In UNIX, even an ’empty’ disk has a percentage of its space lost to ______

a programs
b inodes
c virtual memory
d stacks
Medium
View Details →
760

By preallocating the inodes and spreading them across the volume, we ___________ the system performance.

a improve
b decrease
c maintain
d do not affect
Medium
View Details →
761

____________ writes occur in the order in which the disk subsystem receives them, and the writes are not buffered.

a Asynchronous
b Regular
c Synchronous
d Irregular
Medium
View Details →
762

In ___________ writes, the data is stored in the cache.

a Asynchronous
b Regular
c Synchronous
d Irregular
Medium
View Details →
763

A file being read or written sequentially should not have its pages replaced in LRU order, because _____________

a it is very costly
b the most recently used page will be used last
c it is not efficient
d all of the mentioned
Medium
View Details →
764

With _______ a requested page and several subsequent pages are read and cached.

a write ahead
b read ahead
c free-behind
d add-front
Medium
View Details →
765

Some directory information is kept in main memory or cache to ___________

a fill up the cache
b increase free space in secondary storage
c decrease free space in secondary storage
d speed up access
Medium
View Details →
766

A systems program such as fsck in ______ is a consistency checker.

a UNIX
b Windows
c Macintosh
d Solaris
Medium
View Details →
767

A consistency checker __________________ and tries to fix any inconsistencies it finds.

a compares the data in the secondary storage with the data in the cache
b compares the data in the directory structure with the data blocks on disk
c compares the system generated output and user required output
d all of the mentioned
Medium
View Details →
768

Each set of operations for performing a specific task is a _________

a program
b code
c transaction
d all of the mentioned
Medium
View Details →
769

Once the changes are written to the log, they are considered to be ________

a committed
b aborted
c completed
d none of the mentioned
Medium
View Details →
770

When an entire committed transaction is completed, ___________

a it is stored in the memory
b it is removed from the log file
c it is redone
d none of the mentioned
Medium
View Details →
771

All the changes that were done from a transaction that did not commit before the system crashed, have to be _________

a saved
b saved and the transaction redone
c undone
d none of the mentioned
Medium
View Details →
772

A machine in Network file system (NFS) can be ________

a client
b server
c both client and server
d neither client nor server
Medium
View Details →
773

A _________ directory is mounted over a directory of a _______ file system.

a local, remote
b remote, local
c local, local
d none of the mentioned
Medium
View Details →
774

The _________ becomes the name of the root of the newly mounted directory.

a root of the previous directory
b local directory
c remote directory itself
d none of the mentioned
Medium
View Details →
775

___________ mounts, is when a file system can be mounted over another file system, that is remotely mounted, not local.

a recursive
b cascading
c trivial
d none of the mentioned
Medium
View Details →
776

The mount mechanism ________ a transitive property.

a exhibits
b does not exhibit
c may exhibit
d none of the mentioned
Medium
View Details →
777

A mount operation includes the _____________

a name of the network
b name of the remote directory to be mounted
c name of the server machine storing it
d all of the mentioned
Medium
View Details →
778

The server maintains a/an ________ that specifies local file systems that it exports for mounting, along with names of machines that are permitted to mount them.

a export list
b import list
c sending list
d receiving list
Medium
View Details →
779

In UNIX, the file handle consists of a __________ and __________

a file-system identifier & an inode number
b an inode number & FAT
c a FAT & an inode number
d a file pointer & FAT
Medium
View Details →
780

The NFS servers ____________

a are stateless
b save the current state of the request
c maybe stateless
d none of the mentioned
Medium
View Details →
781

Every NFS request has a _________ allowing the server to determine if a request is duplicated or if any are missing.

a name
b transaction
c sequence number
d all of the mentioned
Medium
View Details →
782

A server crash and recovery will __________ to a client.

a be visible
b affect
c be invisible
d harm
Medium
View Details →
783

The server must write all NFS data ___________

a synchronously
b asynchronously
c index-wise
d none of the mentioned
Medium
View Details →
784

A single NFS write procedure ____________

a can be atomic
b is atomic
c is non atomic
d none of the mentioned
Medium
View Details →
785

The NFS protocol __________ concurrency control mechanisms.

a provides
b does not provide
c may provide
d none of the mentioned
Medium
View Details →
786

For every pair of component and directory vnode after path name translation ____________

a a single NFS lookup call is used sequentially
b a single NFS lookup call is used beginning from the last component
c at least two NFS lookup calls per component are performed
d a separate NFS lookup call is performed
Medium
View Details →
787

When a client has a cascading mount _______ server(s) is/are involved in a path name traversal.

a at least one
b more than one
c more than two
d more than three
Medium
View Details →
788

I/O hardware contains ____________

a Bus
b Controller
c I/O port and its registers
d All of the mentioned
Medium
View Details →
789

The data-in register of I/O port is ____________

a Read by host to get input
b Read by controller to get input
c Written by host to send output
d Written by host to start a command
Medium
View Details →
790

The host sets _____ bit when a command is available for the controller to execute.

a write
b status
c command-ready
d control
Medium
View Details →
791

When hardware is accessed by reading and writing to the specific memory locations, then it is called ____________

a port-mapped I/O
b controller-mapped I/O
c bus-mapped I/O
d none of the mentioned
Medium
View Details →
792

Device drivers are implemented to interface ____________

a character devices
b block devices
c network devices
d all of the mentioned
Medium
View Details →
793

Which hardware triggers some operation after certain programmed count?

a programmable interval timer
b interrupt timer
c programmable timer
d none of the mentioned
Medium
View Details →
794

Which buffer holds the output for a device?

a spool
b output
c status
d magic
Medium
View Details →
795

Which one of the following connects high-speed high-bandwidth device to memory subsystem and CPU.

a Expansion bus
b PCI bus
c SCSI bus
d None of the mentioned
Medium
View Details →
796

A process is moved to wait queue when I/O request is made with ____________

a non-blocking I/O
b blocking I/O
c asynchronous I/O
d synchronous I/O
Medium
View Details →
797

In _______ information is recorded magnetically on platters.

a magnetic disks
b electrical disks
c assemblies
d cylinders
Medium
View Details →
798

The heads of the magnetic disk are attached to a _____ that moves all the heads as a unit.

a spindle
b disk arm
c track
d none of the mentioned
Medium
View Details →
799

The set of tracks that are at one arm position make up a ___________

a magnetic disks
b electrical disks
c assemblies
d cylinders
Medium
View Details →
800

The time taken to move the disk arm to the desired cylinder is called the ____________

a positioning time
b random access time
c seek time
d rotational latency
Medium
View Details →