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...
What are each of the following:
1. MIDI 2. MP3 3. Analog 4. Amplitude 5. Sampling rate
________ breaks down a problem into a series of high-level tasks and continues to break each task into successively more detailed subtasks
A) Object-oriented analysis B) Bottom-up design C) Inheritance D) Top-down design
Match each of the following Windows 10 apps/programs to their meanings:
I. Mail for Windows 10 II. Snipping Tool III. Maps IV. Money V. Weather A. can provide directions to a location B. can provide your weather or the weather in another location C. used to read and respond to messages from multiple email accounts from a single user interface D. provides financial news and information E. can capture an image of all or part of a computer's screen
Which of the following notations is used to write object properties?
A. object(property) B. object{"property"} C. object["property"] D. Object:"property"