Which of the following statements are correct?
a. A reference variable is an object.
b. A reference variable references to an object.
c. A data field in a class must be of a primitive type.
d. A data field in a class can be of an object type.
bd (a) is wrong because a reference variable is not an object, it is a reference that points to an object. (c) is incorrect because a class may have a data field of an object type such as String.
You might also like to view...
What is the output of the following lines of code, given the function definition below?
int a = 4, b = 10; a = aFunction (a, b); cout << a << “ “ << b; int aFunction (int j, int &k) // function definition { while (j < k) { j++; k -= 2; } return j; } a) 4 10 b) 4 6 c) 6 6 d) 6 10
A stack can be adapted to store __________ data types.
a. all b. only built-in C++ c. only abstract d. deque-like e. None of these
Which of the following is an HTML-supported kind of path?
A. absolute B. relative C. interpreted D. Both A and B
Project 2013 information can be shared by copying and pasting project information into another application such as Excel or Word
Indicate whether the statement is true or false