Menu mobile
Home
PYTHON
Python Tutorial
Program Example
Interview Questions
JAVA
Java Tutorial
Program Example
Interview Questions
C Language
C Tutorial
Program Example
Interview Questions
Web Design
HTML
CSS
Java Script
PHP
Assignment
MS Office
HTML
CSS
Java Script
QUIZ ON : JAVA - OBJECT ORIENTED PROGRAMMING
OBJECT ORIENTED PROGRAMMING
00:00:00
English
Hindi
Question No# :
01
out of 50
What is meant by state of an object?
A.
Functions of the object
B.
Data Members of the object
C.
Content of an object
D.
All of these
Question No# :
02
out of 50
When does method overloading is determined?
A.
At run time
B.
At compile time
C.
At coding time
D.
At execution time
Question No# :
03
out of 50
Data members in a class is used to represent the characteristic of an object
A.
TRUE
B.
FALSE
Question No# :
04
out of 50
Exposing only necessary information to clients ( main programs, classes) is known as
A.
Abstraction
B.
Encapsulation
C.
Data hiding
D.
Hiding complexity
Question No# :
05
out of 50
An object is called a class factory
A.
TRUE
B.
FALSE
Question No# :
06
out of 50
Encapsulation refers to the art of hiding the complexities and giving a simple interface.
A.
TRUE
B.
FALSE
Question No# :
07
out of 50
Which among the following is a valid object name?
A.
obj1
B.
1obj
C.
Obj 1
D.
Obj#1
Question No# :
08
out of 50
Which among the following operator is used to access individual members of an object?
A.
. (dot)
B.
+ (plus)
C.
– (minus)
D.
/ (divide)
Question No# :
09
out of 50
What is the ability of an object to take on many forms called?
A.
Polymorphism
B.
Encapsulation
C.
Abstraction
D.
Inheritance
Question No# :
10
out of 50
Abstraction is same as encapsulation
A.
TRUE
B.
FALSE
Question No# :
11
out of 50
Polymorphism types in Java is/are
A.
Compile time
B.
Run time
C.
Both
D.
None
Question No# :
12
out of 50
If you want to write multiple functions in a class with same name, then what Java feature will you use?
A.
Function overriding
B.
Encapsulation
C.
Function overloading
D.
None
Question No# :
13
out of 50
The new operator is used to create an object
A.
TRUE
B.
FALSE
Question No# :
14
out of 50
Which of the following is not OOPS concept in Java?
Which of the following is not OOPS concept in Java?
A.
Inheritance
Inheritance
B.
Encapsulation
Encapsulation
C.
Polymorphism
Polymorphism
D.
Compilation
Compilation
Question No# :
15
out of 50
Java is an example of Object Oriented Language
A.
TRUE
B.
FALSE
Question No# :
16
out of 50
A class is a mechanism to implement encapsulation
A.
TRUE
B.
FALSE
Question No# :
17
out of 50
Runtime polymorphism feature in java is
A.
method overriding
B.
method overloading
C.
constructor overloading
D.
operator overloading
Question No# :
18
out of 50
Name the programming technique that specifies a series of well-structured steps and procedures within its programming context to compose a program.
A.
Procedure Oriented Programming
B.
Modular Programming
C.
Object Oriented Programming
D.
None of these
Question No# :
19
out of 50
Which among the following modifier is used in a ‘class’?
A.
public
B.
default
C.
Both a and b
D.
None of these
Question No# :
20
out of 50
Name the programming technique that implements programs as an organized collection of interactive objects.
A.
Procedure Oriented Programming
B.
Modular Programming
C.
Object Oriented Programming
D.
None of these
Question No# :
21
out of 50
Name the programming technique that implements programs as an organised collection of interactive objects.
A.
Procedure Oriented Programming
B.
Modular Programming
C.
Object Oriented Programming
D.
None of these
Question No# :
22
out of 50
Name the characteristics of Object Oriented Programming that hides the complexity and provides a simple interface
A.
Encapsulation
B.
Polymorphism
C.
Abstraction
D.
Inheritance
Question No# :
23
out of 50
Abstraction is same as Encapsulation.
A.
TRUE
B.
FALSE
Question No# :
24
out of 50
It’s a rule to have a class-name beginning in capital letter
A.
TRUE
B.
FALSE
Question No# :
25
out of 50
Procedure Oriented Language follows top down approach.
A.
TRUE
B.
FALSE
Question No# :
26
out of 50
Which of the following is not OOPS concept in Java?
A.
Inheritance
B.
Encapsulation
C.
Polymorphism
D.
Compilation
Question No# :
27
out of 50
Following concept can be used for encapsulation in java programs
A.
Wrapping data fields with methods
B.
Hiding data and internal methods using access modifiers in a class
C.
Using Interfaces
D.
All of the above
Question No# :
28
out of 50
Java is an example of Object Oriented Language.
A.
TRUE
B.
FALSE
Question No# :
29
out of 50
For Cat and Animal class, correct way of inheritance in java is
A.
class Cat extends Animal
B.
class Animal extends Cat
C.
Both are correct way
D.
None is correct way
Question No# :
30
out of 50
Hiding the complexity and giving a simple interface is called Inheritance.
A.
TRUE
B.
FALSE
Question No# :
31
out of 50
A ____ is a template that binds together data and methods together
A.
Class
B.
Object
C.
Method
D.
None of these
Question No# :
32
out of 50
Java does not support _______________
A.
Inheritance
B.
Multiple inheritance for classes
C.
multiple inheritance of interface
D.
compile time polymorphism
Question No# :
33
out of 50
Which among the following is a valid class name?
A.
Simple Interest
B.
SimpleInterest
C.
1SimpleInterest
D.
Simple@Interest
Question No# :
34
out of 50
Java object oriented programming concepts is/are
A.
Encapsulation
B.
Inheritance
C.
polymorphism
D.
All of the above
Question No# :
35
out of 50
What is the behaviour aspect of an object represented by?
A.
Member Functions
B.
Data Members
C.
Both a and b
D.
None of these
Question No# :
36
out of 50
Which of the following is a type of polymorphism in Java?
A.
Compile time polymorphism
B.
Execution time polymorphism
C.
Multiple polymorphism
D.
Multilevel polymorphism
Question No# :
37
out of 50
Which statement about objects is true?
ऑब्जेक्ट के बारे में कौन सा कथन सत्य है?
A.
One object is used to create one class.
One object is used to create one class.
B.
One class is used to create one object.
One class is used to create one object.
C.
One object can create many classes.
One object can create many classes.
D.
One class can create many objects.
One class can create many objects.
Question No# :
38
out of 50
Hiding the complexity in program is known as
A.
Abstraction
B.
Encapsulation
C.
Data hiding
D.
Composition
Question No# :
39
out of 50
Name the characteristics of Object Oriented Programming that hides the complexity and provides a simple interface.
A.
Encapsulation
B.
Polymorphism
C.
Abstraction
D.
Inheritance
Question No# :
40
out of 50
A set of instructions given to a computer to do a particular task.
A.
Program
B.
High level Language
C.
Object
D.
None of these
Question No# :
41
out of 50
Procedure Oriented Language follows top down approach.
A.
TRUE
B.
FALSE
Question No# :
42
out of 50
Encapsulation refers to the art of hiding the complexities and giving a simple interface
A.
TRUE
B.
FALSE
Question No# :
43
out of 50
IS-A relationship in java is related to
A.
Inheritance
B.
Encapsulation
C.
Composition
D.
None
Question No# :
44
out of 50
What is the term that is used to represent hierarchical relationship of generalization?
A.
Polymorphism
B.
Encapsulation
C.
Abstraction
D.
Inheritance
Question No# :
45
out of 50
Name the art of implementing Encapsulation in Object Oriented Programming.
A.
Polymorphism
B.
Encapsulation
C.
Abstraction
D.
class
Question No# :
46
out of 50
Which concept of Java is a way of converting real world objects in terms of class?
A.
Polymorphism
B.
Encapsulation
C.
Abstraction
D.
Inheritance
Question No# :
47
out of 50
A class is an instance of an object
A.
TRUE
B.
FALSE
Question No# :
48
out of 50
Encapsulation concept in java is
A.
Hiding complexity
B.
Method hiding
C.
Hiding constructor
D.
None
Question No# :
49
out of 50
In a class, encapsulating an object of another class is called
A.
Composition
B.
Inheritance
C.
Encapsulation
D.
None
Question No# :
50
out of 50
An object is represented by two attributes, out of which one is characteristics and the other one is
A.
Behaviour
B.
Situation
C.
Abstraction
D.
Encapsulation
CCC Online Test 2021
CCC Practice Test Hindi
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 NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Website development Company in Allahabad