Tuesday, November 6, 2018

LP Objective QA

11. In message queue , the first parameter is key value , the second parameter is ________
a) key value  b) flag value   c) register value

12. Which of the following function is used to retrieve message from message queue
a) msgget()   b) msgsend()  c) msgrcv()

13. Which one of the following is not included in the message queue
a) queues  b) envelopes   c)stack

14 .Memory for a message as well as metadata is holded by
a) stack  b) envelope  c)queue

15. Which of the following supports the receiving with message handlers
a) GNUNET_CLIENT_CONNECTION      b) GNUNET_SERVER_CLIENT     c) GNUNET_MESH_TUNNEL

16. Which of the following supports the receiving with message handlers
a) unary  b) tertiary  c) binary

17. The special key value _________ allows to create the semaphore
a) IPC_PRIVATE   b) IPC_PUBLIC   c) IPC_PROTECTED

18.________bits are the permissions for the semaphore
a) 5   b) 9   c) 1

19. Which is used for initializing a semaphore to a known value
a) SETVAL   b) GETVAL   c)SEMVAL

20. _______deletes the semophore identifier
a) IPC_REMOVE    b) IPC_RMID    c) IPC_DELETE

21. The command which is used to change its ownership or permissions if you are the semaphore creator is
a) semget()   b) semctl()  c) semop()

22. A POSIX Semaphore structure defines ________semaphore
a) single   b) double   c) triple

23. Which of the following command is used to initialize a semaphore structure
a) sem_getvalue()   b) sem_init()   c)sem_open()


24. In the function semaphore_v() , the semop member of the structure sembuf is set to ___
a) 0  b) 1  c)2

25. Which function provides a mean of passing data between two programs
a) sem()  b) pipe()  c) sock()

No comments: