Explore topic-wise MCQs in Object Oriented Programming Using C++.

This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Object Oriented Programming Using C++ knowledge and support exam preparation. Choose a topic below to get started.

1.

If a pointer to an object is created and the object gets deleted without using the pointer then __________

A. It becomes void pointer
B. It becomes dangling pointer
C. It becomes null pointer
D. It becomes zero pointer
Answer» C. It becomes null pointer
2.

What is the size of an object pointer?

A. Equal to size of any usual pointer
B. Equal to size of sum of all the members of object
C. Equal to size of maximum sized member of object
D. Equal to size of void
Answer» B. Equal to size of sum of all the members of object
3.

If pointer to an object is declared __________

A. It can store any type of address
B. It can store only void addresses
C. It can only store address of integer type
D. It can only store object address of class type specified
Answer» E.
4.

Which language among the following doesn t allow pointers?

A. C++
B. Java
C. Pascal
D. C
Answer» C. Pascal