Operating System (MCQS)
Operating System (MCQS)
● single
● atomic
● static
● none of the mentioned
6. The wait operation of the semaphore basically works on the basic _______ system
call.
● stop()
● block()
● hold()
● wait()
7. The signal operation of the semaphore basically works on the basic _______ system
call.
● continue()
● wakeup()
● getup()
● start()
● banker's algorithm
● round-robin algorithm
● elevator algorithm
● karn's algorithm
Week 9:
● in advance processes rarely know how much resource they will need
● the number of processes changes as time progresses
● resource once available can disappear
● all of the mentioned
4. Which one of the following is a visual ( mathematical ) way to determine the deadlock
occurrence?
● rarely
● frequently
● rarely & frequently
● none of the mentioned
10. What is the disadvantage of invoking the detection algorithm for every request?
Week 10:
● Compile time
● Load time
● Execution time
● All of the mentioned
3. If the process can be moved during its execution from one memory segment to
another, then binding must be ____________
● programmer
● system architect
● system designer
● none of the mentioned
● Memory manager
● CPU
● CPU manager
● User
9. If a higher priority process arrives and wants service, the memory manager can swap
out the lower priority process to execute the higher priority process. When the higher
priority process finishes, the lower priority process is swapped back in and continues
execution. This variant of swapping is sometimes called?
● priority swapping
● pull out, push in
● roll out, roll in
● none of the mentioned
10. If binding is done at assembly or load time, then the process _____ be moved to
different locations after being swapped out and in again.
● can
● must
● can never
● May
Week 11:
● frames
● pages
● backing store
● none of the mentioned
2. Logical memory is broken into blocks of the same size called _________
● frames
● pages
● backing store
● none of the mentioned
3. Every address generated by the CPU is divided into two parts. They are
____________
● frame bit
● page number
● page offset
● frame offset
5. The _____ table contains the base address of each page in physical memory.
● process
● memory
● page
● frame
● varied
● power of 2
● power of 4
● none of the mentioned
7. If the size of logical address space is 2 to the power of m, and a page size is 2 to the
power of n addressing units, then the high order _____ bits of a logical address
designate the page number, and the ____ low order bits designate the page offset.
● m, n
● n, m
● m – n, m
● m – n, n
9. The operating system maintains a ______ table that keeps track of how many frames
have been allocated, how many are there, and how many are available.
● page
● mapping
● frame
● memory
● waiting
● execution
● context – switch
● all of the mentioned
Week 12:
● queues
● stacks
● counters
● registers
3. For larger page tables, they are kept in main memory and a __________ points to
the page table.
● page table
● copy of page table
● pointer to page table
● all of the mentioned
● extended by a factor of 3
● extended by a factor of 2
● slowed by a factor of 3
● slowed by a factor of 2
● stack pointer
● page table base register
● page register
● program counter
● logical address
● absolute address
● physical address
● relative address
9. What is compaction?
● each process
● each thread
● each instruction
● each address
Week 13:
1. The process of dividing a disk into sectors that the disk controller can read and write,
before a disk can store data is known as ____________
● partitioning
● swap space creation
● low-level formatting
● none of the mentioned
● header
● data area
● trailer
● all of the mentioned
3. The header and trailer of a sector contain information used by the disk controller
such as _________ and _________
4. The two steps the operating system takes to use a disk to hold its files are _______
and ________
5. The _______ program initializes all aspects of the system, from CPU registers to
device controllers and the contents of main memory, and then starts the operating
system.
● main
● bootloader
● bootstrap
● rom
6. The UNIX system uses a/an ________ stored at the beginning of a some files to
indicate roughly the type of file.
● identifier
● extension
● virtual number
● magic number
7. The larger the block size, the ______ the internal fragmentation.
● greater
● lesser
● same
● none of the mentioned
Week 14:
2. For large files, when the index itself becomes too large to be kept in memory?
● index is called
● an index is created for the index file
● secondary index files are created
● all of the mentioned
● file-organisation module
● logical file system
● basic file system
● application programs
● file ownership
● file permissions
● location of file contents
● all of the mentioned
● mount table
● system-wide open-file table
● per-process open-file table
● all of the mentioned
10. In which type of allocation method each file occupy a set of contiguous block on the
disk?
● contiguous allocation
● dynamic-storage allocation
● linked allocation
● indexed allocation
Week 15:
● 1
● 0
● any of 0 or 1
● none of the mentioned
2. Which protocol establishes the initial logical connection between a server and a
client?
● file-organisation module
● logical file system
● basic file system
● application programs
● file ownership
● file permissions
● location of file contents
● all of the mentioned
● mount table
● hash table
● file table
● process table
8. In which type of allocation method each file occupy a set of contiguous block on the
disk?
● contiguous allocation
● dynamic-storage allocation
● linked allocation
● indexed allocation
● 1
● 0
● any of 0 or 1
● none of the mentioned
10. Which protocol establishes the initial logical connection between a server and a
client?