Table of Contents
Understanding the Basic Concepts of OOP (Object-Oriented Programming)
🔒 Please log in to unlock this course.
ONLINE CLASSES BY RUMMAN ANSARI
Stuck on a Java Program? Ask Your Doubt Directly
Book a one-to-one session to get your questions answered, or message on WhatsApp for live online classes in Java Programming.
- 1:1 Mentoring
- Doubt Clearing
- Interview Preparation
Related Questions
Question 1
Design a program in Java to calculate the discount given to a customer on purchasing LED…
Locked. Enroll to open this question.
Question 2
The characteristics of the ___________ objects are considered to be the data members of the…
Locked. Enroll to open this question.
Question 3
The ___________ of a class differs on various characteristics.
Locked. Enroll to open this question.
Question 4
A real world object deals with characteristics and ___________ .
Locked. Enroll to open this question.
Question 5
A class is also considered as an ___________ factory.
Locked. Enroll to open this question.
Question 6
Which of the Object Oriented programming principles explain the following illustrations? Justify.
Locked. Enroll to open this question.
Question 7
Give two differences between Procedure Oriented languages and Object Oriented languages.
Locked. Enroll to open this question.
Question 8
'Encapsulation reduces the complexity and makes the system easier'. Explain this statement with a…
Locked. Enroll to open this question.
Question 9
Give two differences between Data Hiding and Encapsulation.
Locked. Enroll to open this question.
Question 10
What is meant by Data Hiding?
Locked. Enroll to open this question.
Question 11
Give an example to explain Data Abstraction.
Locked. Enroll to open this question.
Question 12
In what way is Data Hiding related to Data Abstraction?
Locked. Enroll to open this question.
Question 13
An object of a class is created by using a keyword ___________ .
Locked. Enroll to open this question.
Question 14
Class is a ___________ of the objects.
Locked. Enroll to open this question.
Question 15
Mention three characteristics and two methods for the following Classes: (a) class Mobile Phone (b)…
Locked. Enroll to open this question.
Question 16
Write a statement to create an object 'Keyboard' of the class 'Computer'.
Locked. Enroll to open this question.
Question 17
Why is an Object called an 'Instance' of a class? Explain.
Locked. Enroll to open this question.
Question 18
Class and Objects are inter-related. Explain.
Locked. Enroll to open this question.
Question 19
A statement is given as: 'Study_Table' is an object of the class 'Furniture'. Write down Java…
Locked. Enroll to open this question.
Question 20
Why is a class known as composite data type?
Locked. Enroll to open this question.
Question 21
A class is also referred to as 'Object Factory'. Comment.
Locked. Enroll to open this question.
Question 22
What does the following statement mean? Employee staff = new Employee ( );
Locked. Enroll to open this question.
Question 23
Define class and object with an example.
Locked. Enroll to open this question.
Question 24
How will you define a software object?
Locked. Enroll to open this question.
Question 25
___________ keyword is used for dynamic allocation of an object.
Locked. Enroll to open this question.
Question 26
Define the following with an example each. (a) Inheritance (b) Polymorphism
Locked. Enroll to open this question.
Question 27
What is meant by Encapsulation?
Locked. Enroll to open this question.
Question 28
Write down any two disadvantages of Machine Level Language
Locked. Enroll to open this question.
Question 29
Write down two advantages of Polymorphism.
Locked. Enroll to open this question.
Question 30
Write the difference between Assembly language and Machine level.
Locked. Enroll to open this question.
Question 31
Write the difference between Polymorphism and Encapsulation.
Locked. Enroll to open this question.
Question 32
Write the difference between Polymorphism and Encapsulation.
Locked. Enroll to open this question.
Question 33
Write any 2 disadvantages of Object-oriented programming.
Locked. Enroll to open this question.
Question 34
Define Polymorphism with a real-life example.
Locked. Enroll to open this question.
Question 35
Creating ___________ is the fundamental concept in object oriented programming language.
Locked. Enroll to open this question.
Question 36
Write the difference between POP and OOP.
Locked. Enroll to open this question.
Question 37
Write the difference between High Level Language and Low-Level language?
Locked. Enroll to open this question.
Question 38
Write the difference between High Level Language and Low-Level language.
Locked. Enroll to open this question.
Question 39
___________ is the fundamental concept in object oriented programming language.
Locked. Enroll to open this question.
Question 40
Objects can communicate with each other through ___________ in object oriented programming language.
Locked. Enroll to open this question.
Question 41
Mention two limitations of procedure oriented programming approach.
Locked. Enroll to open this question.
Question 42
What is meant by a base class and a derived class?
Locked. Enroll to open this question.
Question 43
Why do we prefer object oriented approach in complex programming? Explain.
Locked. Enroll to open this question.
Question 44
Name four basic principles of object oriented programming.
Locked. Enroll to open this question.
Question 45
What is object oriented programming? Name two object oriented programming languages.
Locked. Enroll to open this question.
Question 46
In encapsulation, data can be ___________ or ___________ whereas, in data hiding, data must be…
Locked. Enroll to open this question.
Question 47
___________ confirms the security of data members from being manipulated from unauthorized access.
Locked. Enroll to open this question.
Question 48
___________ promotes the reusability feature, in object oriented programming.
Locked. Enroll to open this question.
Question 49
Feature of wrapping ___________ and ___________ as a single unit is called encapsulation.
Locked. Enroll to open this question.
Question 50
___________ is an act of representing essential features without including background details.
Locked. Enroll to open this question.
Question 51
Using a function for multiple operations is called as ___________ .
Locked. Enroll to open this question.
Question 52
What are the supported platforms by Java Programming Language?
Locked. Enroll to open this question.
Related Assignments
Assignment 1
My First Program in Java: Hello World
Locked. Enroll to open this assignment.
Assignment 2
Java Program to Print Your Name (My First Java Program)
Locked. Enroll to open this assignment.
MCQ Section
MCQ 1
In procedure oriented programming, the stress is given on:
Locked. Enroll to open this MCQ.
MCQ 2
Which of the following paradigm follows the Top-down approach?
Locked. Enroll to open this MCQ.
MCQ 3
Wrapping up of data and Member functions together into a single unit is called
Locked. Enroll to open this MCQ.
MCQ 4
Which of the following is a pillar of Object-Oriented programming?
Locked. Enroll to open this MCQ.
MCQ 5
Which of the following is a user friendly computer language?
Locked. Enroll to open this MCQ.
MCQ 6
______ allows multiple objects of different subclasses to be treated as objects of a single super…
Locked. Enroll to open this MCQ.
MCQ 7
The objects we see around us are called as:
Locked. Enroll to open this MCQ.
MCQ 8
Which of the following is true for Polymorphism?
Locked. Enroll to open this MCQ.
MCQ 9
A programmer needs a computer language to communicate with a
Locked. Enroll to open this MCQ.
MCQ 10
What is the primary purpose of abstraction in OOP?
Locked. Enroll to open this MCQ.
MCQ 11
Java follows the principle of
Locked. Enroll to open this MCQ.
MCQ 12
Which of the following principle shows the essential features without knowing the background…
Locked. Enroll to open this MCQ.
MCQ 13
Which of the following keywords is used to create an instance of a class?
Locked. Enroll to open this MCQ.
MCQ 14
Which of the following software displays the errors for the whole program together?
Locked. Enroll to open this MCQ.
MCQ 15
Which of the following is a blue print that creates objects of similar types?
Locked. Enroll to open this MCQ.
MCQ 16
Which of the following is an example of Procedural Oriented language?
Locked. Enroll to open this MCQ.
MCQ 17
The process by which a class acquires the properties from another class is called:
Locked. Enroll to open this MCQ.
MCQ 18
Which of the following is not an object oriented programming language?
Locked. Enroll to open this MCQ.
MCQ 19
The process of restricting the free flow of data from the outside world is known as:
Locked. Enroll to open this MCQ.
MCQ 20
String constant can be written by using a set of alphanumeric characters?
Locked. Enroll to open this MCQ.
MCQ 21
What does the term "inheritance" refer to in the context of OOP?
Locked. Enroll to open this MCQ.
MCQ 22
What does JVM stand for?
Locked. Enroll to open this MCQ.
MCQ 23
Which of the following language is known as user friendly computer language?
Locked. Enroll to open this MCQ.
MCQ 24
Which of the following principle uses the concept of reusability?
Locked. Enroll to open this MCQ.
MCQ 25
The ............... is called an instance of a class.
Locked. Enroll to open this MCQ.
MCQ 26
Question: Which of the following is not an object-oriented programming language?
Locked. Enroll to open this MCQ.
MCQ 27
The process of restricting the free flow of data from the outside world is known as?
Locked. Enroll to open this MCQ.
MCQ 28
In OOP, what is a "method"?
Locked. Enroll to open this MCQ.
MCQ 29
What is a key advantage of using Object-Oriented Programming (OOP)?
Locked. Enroll to open this MCQ.
MCQ 30
What is a "class" in the context of OOP?
Locked. Enroll to open this MCQ.
MCQ 31
Which of the following statements is valid for the objects?
Locked. Enroll to open this MCQ.
MCQ 32
Which of the following is known as natural language?
Locked. Enroll to open this MCQ.
MCQ 33
Which of the following is called java compiler?
Locked. Enroll to open this MCQ.
MCQ 34
Which of the following converts the Java bytecode into machine code?
Locked. Enroll to open this MCQ.
MCQ 35
The precedence of operators in Java follows BODMAS?
Locked. Enroll to open this MCQ.
MCQ 36
Which OOP concept promotes the ability of an object to take multiple forms?
Locked. Enroll to open this MCQ.
MCQ 37
Which of the following is not a feature of Java?
Locked. Enroll to open this MCQ.
MCQ 38
Which of the following makes a function non-returnable?
Locked. Enroll to open this MCQ.
MCQ 39
Which of the following principle does not allow to access data directly from outside the class…
Locked. Enroll to open this MCQ.
MCQ 40
Abstraction and Data hiding maintains the _______ of data as only necessary data is provided
Locked. Enroll to open this MCQ.
MCQ 41
The wrapping up of data members and Member methods ________ into a single unit is called…
Locked. Enroll to open this MCQ.
MCQ 42
How does OOP contribute to code reusability?
Locked. Enroll to open this MCQ.
MCQ 43
What role does the "constructor" play in OOP?
Locked. Enroll to open this MCQ.
MCQ 44
In procedural programming, the stress is laid on:
Locked. Enroll to open this MCQ.
MCQ 45
How does OOP contribute to better maintenance of code?
Locked. Enroll to open this MCQ.
MCQ 46
The most suitable statement for BlueJ is?
Locked. Enroll to open this MCQ.
MCQ 47
Which of the following package is needed to find the square root of a number?
Locked. Enroll to open this MCQ.
MCQ 48
The process of combining data and functions that enables them to be together as a single entity is…
Locked. Enroll to open this MCQ.
MCQ 49
Method and Variables are enclosed within a unit called
Locked. Enroll to open this MCQ.
MCQ 50
In which year Java was developed?
Locked. Enroll to open this MCQ.
MCQ 51
Java is a/an_____ programming language.
Locked. Enroll to open this MCQ.
MCQ 52
A Java program developed and executed by the users without using a web browser is known as?
Locked. Enroll to open this MCQ.
MCQ 53
Which type of code is executed within a web browser only?
Locked. Enroll to open this MCQ.
MCQ 54
In object oriented programming, the stress is given on
Locked. Enroll to open this MCQ.
MCQ 55
Which of the following is not a Java reserved word?
Locked. Enroll to open this MCQ.
MCQ 56
Which of the following can run independently on a computer without any external help?
Locked. Enroll to open this MCQ.
MCQ 57
JDK stands for
Locked. Enroll to open this MCQ.
MCQ 58
In OOP, what is encapsulation?
Locked. Enroll to open this MCQ.
MCQ 59
Suppose data member of shape class is being used by Circle class. This is the concept of
Locked. Enroll to open this MCQ.
MCQ 60
The living things are considered as objects of the?
Locked. Enroll to open this MCQ.
MCQ 61
Which of the following principle does not allow to access directly from outside the class premises?
Locked. Enroll to open this MCQ.
Get Java Programming Language updates by email
Short, practical lessons and course updates from Rumman Ansari. No spam.