Question2. Mark the following statements as true or false. 5. Named constant content changes during execution. 6. Variables can be initialized when declared. 7. Pre-increment is described by: variable ++. 8. cin and cout are declared in the header file string. 9. Suppose x = 5. After the statement y = x++; executes, y is 5 and x is 6. 10. 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.
Question2. Mark the following statements as true or false.
5. Named constant content changes during execution.
6. Variables can be initialized when declared.
7. Pre-increment is described by: variable ++.
8. cin and cout are declared in the header file string.
9. Suppose x = 5. After the statement y = x++; executes, y is 5 and x is 6.
10. 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.
5. False
A constant is a piece of data whose value is fixed during the course of a programme.
6. True
In the same sentence as the declaration or later in the code, variables may be initialised.
7. False
The operator sign (++) occurs before the variable in Pre-Increment.
8. True
The output is shown on the standard output device using the cout object. The iostream header file contains its definition.
Step by step
Solved in 2 steps