Chapter 2: Elementary Concept of Object and Classes: Fill in The Blanks
Chapter 2: Elementary Concept of Object and Classes: Fill in The Blanks
Contents
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
Question 7
Question 8
Question 1
Answer
An object is an entity having a specific identity, specific characteristics and specific behavior.
Taking a car as an example of an object, it has characteristics like colour, model, version,
registration number, etc. It has behaviours like start the engine, stop the engine, accelerate the
car, apply the brakes, etc.
Question 2
Mention five states (characteristics) and two methods for the following Classes:
Answer
Characteristics Methods
Name computeSalary()
Pan Number
Salary
Income Tax
Answer
Characteristics Methods
IFSC Code
MICR Code
https://www.knowledgeboat.com/learn/class-9-icse-understanding-computer-applications-bluej/solutions/layMW/object-and-classes-concept 2/9
7/13/2020 Chapter 2: Elementary Concept of Object and Classes | Solutions for Class 9 ICSE APC Understanding Computer Applications With Blu…
Characteristics Methods
Accounts
Answer
Characteristics Methods
Classes
Students
Teachers
Answer
Characteristics Methods
Price
Author
Publisher
Answer
Characteristics Methods
Ticket Price
https://www.knowledgeboat.com/learn/class-9-icse-understanding-computer-applications-bluej/solutions/layMW/object-and-classes-concept 3/9
7/13/2020 Chapter 2: Elementary Concept of Object and Classes | Solutions for Class 9 ICSE APC Understanding Computer Applications With Blu…
Characteristics Methods
Opening Time
Closing Time
Answer
Characteristics Methods
Name buyMedicine()
Quantity sellMedicine()
Manufacturing Date
Expiry Date
Price
Answer
Characteristics Methods
Model startComputer()
Processor
RAM
Hard Disk
Answer
Characteristics Methods
Model takePicture()
https://www.knowledgeboat.com/learn/class-9-icse-understanding-computer-applications-bluej/solutions/layMW/object-and-classes-concept 4/9
7/13/2020 Chapter 2: Elementary Concept of Object and Classes | Solutions for Class 9 ICSE APC Understanding Computer Applications With Blu…
Characteristics Methods
Colour
Price
Resolution
Question 3
Answer
An object is an entity having a specific identity, specific characteristics and specific behavior.
Examples — car, bottle, mobile phone, computer, student.
Question 4
Answer
A software object replaces the characteristics and behaviours of a real world object with data
members and member methods, respectively.
Question 5
Answer
A Class is used to create various Objects that have different characteristics and common
behaviours. Each object follows all the features defined within a class. That is why class is also
referred to as a blue print or prototype of an object. This way we can say that they are inter-
related.
Question 6
Answer
A class has the complete description of the data elements the object will contain, the methods
the object can do, the way these data elements and methods can be accessed. A class can
https://www.knowledgeboat.com/learn/class-9-icse-understanding-computer-applications-bluej/solutions/layMW/object-and-classes-concept 5/9
7/13/2020 Chapter 2: Elementary Concept of Object and Classes | Solutions for Class 9 ICSE APC Understanding Computer Applications With Blu…
create objects of itself with different characteristics and common behaviour just like a factory
can produce similar items based on a particular design. Hence, class is also referred to as
'Object Factory'.
Question 7
Answer
This statement creates a new object of class Employee. The newly created object is assigned to
a variable named staff which is of Employee type. The object can be accessed using staff
variable.
Question 8
Answer
A class can create objects of itself with different characteristics and common behaviour. So, we
can say that an Object represents a specific state of the class. For these reasons, an Object is
called an Instance of a Class.
Question 9
Answer
A class can contain data members of various primitive and reference data types. Hence, class is
known as composite data type.
Question 10
Answer
Question 11
https://www.knowledgeboat.com/learn/class-9-icse-understanding-computer-applications-bluej/solutions/layMW/object-and-classes-concept 6/9
7/13/2020 Chapter 2: Elementary Concept of Object and Classes | Solutions for Class 9 ICSE APC Understanding Computer Applications With Blu…
Consider a real world object as 'Cricket Ball'. Now, mention two behaviours and methods each by
taking the 'Cricket Ball' as a software Object.
Answer
Question 12
class MySchool {
Name
Address
Principal's name
AcceptData();
PrintData();
}
With reference to the above class declaration, indicate whether the following statements are
True/False:
3. Acceptdata( ) and PrintData( ) are the common behaviour of the objects of class 'MySchool'.
True
Question 13
You want to create a class 'Football'. Choose the elements to be used as characteristics and
behavior from the list given below:
Ball, Goalkeeper, Making a goal, Defender, Forward player, passing ball, Referee, hitting corner,
making fault
https://www.knowledgeboat.com/learn/class-9-icse-understanding-computer-applications-bluej/solutions/layMW/object-and-classes-concept 7/9
7/13/2020 Chapter 2: Elementary Concept of Object and Classes | Solutions for Class 9 ICSE APC Understanding Computer Applications With Blu…
Answer
Characteristics Behaviours
Referee
Question 14
Write a program by using a class 'Picnic' without any data members but having only functions as
per the specifications given below:
class name : Picnic
void display1( ): To print venue, place and reporting time.
void display2( ): To print number of students, name of the teacher accompanying and bus number.
Write a main class to create an object of the class 'Picnic' and call the functions display1() and
display2( ).
Answer
class Picnic
{
public void display1() {
System.out.println("Venue: Botanical Garden");
System.out.println("Place: MG Road");
System.out.println("Reporting Time: 9:00 AM");
}
https://www.knowledgeboat.com/learn/class-9-icse-understanding-computer-applications-bluej/solutions/layMW/object-and-classes-concept 8/9