Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : cpp - CLASS AND OBJECT
CLASS AND OBJECT
00:00:00
English
Hindi
Question No# :
01
out of 8
Data members and member functions are enclosed within
Data members and member functions are enclosed within
A.
union
union
B.
structure
structure
C.
class
class
D.
Array
Array
Question No# :
02
out of 8
Which of the following operators allow to define the member functions of a class outside the class?
Which of the following operators allow to define the member functions of a class outside the class?
A.
: :
: :
B.
?
?
C.
: ?
: ?
D.
%
%
Question No# :
03
out of 8
What is an object in C++
What is an object in C++
A.
Object is part of syntax of a class
Object is part of syntax of a class
B.
Object is datatype of a class
Object is datatype of a class
C.
Object is an instance of a class
Object is an instance of a class
D.
Object is function of a class
Object is function of a class
Question No# :
04
out of 8
Which of the following keywords are used to control access to a class member
Which of the following keywords are used to control access to a class member
A.
protected
protected
B.
switch
switch
C.
goto
goto
D.
for
for
Question No# :
05
out of 8
Which among following is correct way of declaring object of a class
Which among following is correct way of declaring object of a class
A.
Classname Objectname
Classname Objectname
B.
Class Classname Objectname
Class Classname Objectname
C.
Class Classname Object Objectname
Class Classname Object Objectname
D.
Classname Object Objectname
Classname Object Objectname
Question No# :
06
out of 8
Classes in c++ are
Classes in c++ are
A.
Fundamental data type
Fundamental data type
B.
Primitive data type
Primitive data type
C.
User Defined data type
User Defined data type
D.
Not defined
Not defined
Question No# :
07
out of 8
What is the purpose of a return statement in a function?
What is the purpose of a return statement in a function?
A.
Returns the value and continues executing rest of the statements, if any
Returns the value and continues executing rest of the statements, if any
B.
Returns the value and stops the program
Returns the value and stops the program
C.
Returns the value and stops executing the function
Returns the value and stops executing the function
D.
Stops executing the function and returns the value
Stops executing the function and returns the value
Question No# :
08
out of 8
How can we define a member function outside the class
How can we define a member function outside the class
A.
Using union
Using union
B.
Using structure
Using structure
C.
Using pointers
Using pointers
D.
Using scope resolution
Using scope resolution
Latest Current Affairs 2025
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2025
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz