Linux Interview Questions and Answers – IPC – 1

Here is a listing of Linux / Unix Technical Interview Questions & Answers for experienced IT professionals as well as fresh engineering graduates. These questions can be attempted by anyone focusing on Linux Development and Systems programming.

1. Which is true regarding pipes?
a) half duplex
b) full duplex
c) message boundaries are preserved
d) unordered data
View Answer

Answer: a
Explanation: None.

2. The persistancy of a FIFO is
a) process
b) kernel
c) file system
d) none of the mentioned
View Answer

Answer: c
Explanation: None.

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 the mentioned
View Answer

Answer: b
Explanation: None.
advertisement
advertisement

4. What mkfifo() creats?
a) pipe
b) unnamed pipe
c) named pipe
d) msg queue
View Answer

Answer: c
Explanation: None.

5. System V IPC common attributes are
a) key
b) id
c) owner
d) all of the mentioned
View Answer

Answer: d
Explanation: None.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. Which one of the following is not system V IPC ?
a) Shared Memory
b) Semaphores
c) FIFO
d) Message Queues
View Answer

Answer: c
Explanation: None.

7. Which system call is used to create Sys V message Queue.
a) msgget
b) shemget
c) semget
d) msgctl
View Answer

Answer: a
Explanation: None.
advertisement

8. Which is not the correct option for removing a message queue
a) ipcrm -Q
b) ipcrm -q
c) ipcrm -m
d) none of the mentioned
View Answer

Answer: c
Explanation: None.

9. Message queues are created in
a) userspace
b) kernelspace
c) userspace & kernelspace
d) none of the mentioned
View Answer

Answer: b
Explanation: None.
Sanfoundry Global Education & Learning Series – Linux Administration & Programming.

advertisement

Learn detailed answer of these interview questions and an in-depth coverage on Linux Systems Programming by our popular training program titled Linux Systems Programming delivered by our Founder & CTO.

Read here to know more about the skills required to become a Linux Systems Developer.

Here’s the list of Best Books in Linux Commands & Shell Programming.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.

To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux. These questions focuses on Process Management, Memory Management, File Management, Inter Process Communications, Signal Handling, etc.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.