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

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


Correct Answer:  B. &

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 data type of the variable to which it points
E. A pointer variable is typically referred to simply as a pointer


Correct Answer:  C. Pointers are typically initialized to the empty string (“”)

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

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


Correct Answer:  A. setf()

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


Correct Answer:  B. type and name

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


Correct Answer:  D. the number 0

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    8 + 16 =