Professional Documents
Culture Documents
3. Rearrange the remote procedure call (RPC) activities according to the occurrence
timeline.
p) Instructions are executed on the server according to the parameters
q) The client-side stub locates the server
r) Parameters are unpacked at the server side
s) Parameters are marshalled at the client side
a. q -> r -> s -> p
b. r -> s -> q -> p
c. q -> s -> r -> p
d. p -> r -> s -> q
Ans: (c)
Initially, the client-side stub locates the server. Then the parameters are marshalled at the
client side and sent over to the server. The server receives the massage and unpacks the
marshalled parameters. Finally, the unpacked parameters are used for executing the
instructions.
4. Big-ending and Little-endian system
a. Both stores the most significant byte first
b. Both stores the least significant byte first
c. Stores least significant byte and most significant byte first accordingly
d. Stores most significant byte and least significant byte first accordingly
Ans: (d)
Big-endian system stores the most significant byte first and little-endian system stores the
least significant byte first. The big-endian system is common format in data networking.
7. When we have to use same operation on a large set of data, which type of
parallelism will fit the task?
a. Data parallelism
b. Task parallelism
c. Both will work equally well
d. Parallelism will not work
Ans: (a)
Data parallelism is the best fitted for this task as it can divide the overall set of data into
subsets and operate on each simultaneously.
8. In which kind of buffering queue, the sender never has to wait?
a. Zero capacity
b. Bounded capacity
c. Unbounded capacity
d. None of the above
Ans: (c)
Message exchanged by the communicating process reside in a temporary queue. If the
queue has no such bounded length, the sender never has to wait as the sent messages will
be stored in the queue anyway.
10.
A parent may terminate the execution of children processes using the abort ()
system call when
a. Child has exceeded the allocated resources
b. Task assigned to child is no longer required
c. The parent is exiting and the operating system does not allow the child to run
if the parent terminates
d. All of the above
Ans: (d)