Linux Interview Questions and Answers – IPC – 1

DigitalOcean Referral Badge DigitalOcean Referral Badge

1.

Which is true regarding pipes?

   A.) half duplex
   B.) full duplex
   C.) message boundaries are preserved
   D.) unordered data

Answer: Option 'A'

half duplex

DigitalOcean Referral Badge

2.

The persistancy of a FIFO is

   A.) process
   B.) kernel
   C.) file system
   D.) none of these

Answer: Option 'C'

file system

DigitalOcean Referral Badge

3.

Advantage of FIFO over pipe is

   A.) related processes can communicate
   B.) unrelated processes can communicate
   C.) all of the mentioned
   D.) none of these

Answer: Option 'B'

unrelated processes can communicate

DigitalOcean Referral Badge

4.

What mkfifo() creats?

   A.) pipe
   B.) unnamed pipe
   C.) named pipe
   D.) msg queue

Answer: Option 'C'

named pipe

DigitalOcean Referral Badge
    DigitalOcean Referral Badge DigitalOcean Referral Badge

5.

System V IPC common attributes are

   A.) key
   B.) id
   C.) owner
   D.) all of these

Answer: Option 'D'

all of these
 

DigitalOcean Referral Badge

6.

Which one of the following is not system V IPC ?

   A.) Shared Memory
   B.) Semaphores
   C.) FIFO
   D.) Message Queues

Answer: Option 'C'

FIFO

DigitalOcean Referral Badge

7.

Which system call is used to create Sys V message Queue.

   A.) msgget
   B.) shemget
   C.) semget
   D.) msgctl

Answer: Option 'A'

msgget

DigitalOcean Referral Badge

8.

Which is not the correct option for removing a message queue

   A.) ipcrm -Q
   B.) ipcrm -q
   C.) ipcrm -m
   D.) none of these

Answer: Option 'C'

ipcrm -m

DigitalOcean Referral Badge

9.

Message queues are created in

   A.) userspace
   B.) kernelspace
   C.) userspace & kernelspace
   D.) none of these

Answer: Option 'B'

kernelspace

DigitalOcean Referral Badge

Linux Interview Questions and Answers – IPC – 1 Download Pdf

Recent Posts