1.An l-value is not required to be a location in memory.
Group of answer choices
True
False
2. An l-value cannot have a value assigned to it, whereas an r-value can.
Group of answer choices
True
False
3. In C++, the body of a for loop may never run, even once.
Group of answer choices
True
False
4. When a C++ programmer declares a function, they are required to state all of the following except
Group of answer choices
{}
The type of data, if any, returned by the function
The function name
The type of data, if any, sent to the function
5. When a C++ programmer calls a function, she states all of the following except
Group of answer choices
{}
The actual run-time data values, if any, sent to the function
The function's name
The actual run-time data value, if any, returned to the function
6. Supposed you want to write a function whose parameters are not modified by code executed in the function. That is, she wants the values from the calling's function to not be modified by the function being called. What kind of parameters should you use?
Group of answer choices
pass-by-value
pass-by-reference
pass-by-name parameters
array parameters
1.An l-value is not required to be a location in memory.
False
2. An l-value cannot have a value assigned to it, whereas an r-value can.
False
3. In C++, the body of a for loop may never run, even once.
True
4. When a C++ programmer declares a function, they are required to state all of the following except
{}
5. When a C++ programmer calls a function, she states all of the following except
The actual run-time data value, if any, returned to the function
6. Supposed you want to write a function whose parameters are not modified by code executed in the function. That is, she wants the values from the calling's function to not be modified by the function being called. What kind of parameters should you use?
pass-by-value
Get Answers For Free
Most questions answered within 1 hours.