Questions List
Browse all explanatory questions of this chapter.
1
Design a program in Java to calculate the discount given to a customer on purchasing LED Television. The program also displays the amount paid by the customer after discount. The details are given as:
Class name : Television
Data members: int cost, int discount, int amount
Member functions:
Accept( ) : to input the cost of Television
Calculate( ) : to calculate the discount
Display( ) : to show the discount and the amount paid after discount
2
Mention three characteristics and two methods for the following Classes: (a) class Mobile Phone (b) class Bike (c) class Fruits (d) class Pen
3
Write a statement to create an object 'Keyboard' of the class 'Computer'.
4
Why is an Object called an 'Instance' of a class? Explain.
5
Class and Objects are inter-related. Explain.
6
A statement is given as: 'Study_Table' is an object of the class 'Furniture'. Write down Java statement for the same.
7
Why is a class known as composite data type?
8
A class is also referred to as 'Object Factory'. Comment.
9
What does the following statement mean? Employee staff = new Employee ( );
10
Define class and object with an example.
11
How will you define a software object?
12
___________ keyword is used for dynamic allocation of an object.
13
Class is a ___________ of the objects.
14
An object of a class is created by using a keyword ___________ .
15
The characteristics of the ___________ objects are considered to be the data members of the ___________ objects.
16
The ___________ of a class differs on various characteristics.
17
A real world object deals with characteristics and ___________ .
18
A class is also considered as an ___________ factory.
19
Creating ___________ is the fundamental concept in object oriented programming language.
20
Which of the Object Oriented programming principles explain the following illustrations? Justify.
21
Give two differences between Procedure Oriented languages and Object Oriented languages.
22
'Encapsulation reduces the complexity and makes the system easier'. Explain this statement with a real world example.
23
Give two differences between Data Hiding and Encapsulation.
24
What is meant by Data Hiding?
25
Give an example to explain Data Abstraction.
26
In what way is Data Hiding related to Data Abstraction?
27
What is meant by Encapsulation?
28
Mention two limitations of procedure oriented programming approach.
29
What is meant by a base class and a derived class?
30
Why do we prefer object oriented approach in complex programming? Explain.
31
Name four basic principles of object oriented programming.
32
What is object oriented programming? Name two object oriented programming languages.
33
In encapsulation, data can be ___________ or ___________ whereas, in data hiding, data must be ___________ only.
34
___________ confirms the security of data members from being manipulated from unauthorized access.
35
___________ promotes the reusability feature, in object oriented programming.
36
Feature of wrapping ___________ and ___________ as a single unit is called encapsulation.
37
___________ is an act of representing essential features without including background details.
38
Using a function for multiple operations is called as ___________ .
39
Objects can communicate with each other through ___________ in object oriented programming language.
40
___________ is the fundamental concept in object oriented programming language.
41
Write down any two disadvantages of Machine Level Language
42
Write down two advantages of Polymorphism.
43
Write the difference between Assembly language and Machine level.
44
Write the difference between Polymorphism and Encapsulation.
45
Write the difference between Polymorphism and Encapsulation.
46
Write any 2 disadvantages of Object-oriented programming.
47
Define Polymorphism with a real-life example.
48
Write the difference between POP and OOP.
49
Write the difference between High Level Language and Low-Level language?
50