Question: Please answer all multiple choice and true or false thank you <3 1. Asynchronous methods in C++ can return values after operations. True False 2.
Please answer all multiple choice and true or false thank you <3
1. Asynchronous methods in C++ can return values after operations. True False
2. The semaphore's acquire() method decrements its value if the counter is positive. True False
3.The proper sequence in creating a server program in C++ A) socket(), bind(), listen(), accept() and close() B) socket(), listen(), bind(), accept() and close() C) bind(), socket(), listen(), accept() and close() D) socket(), bind(), accept(), listen() and close()
4.Asynchronous methods in C++ can operate with or without return values. True False
5. It is an IPC Strategy where system messages are sent from one process to another. A) Pipes B) Signal C) File D) Socket
6.________________ programming isa way of connecting two nodes on a network to communicate with each other. A) Socket B) Shared Memory C) Asynchronous D) Synchronous
7. It is an IPC Strategy where a data channel exist that is unidirectional A) Pipes B) Socket C Message Queues D) Shared Memory
8. ___________is the mechanism provided by the operating system that allows processes to communicate with each other A) Sockets B) Asynchronous C) Semaphores D) Interprocess Communication
9. What is the range of value allowed for counting semaphores A) 1 to 10 B) O and 1 C) 1 to 1000 D) O to Platform Dependent Maximum Constant
10. The semaphore's release() method always increments the counter's value. True False
11. What is the order Of arguments in listen()? A) Param I = Port Number, Param IP address B) None C) Param 1 = Maximum number of connections, Param The Socket to Listen D) Param 1 = The Socket to Listen, Param 2 Maximum number of connections
12. Asynchronous methods in C++ cannot return values after operations. True False
13. A function template in C++ that runs a method asynchronously in a separate thread A)future B) poll C) thread D) async
14. Which one of the following is a synchronization tool? A) thread B) semaphore C) Pipe D) socket
15. Function used to attach the socket to a specific port A) bind B) listen C) setsockopt D) accept
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
