ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ JAVA - JAVA CLASS AND OBJECTS MCQ Questions
English
Hindi
Question No. -
01
Report Bug
Name the operator that is used to allocate memory space for an object.
Name the operator that is used to allocate memory space for an object.
A.
Dot
Dot
B.
New
New
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
02
Report Bug
How are the characteristics of an object represented in a class?
How are the characteristics of an object represented in a class?
A.
Data Members
Data Members
B.
Member Functions
Member Functions
C.
Access specifiers
Access specifiers
D.
None of these
None of these
Question No. -
03
Report Bug
Which among the following is used to change the state of an object?
Which among the following is used to change the state of an object?
A.
Data Members
Data Members
B.
Name of the class
Name of the class
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
04
Report Bug
How is encapsulation implemented in a program?
How is encapsulation implemented in a program?
A.
Using a class
Using a class
B.
Using only Functions
Using only Functions
C.
Using only Variables
Using only Variables
D.
None of these
None of these
Question No. -
05
Report Bug
Information passed to a method through arguments is called
Information passed to a method through arguments is called
A.
Message
Message
B.
Variables
Variables
C.
Numbers
Numbers
D.
Data
Data
Question No. -
06
Report Bug
What among the following is not a component of a message?
What among the following is not a component of a message?
A.
An object identifier
An object identifier
B.
A method name
A method name
C.
Arguments
Arguments
D.
Data Members
Data Members
Question No. -
07
Report Bug
How many objects can you create from a class?
How many objects can you create from a class?
A.
One
One
B.
Two
Two
C.
Three
Three
D.
Any number
Any number
Question No. -
08
Report Bug
Which among the following creates a blueprint to represent characteristic and behaviour of an object?
Which among the following creates a blueprint to represent characteristic and behaviour of an object?
A.
Object
Object
B.
Class
Class
C.
Instance
Instance
D.
None of these
None of these
Question No. -
09
Report Bug
Which among the following do not belong to an object?
Which among the following do not belong to an object?
A.
State
State
B.
Behaviour
Behaviour
C.
Identity
Identity
D.
Class
Class
Question No. -
10
Report Bug
Which among the following is not a component of a class?
Which among the following is not a component of a class?
A.
Modifiers
Modifiers
B.
Class name
Class name
C.
Object
Object
D.
Body
Body
1
2
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad