Problem

The number in parentheses at the end of an exercise refers to the learning objective lis...

The number in parentheses at the end of an exercise refers to the learning objective listed at the beginning of the chapter.

Mark the following statements as true or false.

a. An identifier can be any sequence of digits and letters. (1)

b. In C++, there is no difference between a reserved word and a predefined identifier. (1)

c. A C++ identifier can start with a digit. (1)

d. The operands of the modulus operator must be integers. (3)

e. If a = 4; and b = 3;, then after the statement a = b; the value of b is still 3. (6)

f. In the statement cin >> y;, y can only be an int or a double variable. (8)

g. In an output statement, the newline character may be a part of the string. (10)

h. The following is a legal C++ program: (1, 13)

i. In a mixed expression, all the operands are converted to floating-point numbers. (4)

j. Suppose x = 5. After the statement y = x++; executes, y is 5 and x is 6. (9)

k. Suppose a = 5. After the statement ++a; executes, the value of a is still 5 because the value of the expression is not saved in another variable. (9)

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT