CPP Pointers MCQ

Cpp MCQ
  1. Home
  2. Tutorials
  3. Cpp
  4. Pointers
  5. Multiple Choice Question

(1) Which of the following is correct syntax to cast void pointer into int using C++ ?

A) static_cast<int*>
B) static_cast<*int>
C) *static_cast<int>
D) *static_cast<int*>

(2) Which of the following is considered as critical type of pointer ?

A) Void
B) NULL
C) Wild
D) Dangling

(3) How many bytes occupied by a void pointer in memory

A) 2
B) 4
C) 8
D) 16

(4) Which of the following is called dereference operator ?

A) *
B) &
C) "
D) #

(5) Which of the following is called address operator?

A) &
B) %
C) *
D) @

(6) Which of the following operator is used while pointers declaration?

A) *
B) @
C) &
D) %

(7) Which of the following type data is stored in pointers?

A) Decimal
B) Octal
C) Binary
D) Hexadecimal

(8) Pointers are used to store which of the following?

A) Data
B) Address
C) Other variable
D) None

.

Comments
Login to TRACK of Comments.