Chapter Questions

Java Programming Language MCQ Questions

Explore chapter-wise explanatory questions and quickly move between related subchapters from a cleaner, more advanced layout.

Questions List

Browse all explanatory questions of this chapter.

50 Total Questions
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

Question ID: 7245 Read Details
2

Mention three characteristics and two methods for the following Classes: (a) class Mobile Phone (b) class Bike (c) class Fruits (d) class Pen

Question ID: 7244 Read Details
3

Write a statement to create an object 'Keyboard' of the class 'Computer'.

Question ID: 7243 Read Details
4

Why is an Object called an 'Instance' of a class? Explain.

Question ID: 7242 Read Details
5

Class and Objects are inter-related. Explain.

Question ID: 7241 Read Details
6

A statement is given as: 'Study_Table' is an object of the class 'Furniture'. Write down Java statement for the same.

Question ID: 7240 Read Details
7

Why is a class known as composite data type?

Question ID: 7239 Read Details
8

A class is also referred to as 'Object Factory'. Comment.

Question ID: 7238 Read Details
9

What does the following statement mean? Employee staff = new Employee ( );

Question ID: 7237 Read Details
10

Define class and object with an example.

Question ID: 7236 Read Details
11

How will you define a software object?

Question ID: 7235 Read Details
12

___________ keyword is used for dynamic allocation of an object.

Question ID: 7234 Read Details
13

Class is a ___________ of the objects.

Question ID: 7233 Read Details
14

An object of a class is created by using a keyword ___________ .

Question ID: 7232 Read Details
15

The characteristics of the ___________ objects are considered to be the data members of the ___________ objects.

Question ID: 7231 Read Details
16

The ___________ of a class differs on various characteristics.

Question ID: 7230 Read Details
17

A real world object deals with characteristics and ___________ .

Question ID: 7229 Read Details
18

A class is also considered as an ___________ factory.

Question ID: 7228 Read Details
19

Creating ___________ is the fundamental concept in object oriented programming language.

Question ID: 7227 Read Details
20

Which of the Object Oriented programming principles explain the following illustrations? Justify.

Question ID: 7226 Read Details
21

Give two differences between Procedure Oriented languages and Object Oriented languages.

Question ID: 7225 Read Details
22

'Encapsulation reduces the complexity and makes the system easier'. Explain this statement with a real world example.

Question ID: 7224 Read Details
23

Give two differences between Data Hiding and Encapsulation.

Question ID: 7223 Read Details
24

What is meant by Data Hiding?

Question ID: 7222 Read Details
25

Give an example to explain Data Abstraction.

Question ID: 7221 Read Details
26

In what way is Data Hiding related to Data Abstraction?

Question ID: 7220 Read Details
27

What is meant by Encapsulation?

Question ID: 7218 Read Details
28

Mention two limitations of procedure oriented programming approach.

Question ID: 7217 Read Details
29

What is meant by a base class and a derived class?

Question ID: 7216 Read Details
30

Why do we prefer object oriented approach in complex programming? Explain.

Question ID: 7215 Read Details
31

Name four basic principles of object oriented programming.

Question ID: 7214 Read Details
32

What is object oriented programming? Name two object oriented programming languages.

Question ID: 7213 Read Details
33

In encapsulation, data can be ___________ or ___________ whereas, in data hiding, data must be ___________ only.

Question ID: 7212 Read Details
34

___________ confirms the security of data members from being manipulated from unauthorized access.

Question ID: 7211 Read Details
35

___________ promotes the reusability feature, in object oriented programming.

Question ID: 7210 Read Details
36

Feature of wrapping ___________ and ___________ as a single unit is called encapsulation.

Question ID: 7209 Read Details
37

___________ is an act of representing essential features without including background details.

Question ID: 7208 Read Details
38

Using a function for multiple operations is called as ___________ .

Question ID: 7207 Read Details
39

Objects can communicate with each other through ___________ in object oriented programming language.

Question ID: 7206 Read Details
40

___________ is the fundamental concept in object oriented programming language.

Question ID: 7205 Read Details
41

Write down any two disadvantages of Machine Level Language

Question ID: 6156 Read Details
42

Write down two advantages of Polymorphism.

Question ID: 6155 Read Details
43

Write the difference between Assembly language and Machine level.

Question ID: 6154 Read Details
44

Write the difference between Polymorphism and Encapsulation.

Question ID: 6153 Read Details
45

Write the difference between Polymorphism and Encapsulation.

Question ID: 6152 Read Details
46

Write any 2 disadvantages of Object-oriented programming.

Question ID: 6151 Read Details
47

Define Polymorphism with a real-life example.

Question ID: 6150 Read Details
48

Write the difference between POP and OOP.

Question ID: 6149 Read Details
49

Write the difference between High Level Language and Low-Level language?

Question ID: 6148 Read Details
50

Write the difference between High Level Language and Low-Level language.

Question ID: 6147 Read Details