Chapter 1- Introduction to Object Oriented Programming Concepts | Solutions for
Chapter 1- Introduction to Object Oriented Programming Concepts | Solutions for
Question 1
1. Instructions only ✓
2. Instructions and data
3. Data only
4. None of these
Explanation
Question 2
1. Top-down approach ✓
2. Top-down and bottom-up approach
3. Bottom-up approach
4. None of these
Explanation
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 1 of 17
:
perform each of these steps.
Question 3
1. Top-down approach
2. Top-down and bottom-up approach
3. Bottom-up approach ✓
4. None of these
Explanation
Question 4
1. Interface
2. Instance ✓
3. Alias
4. Member
Explanation
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 2 of 17
:
The terms object and instance are often interchangeable.
Question 5
Objects that share the same attributes and behaviour are grouped
together into a/an ...........
1. Interface
2. Instance
3. Alias
4. Class ✓
Explanation
Question 6
1. Abstraction
2. Inheritance
3. Encapsulation ✓
4. Polymorphism
Explanation
Question 7
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 3 of 17
:
including the background details.
1. Abstraction ✓
2. Inheritance
3. Encapsulation
4. Polymorphism
Explanation
Question 8
1. Abstraction
2. Inheritance ✓
3. Encapsulation
4. Polymorphism
Explanation
Question 9
1. Abstraction
2. Inheritance
3. Encapsulation
4. Polymorphism ✓
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 4 of 17
:
Explanation
Question 10
Explanation
Question 2
Question 3
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 5 of 17
:
Question 4
Question 5
Question 6
Question 7
Question 8
Question 9
Question 10
Objects from the same class do not share the same definition of
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 6 of 17
:
attributes and behaviours.
False
Assignment Questions
Question 1
Answer
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 7 of 17
:
generation language (4GL) is closer to a natural language (for
example, English) than a third- generation language. These
languages are non-procedural. It means that the programmer
specifies what is required as opposed to how it is to be done.
Database languages such as Structured Query Language
(SQL), report generators such as Oracle Reports, and Python
are examples of fourth-generation languages.
5. Fifth Generation Programming Language — A fifth-
generation language (5GL) is designed to solve a given
problem using constraints given to the program, rather than
using an algorithm written by a programmer. The fifth-
generation languages are mainly used in Artificial Intelligence.
Smalltalk, Prolog, and Mercury are good examples of the fifth-
generation languages.
Question 2
Answer
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 8 of 17
:
Question 3
Answer
Question 4
Answer
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 9 of 17
:
4. Changes in data types need to be carried out manually all over
the program and in the functions using the same data type.
5. Limited and difficult code reusability.
6. It does not model real-world entities (e.g., car, table, bank
account, loan) very well where we as a human being, perceive
everything as an object.
7. The procedural programming approach does not work well for
large and complex systems.
Question 5
Answer
Question 6
Answer
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 10 of 17
:
1. Tangible Objects — These are the objects that we can see
and touch. For example, chair, pen, book, door, etc.
Question 7
Answer
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 11 of 17
:
6. Due to its object-oriented approach, it is extremely useful in
solving complex problems.
Question 8
Answer
Question 9
Answer
Question 10
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 12 of 17
:
Differentiate between the Owner's and the Vet's perspective in
Figure 1.24
Answer
From the viewpoint of the dog's owner, the things that are essential
for the dog are his favorite food, the colour of his food bowl, his
favorite game that he enjoys playing with his owner, his preferred
time for walk, etc. From the viewpoint of the dog's vet (doctor for
animals), the important things about the dog are whether the dog's
body functions are normal or not to ensure that the dog is healthy.
Like this, there can be two abstractions for the dog — one for the
dog's owner and the other for the dog's vet.
Question 11
Answer
From the viewpoint of the driver, a car is one single object. It can be
operated using gears, indicators, accelerator, brake, etc. The driver
doesn't need to know or understand the internal mechanisms of
how these components actually work. From the viewpoint of the
mechanic, it is important for him to understand how the internal
mechanisms like gears, indicators, accelerator, brake, etc. actually
work so that they can identify and fix issues with the cars. For a
mechanic, each car part is a single object.
Question 12
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 13 of 17
:
Explain the term Encapsulation using appropriate examples.
Answer
Question 13
Answer
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 14 of 17
:
Question 14
Answer
Question 15
Answer
Question 16
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 15 of 17
:
Explain the difference between Inheritance and Encapsulation with
suitable examples.
Answer
Question 17
Answer
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 16 of 17
:
Data and functions are Data and functions are encapsulated
separate. into a single unit.
Data security is less as it
It is more secure as one of its primary
contains lesser features to
features include data hiding.
protect the data.
A function can access any Only the data whose access has been
other function's data by calling granted can be accessed by another
that function. function.
Limited and difficult code
Versatile and easy code reusability.
reusability.
Code is difficult to modify, Code is easy to modify, extend and
extend and maintain. maintain.
Some examples of Procedural
Some examples of Object Oriented
Programming languages are C,
languages are C++, Java, C#.
COBOL, Pascal.
https://www.knowledgeboat.com/learn/class-9-logix-icse-computer-applications-java-bluej/solutions/bAE8g/oop-concepts 19/01/24, 6 56 PM
Page 17 of 17
: