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)
Explanation: 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...
Answer the following statements true (T) or false (F)
1) The protected members of a class may be accessed in their base class or any classes derived from that base class. 2) The first task of any derived-class constructor is to call its base-class constructor. 3) A "copy-and-paste" approach is a simple and efficient way from a software-engineering perspective of providing functionality that exists in other classes. 4) Using protected instance variables can cause derived-class methods to be written to depend on base-class implementation.
Briefly describe the two alternatives Snowden is considering for the proposed project tracking and reporting system.
What will be an ideal response?
You might want to avoid using 3-D charts because they can distort the appearance of the data
Indicate whether the statement is true or false
The best approach to creating a security policy is for a member of the IT staff to create the document in a few days with little or no input from other individuals.
Answer the following statement true (T) or false (F)