Page 50 - CA_Blue( J )_Class9
P. 50
4. Which type of data type is a class?
a. Non-primitive b. Primitive
c. Instance d. None of these
5. ………………… is a function or method that has same name of the class.
a. Data members b. Object
c. Constructor d. Access Specifier
6. Class is a ………………… entity.
a. Logical b. Physical
c. Both a and b d. Tangible
7. Which of the following is known as Data Members?
a. Member Methods b. Instance Variable
c. Constructor d. None of these
8. The parts of an object are ………………….
a. Object name b. Behavior
c. Attributes d. All of these
9. Which of the following keywords are used to define a class?
a. Class b. Public
c. Both a and b d. None of these
10. Which of the following is known as the real entity?
a. Class b. Object
c. Method d. Both a and b
Answers
1. b 2. c 3. c 4. a 5. c 6. a. 7. b. 8. d 9. a 10. b
B. Fill in the blanks.
1. Objects are also termed as ………………….
2. ………………… are the physical existence of the class.
3. Creating an object of a class is called ………………….
4. In Circle cr= new Circle ();, the cr is the name of ………………….
5. Class comprises characteristics and ………………….
6. ………………… is an object factory.
Answers
1. physical entity 2. Objects 3. Instantiation 4. object 5. behaviour 6. Class
C. Answer the following questions.
1. What is class?
Ans. Classes in Java are non-primitive data types that act as a blueprint for creating objects of the same type.
2. What are the different components of an Object?
Ans. The different components of an object are Characteristics or attributes, behaviour or methods and name of the
object.
3. Write down the syntax to create an object.
Ans. Syntax of creating an object:
[class name] [object name]= new [constructor];
For example: book computer = new book();
48 Touchpad Computer Applications-IX

