What do the calls to exit(…) do? When exit(0) and exit(1) are called, what receives these arguments and what is done with them?
a) The exit( ) function stops the program. The argument is discarded.
b) The exit( ) function is obsolete. There is no longer any such function in the C++ libraries.
c) The exit( ) function stops the program. The argument is passed to the operating system which uses it for an error code.
d) The exit( ) function temporarily stops the program, and sends the argument to the operating system which uses it for an error code. The operating system restarts the program after fixing the error.
e) The exit( ) function allows the systems programmer to escape when the power supply catches fire.
c) The exit( ) function stops the program. The argument is passed to the operating system which uses it for an error code.
The other answers are foils, with nothing to recommend them except that they might sound good to some students who have not adequately prepared.
You might also like to view...
A(n) ________ is a series of rows and columns that organize data in your document
Fill in the blank(s) with correct word
With the server running, start two clients in separate windows. Can you conduct the two client sessions in parallel? Describe and explain your observation. Does it agree with the sequence diagram in Figure 8d?
This exercise uses EchoServer1 and EchoClient1, which uses connectionless datagram sockets for the Echo service. Compile Echo*1.java (“javac Echo*1.java”). Then: