CppBuzz.com
  
Home C C++ Java Python Perl PHP Spring SQL Javascript Linux Forum

You are here : 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 DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 2

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

Compiler DiscussOnForum
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 DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 4

(A) Yes
(B) No

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



Question: 5

(A) Yes
(B) No

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



Question: 6

(A) Yes
(B) No

Compiler DiscussOnForum
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 DiscussOnForum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 8

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

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



Question: 9

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

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



Question: 10

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

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



Question: 11

(A) TRUE
(B) FALSE

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



Question: 12

(A) True
(B) False

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



Question: 13

(A) True
(B) False

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



Question: 14

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

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



Question: 15

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

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



Question: 16

(A) True
(B) False

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



Question: 17

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

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



Question: 18

(A) True
(B) False

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



Question: 19

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

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



Question: 20

(A) True
(B) False

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



Question: 21

(A) True
(B) False

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



Question: 22

(A) TRUE
(B) FALSE

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



Question: 23

(A) True
(B) False

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



Question: 24

(A) True
(B) False

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



Question: 25

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

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



Question: 26

(A) True
(B) False

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



Question: 27

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

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


Compile C++ code here  |  Upload your Questions

C++ Objective Questions By Different Categories:-
Loops | Conditional | Functions | Operators | Structure | Enum | Storage Classes | Union | FileHandling | Data Types | Inheritance | Pointers | Classes & Objects | Vtable | Type Casting | New & Delete | Namespaces | Reference Variables | Static Cast | Dynamic Cast | Reinterpret Cast | Const Cast | Virtual Functions | Abstract Class | STL | Singleton Class | C++ 11 | C++ 14 | C++ 17 | C++ 20 | gcc/g++ | others

Switch to C Questions