Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test

Home » C++ » Interview Questions on Classes & Objects in C++

Interview Questions on Classes & Objects in C++ : (27)


Question: 1

(A) Dcon DDest
(B) Dcon DDest BCon BDest
(C) BCon DCon DDest BDest
(D) BCon DCon BDes DDest

Compiler Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]


Question: 2

(A) Constructor
(B) 0
(C) Compilation Error
(D) Runtime Error

Compiler Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]


Question: 3

(A) Compilation Error - Constructor Missing
(B) Nothing would be printed
(C) Undefined
(D) In constructor

Compiler Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]


Question: 4

(A) Yes
(B) No

Compiler Forum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]


Question: 5

(A) Yes
(B) No

Compiler Forum
Expert classesAndobjects[Posted by: Admin | Chicago, USA]


Question: 6

(A) Yes
(B) No

Compiler Forum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]


Question: 7

(A) We can create n number of object
(B) We can create max 256 objects
(C) We can create 1 object
(D) We cant create object

Compiler Forum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]


Question: 8

(A) IS-A relation
(B) HAS-A relation
(C) None of these

Compiler Forum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]


Question: 9

(A) class
(B) field
(C) function
(D) property

Compiler Forum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]


Question: 10

(A) 0
(B) 1
(C) 2
(D) error

Compiler Forum
Practitioner classesAndobjects[Posted by: Rohit Iparkar | Pune]


Question: 11

(A) TRUE
(B) FALSE

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 12

(A) True
(B) False

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 13

(A) True
(B) False

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 14

(A) Honda->run;
(B) Honda.run();
(C) run()
(D) Honda()

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 15

(A) The programs runs with no output
(B) 77
(C) Hello!
(D) Hello!

Compiler Forum
Practitioner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 16

(A) True
(B) False

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 17

(A) static function
(B) utility function
(C) constructor
(D) destructor

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 18

(A) True
(B) False

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 19

(A) first variable name
(B) first function
(C) class name
(D) object name

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 20

(A) True
(B) False

Compiler Forum
Practitioner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 21

(A) True
(B) False

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 22

(A) TRUE
(B) FALSE

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 23

(A) True
(B) False

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 24

(A) True
(B) False

Compiler Forum
Practitioner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 25

(A) static
(B) auto
(C) exterb
(D) register

Compiler Forum
Practitioner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 26

(A) True
(B) False

Compiler Forum
Practitioner classesAndobjects[Posted by: Andrew | New Jersey]


Question: 27

(A) never
(B) must
(C) may
(D) None

Compiler Forum
Beginner classesAndobjects[Posted by: Andrew | New Jersey]


Compile C++ code here Upload your Questions

Browse C++ Categories

Loops Conditional Functions Operators Structure Enum FileHandling Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Reference Variables Virtual Functions Abstract Class STL Singleton Class Exceptions C++ 11 C++ 14 C++ 17 gcc/g++ others

Switch to C Questions