Operating System MCQ Set 1
1. In distributed systems, a logical clock is associated with
a) each instruction
b) each process
c) each register
d) none of the mentioned
Answer
Answer: b [Reason:] None.
2. If timestamps of two events are same, then the events are
a) concurrent
b) non-concurrent
c) monotonic
d) non-monotonic
Answer
Answer: a [Reason:] None.
3. If a process is executing in its critical section
a) any other process can also execute in its critical section
b) no other process can execute in its critical section
c) one more process can execute in its critical section
d) none of the mentioned
Answer
Answer: b [Reason:] None.
4. A process can enter into its critical section
a) anytime
b) when it recieves a reply message from its parent process
c) when it recieves a reply message from all other processes in the system
d) none of the mentioned
Answer
Answer: c [Reason:] None.
5. For proper synchronization in distributed systems
a) prevention from the deadlock is must
b) prevention from the starvation is must
c) prevention from the deadlock & starvation is must
d) none of the mentioned
Answer
Answer: c [Reason:] None.
6. In the token passing approach of distributed systems, processes are organized in a ring structure
a) logically
b) physically
c) both logically and physically
d) none of the mentioned
Answer
Answer: a [Reason:] None.
7. In distributed systems, transaction coordinator
a) starts the execution of transaction
b) breaks the transaction into number of sub transactions
c) coordinates the termination of the transaction
d) all of the mentioned
Answer
Answer: d [Reason:] None.
8. In case of failure, a new transaction coordinator can be elected by
a) bully algorithm
b) ring algorithm
c) both bully and ring algorithm
d) none of the mentioned
Answer
Answer: c [Reason:] None.
9. In distributed systems, election algorithms assumes that
a) a unique priority number is associated with each active process in system
b) there is no priority number associated with any process
c) priority of the processes is not required
d) none of the mentioned
Answer
Answer: a [Reason:] None.
10. According to the ring algorithm, links between processes are
a) bidirectional
b) unidirectional
c) both bidirectional and unidirectional
d) none of the mentioned
Answer
Answer: b [Reason:] None.
Operating System MCQ Set 2
1. ______ is a unique tag, usually a number, identifies the file within the file system.
a) File identifier
b) File name
c) File type
d) None of the mentioned
Answer
Answer: a [Reason:] None.
2. To create a file
a) allocate the space in file system
b) make an entry for new file in directory
c) allocate the space in file system & make an entry for new file in directory
d) none of the mentioned
Answer
Answer: c [Reason:] None.
3. By using the specific system call, we can
a) open the file
b) read the file
c) write into the file
d) all of the mentioned
Answer
Answer: d [Reason:] None.
4. File type can be represented by
a) file name
b) file extension
c) file identifier
d) none of the mentioned
Answer
Answer: b [Reason:] None.
5. Which file is a sequence of bytes organized into blocks understandable by the system’s linker?
a) object file
b) source file
c) executable file
d) text file
Answer
Answer: a [Reason:] None.
6. What is the mounting of file system?
a) crating of a filesystem
b) deleting a filesystem
c) attaching portion of the file system into a directory structure
d) removing portion of the file system into a directory structure
Answer
Answer: c [Reason:] None.
7. Mapping of file is managed by
a) file metadata
b) page table
c) virtual memory
d) file system
Answer
Answer: a [Reason:] None.
8. Mapping of network file system protocol to local file system is done by
a) network file system
b) local file system
c) volume manager
d) remote mirror
Answer
Answer: a [Reason:] None.
9. Which one of the following explains the sequential file access method?
a) random access according to the given byte number
b) read bytes one at a time, in order
c) read/write sequentially by record
d) read/write randomly by record
Answer
Answer: b [Reason:] None.
10. file system fragmentation occurs when
a) unused space or single file are not contiguous
b) used space is not contiguous
c) unused space is non-contiguous
d) multiple files are non-contiguous
Answer
Answer: a [Reason:] None.
Operating System MCQ Set 3
1. Management of metadata information is done by
a) file-organisation module
b) logical file system
c) basic file system
d) application programs
Answer
Answer: b [Reason:] None.
2. A file control block contains the information about
a) file ownership
b) file permissions
c) location of file contents
d) all of the mentioned
Answer
Answer: d [Reason:] None.
3. Which table contains the information about each mounted volume?
a) mount table
b) system-wide open-file table
c) per-process open-file table
d) all of the mentioned
Answer
Answer: d [Reason:] None.
4. To create a new file application program calls
a) basic file system
b) logical file system
c) file-organisation module
d) none of the mentioned
Answer
Answer: b [Reason:] None.
5. When a process closes the file
a) per-process table entry is not removed
b) system wide entry’s open count is decremented
c) all of the mentioned
d) none of the mentioned
Answer
Answer: b [Reason:] None.
6. What is raw disk?
a) disk without file system
b) empty disk
c) disk lacking logical file system
d) disk having file system
Answer
Answer: a [Reason:] None.
7. The data structure used for file directory is called
a) mount table
b) hash table
c) file table
d) process table
Answer
Answer: b [Reason:] None.
8. In which type of allocation method each file occupy a set of contiguous block on the disk?
a) contiguous allocation
b) dynamic-storage allocation
c) linked allocation
d) indexed allocation
Answer
Answer: a [Reason:] None.
9. If the block of free-space list is free then bit will
a) 1
b) 0
c) any of 0 or 1
d) none of the mentioned
Answer
Answer: a [Reason:] None.
10. Which protocol establishes the initial logical connection between a server and a client?
a) transmission control protocol
b) user datagram protocol
c) mount protocol
d) datagram congestion control protocol
Answer
Answer: c [Reason:] None.
Operating System MCQ Set 4
1. I/O hardware contains
a) Bus
b) Controller
c) I/O port and its registers
d) All of the mentioned
Answer
Answer: d [Reason:] None.
2. 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
Answer
Answer: a [Reason:] None.
3. The host sets _____ bit when a command is available for the controller to execute.
a) write
b) status
c) command-ready
d) control
Answer
Answer: c [Reason:] None.
4. 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
Answer
Answer: d [Reason:] It is called memory-mapped I/O.
5. Device drivers are implemented to interface
a) character devices
b) block devices
c) network devices
d) all of the mentioned
Answer
Answer: d [Reason:] None.
6. Which hardware triggers some operation after certain programmed count?
a) programmable interval timer
b) interrupt timer
c) programmable timer
d) none of the mentioned
Answer
Answer: a [Reason:] None.
7. The device-status table contains
a) each I/O device type
b) each I/O device address
c) each I/O device state
d) all of the mentioned
Answer
Answer: d [Reason:] None.
8. Which buffer holds the output for a device?
a) spool
b) output
c) status
d) magic
Answer
Answer: a [Reason:] None.
9. 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
Answer
Answer: a [Reason:] None.
10. 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
Answer
Answer: b [Reason:] None.
Operating System MCQ Set 5
1. Linux uses a time-sharing algorithm
a) to pair preemptive scheduling between multiple processes
b) for tasks where absolute priorities are more important than fairness
c) all of the mentioned
d) none of the mentioned
Answer
Answer: a [Reason:] None.
2. First linux kernel which supports the SMP hardware was
a) linux 0.1
b) linux 1.0
c) linux 1.2
d) linux 2.0
Answer
Answer: d [Reason:] None.
3. Which one of the following linux file system does not support journaling feature?
a) ext2
b) ext3
c) ext4
d) none of the mentioned
Answer
Answer: a [Reason:] None.
4. Which binary format is supported by linux?
a) a.out
b) elf
c) both a.out and ELF
d) none of the mentioned
Answer
Answer: c [Reason:] None.
5. Which one of the following bootloader is not used by linux?
a) GRUB
b) LILO
c) NTLDR
d) None of the mentioned
Answer
Answer: c [Reason:] None.
6. The first process launched by the linux kernel is
a) init process
b) zombie process
c) batch process
d) boot process
Answer
Answer: a [Reason:] None.
7. Which desktop environment is not used in any linux distribution?
a) gnome
b) kde
c) unity
d) none of the mentioned
Answer
Answer: d [Reason:] None.
8. Standard set of functions through which interacts with kernel is defined by
a) system libraries
b) kernel code
c) compilers
d) utility programs
Answer
Answer: a [Reason:] None.
9. Linux is
a) single user, single tasking
b) single user, multitasking
c) multiuser, single tasking
d) multiuser, multitasking
Answer
Answer: d [Reason:] None.
10. Which one of the following is not a linux distribution?
a) debian
b) gentoo
c) open SUSE
d) multics
Answer
Answer: d [Reason:] None.