Computer Science - Object Oriented Programming Using C++

26.
The String data type is an extension of the _____ data type
Character
Double
Letter
Long
Text
Answer: Option
Explanation:
No answer description is available. Let's discuss.

27.
An advantage of using local variables is that _____
they are known to all functions in the file
names used in one function do not affect data stored in variables with the same names in other functions
values given to local variables are retained when those parameters go out of scope
the program does not become "crowded" with too many variable names
Answer: Option
Explanation:
No answer description is available. Let's discuss.

28.
The difference between a return and a throw is that _____
with a throw, no value can be sent
with a return, no value can be sent
with a throw, execution takes place at the location from which the function was called
with a return, execution takes place at the location from which the function was called
Answer: Option
Explanation:
No answer description is available. Let's discuss.

29.
Which is a good reason for passing a variable's address to a function?
the function will have a copy of the variable
the function cannot change the value of the variable in the calling function
C++ requires that all variables used in a function be passed by address
the function needs to change multiple variable values
the called function can change the value of the variable in the calling function
Answer: Option
Explanation:
No answer description is available. Let's discuss.

30.
The string HELLO WORLD needs
11 bytes
12 bytes
10 Bytes
8 bytes
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.