Answer the following statements true (T) or false (F)
1) Declarations can appear almost anywhere in the body of a C++ function.
2) The remainder 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.
5) All operators are evaluated from left to right.
1) True.
2) True.
3) False. The operators *, / and % have the same precedence, and the operators + and -
have a lower precedence.
4) False. One statement with cout and multiple \n escape sequences can print several lines.
5) False. Some operators are evaluated from left to right, while other operators are evaluated right to left.
You might also like to view...
This is a file-level storage device that can be accessed by a network. Each device has its own Ethernet connection and IP address. Each can share its files with multiple clients on a network.
What will be an ideal response?
Which of the following items below is NOT a cloud service offering?
A) Software-as-a-Service (SaaS) B) Platform-as-a-Service (PaaS C) Business-as-a-Service (BaaS) D) Infrastructure-as-a-Service (IaaS)
?How do you save a PowerPoint presentation as a package presentation for CD and as a PDF?
What will be an ideal response?
Match the following units with the number of bytes
I. Petabyte II. Zettabyte III. Exabyte IV. Gigabyte V. Yottabyte A. 1,000 PB B. 1,000 ZB C. 1 billion D. 1,000 EB E. 1,000 TB