Computer Science - Object Oriented Programming Using C++

41. 

In C++, the address operator is the following symbol _____

A. >>
B. &
C. *
D. !

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

42. 

Which of the following is false?

A. A pointer variable contains the address of a variable in memory
B. You should both declare and initialize a pointer before you use it
C. Pointers are typically initialized to the empty string ("")
D. A pointer's datatype must match the datatype of the variable to which it points
E. A pointer variable is typically referred to simply as a pointer

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

43. 

The function that takes arguments to set the bits of cout is _____

A. setf()
B. bitset()
C. ios()
D. flat()

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

44. 

When you declare a pointer, you must give it a _____

A. type
B. type and name
C. type, name, and value
D. name and value

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

45. 

You typically initialize Short Integer, Integer, and Long Integer variables to

A. a space enclosed in double quotes
B. a space enclosed in single quotes
C. the letter O
D. the number 0
E. the value false

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.