ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ JAVA - JAVA OBJECT ORIENTED PROGRAMMING MCQ Questions
English
Hindi
Question No. -
11
Report Bug
Hiding the complexity in program is known as
Hiding the complexity in program is known as
A.
Abstraction
Abstraction
B.
Encapsulation
Encapsulation
C.
Data hiding
Data hiding
D.
Composition
Composition
Question No. -
12
Report Bug
For Cat and Animal class, correct way of inheritance in java is
For Cat and Animal class, correct way of inheritance in java is
A.
class Cat extends Animal
class Cat extends Animal
B.
class Animal extends Cat
class Animal extends Cat
C.
Both are correct way
Both are correct way
D.
None is correct way
None is correct way
Question No. -
13
Report Bug
In a class, encapsulating an object of another class is called
In a class, encapsulating an object of another class is called
A.
Composition
Composition
B.
Inheritance
Inheritance
C.
Encapsulation
Encapsulation
D.
None
None
Question No. -
14
Report Bug
IS-A relationship in java is related to
IS-A relationship in java is related to
A.
Inheritance
Inheritance
B.
Encapsulation
Encapsulation
C.
Composition
Composition
D.
None
None
Question No. -
15
Report Bug
If you want to write multiple functions in a class with same name, then what Java feature will you use?
If you want to write multiple functions in a class with same name, then what Java feature will you use?
A.
Function overriding
Function overriding
B.
Encapsulation
Encapsulation
C.
Function overloading
Function overloading
D.
None
None
Question No. -
16
Report Bug
Polymorphism types in Java is/are
Polymorphism types in Java is/are
A.
Compile time
Compile time
B.
Run time
Run time
C.
Both
Both
D.
None
None
Question No. -
17
Report Bug
Name the programming technique that implements programs as an organised collection of interactive objects.
Name the programming technique that implements programs as an organised collection of interactive objects.
A.
Procedure Oriented Programming
Procedure Oriented Programming
B.
Modular Programming
Modular Programming
C.
Object Oriented Programming
Object Oriented Programming
D.
None of these
None of these
Question No. -
18
Report Bug
Name the characteristics of Object Oriented Programming that hides the complexity and provides a simple interface
Name the characteristics of Object Oriented Programming that hides the complexity and provides a simple interface
A.
Encapsulation
Encapsulation
B.
Polymorphism
Polymorphism
C.
Abstraction
Abstraction
D.
Inheritance
Inheritance
Question No. -
19
Report Bug
Which among the following operator is used to access individual members of an object?
Which among the following operator is used to access individual members of an object?
A.
. (dot)
. (dot)
B.
+ (plus)
+ (plus)
C.
– (minus)
– (minus)
D.
/ (divide)
/ (divide)
Question No. -
20
Report Bug
Which among the following modifier is used in a ‘class’?
Which among the following modifier is used in a ‘class’?
A.
public
public
B.
default
default
C.
Both a and b
Both a and b
D.
None of these
None of these
1
2
3
4
5
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