Object Oriented Programming Using C++ – Section 5

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

Warning: Undefined variable $in_same_cat in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Warning: Undefined variable $excluded_categories in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Leave A Comment?