Linux Interview Questions and Answers – IPC – 2

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. Command used to check shared memory is
a) ipcs
b) ipcs -m
c) ipcs -s
d) ipcs -q
View Answer

Answer: b
Explanation: None.

2. Which is Fastest IPC?
a) Message Queue
b) shared memory
c) Socket
d) All of the mentioned
View Answer

Answer: b
Explanation: None.

3. What is the persistancy level of Shared memory segments?
a) signal
b) process
c) file system
d) kernel
View Answer

Answer: d
Explanation: None.

4. The structure which keeps the information about shared memory in the kernel is
a) struct ipc_perm
b) struct semid_ds
c) struct shmid_ds
d) struct msgid_ds
View Answer

Answer: c
Explanation: None.
advertisement
advertisement

5. One process requires M resource to complete a job. What should be the minimum number of resources available for N processes so that at least one process can continue to execute without blocking/waiting?
a) M * N
b) M * N – 1
c) M * N + 1
d) M
View Answer

Answer: d
Explanation: None.

6. Semaphore P( ) operation usually does the following:
a) descrements the semaphore count and the process sleeps if needed
b) increments the semaphore count
c) wakes up a sleeping process
d) none of the mentioned
View Answer

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

7. Which call to use to set the resource count of semaphore?
a) semget( )
b) semctl( )
c) sem_setcount( )
d) sem_set_count( )
View Answer

Answer: d
Explanation: None.

8. Race condition can be avoided by using
a) semaphore
b) mutex
c) socket
d) both semaphore & mutex
View Answer

Answer: d
Explanation: None.
advertisement

9. A server which is handling one client at a time is called as
a) single server
b) multiserver
c) concurrent server
d) iterative server
View Answer

Answer: d
Explanation: None.

10. A server which is handling many clients at a time is called as
a) single server
b) multiserver
c) concurrent server
d) iterative server
View Answer

Answer: c
Explanation: None.
advertisement

11. A communication end-point is identified by
a) ip address
b) port number
c) both IP address and port number
d) none of the mentioned
View Answer

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

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.