1. Command used to check shared memory is
a) ipcs
b) ipcs -m
c) ipcs -s
d) ipcs -q
View Answer
Explanation: None.
2. Which is Fastest IPC?
a) Message Queue
b) shared memory
c) Socket
d) All of the mentioned
View Answer
Explanation: None.
3. What is the persistancy level of Shared memory segments?
a) signal
b) process
c) file system
d) kernel
View Answer
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
Explanation: None.
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
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
Explanation: None.
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
Explanation: None.
8. Race condition can be avoided by using
a) semaphore
b) mutex
c) socket
d) both semaphore & mutex
View Answer
Explanation: None.
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
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
Explanation: None.
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
Explanation: None.
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]
- Apply for Programming Internship
- Practice Programming MCQs
- Check Information Technology Books
- Check Linux Books