State whether each of the following is true or false. If false, explain why. Assume the state- ment using std::cout; is used.
1) Declarations can appear almost anywhere in the body of a C++ function.
2) The modulus operator (%) can be used only with integer operands.
3) The arithmetic operators *, /, %, + and – all have the same level of precedence.
4) A C++ program that prints three lines of output must contain three statements using cout and the stream insertion operator.
1) True.
2) True.
3) False. The operators *, / and % have the same precedence, and the operators + and - have a lower precedence.
4) False. A single statement using cout containing multiple \n escape sequences also can print several lines.
You might also like to view...
________ are devices that transfer packets of data between two or more networks
Fill in the blank(s) with correct word
A PowerPoint theme includes backgrounds, colors, and a unified design
Indicate whether the statement is true or false
In a MenuStrip, placing what character in front of a unique letter allows the user to press Alt and then the given letter to activate the menu choice as an alternative to clicking it with the mouse?
A. % B. $ C. & D. >
What defines a string resource of related items in a central location within strings.xml?
A. text table B. string matrix C. string array D. character column