Operating systems concept MCQ Test 6

By | October 3, 2017

UGC-NET/GATE Multiple Choice Questions for Operating System.

Question 1
The major disadvantage with linked allocation is that :
A
internal fragmentation
B
external fragmentation
C
there is no sequential access
D
there is only sequential access
Question 2
Which of the following files will displayed by this command cat *ch*
A
patch
B
catch
C
.ch
D
All of the above
Question 3
Fetch...And...Add(,Xi) is an atomic Read-Modify-Write instruction that reads the value of memory location ,X increments it by the value i, and returns the old value of X. It is used in the pseudocode shown below to implement a busy-wait lock. L is an unsigned integer shared variable initialized to 0. The value of 0 corresponds to lock being available, while any non-zero value corresponds to the lock being not available. AcquireLock(L){ while (Fetch...And...Add(L,1)) L = 1; } ReleaseLock(L){ L = 0; } This implementation
A
fails as L can overflow
B
fails as L can take on a non-zero value when the lock is actually available
C
works correctly but may starve some processes
D
works correctly without starvation
Question 4
Dynamic Host Configuration Protocol [DHCP]
A
is the same as bootp
B
uses static allocation of IP addresses
C
helps prevent conflicts between assigned IP addresses
D
assigns IP addresses, which when allocated, cannot be reused
Question 5
A ..... is a full duplex connection between a device driver and a user level process.
A
Bus
B
I/O operation
C
Stream
D
Flow
Please report wrong answer in comment box
Welcome!!! Click on any option for correct answer
There are 5 questions to complete.

One thought on “Operating systems concept MCQ Test 6

Leave a Reply

Your email address will not be published. Required fields are marked *