Computer Dot Com
Computer Dot Com
2. Name the characteristics of Object Oriented Programming that hides the complexity and
provides a simple interface.
a. Encapsulation b. Polymorphism
c. Abstraction d. Inheritance
3. Which among the following operator is used to access individual members of an object?
a. . (dot) b. + (plus)
c. – (minus) d. / (divide)
12. What is the largest possible value that can be stored in short data type?
a. 215-1 b. 231-1
c. 27-1 d. 263-1
13. If a is of type int and b is of type float what would be the resultant data type of a+b?
a. int b. float
c. double d. short
Unit – II State whether the following statements are True (T) or False (F) any 10 10 x 1=10
1. Encapsulation refers to the art of hiding the complexities and giving a simple interface.
2. Procedure Oriented Language follows top down approach.
3. Java is an example of Object Oriented Language.
4. Hiding the complexity and giving a simple interface is called Inheritance.
5. Abstraction is same as encapsulation.
6. An object is called a class factory.
7. A class is an instance of an object.
8. A class is a mechanism to implement encapsulation.
9. Data members in a class is used to represent the characteristic of an object.
10. The new operator is used to create an object.
11. It’s a rule to have a class-name beginning in capital letter.
Unit - III Fill in the blanks. any 10 10x1=10
1. A ___________ is a template that binds together data and methods together.
2. The values in the attributes of an object is called the __________of an object.
3. The ___________operator is used to access the individual members of a class.
4. The keyword ___________ is used to allocate memory space for an object.
5. The default and ____________access modifier is used with a class.
6. An object is an identity with certain __________ and ____________.
7. The values/attributes of the characteristics of an object are called the ________ of an object.
8. All the complexities of a program should be encapsulated in such a way so that
_____________ is obtained.
9. Inheritance____ allows us to encompass the parent class’ state and behaviours into its child..
10. Poly-means ______ and Morphism__________.
Unit - IV
Answer the following questions: any 10 10x2=20
1. How are objects implemented in software?
2. What is abstraction? How is encapsulation related to it?
3. Define Encapsulation.
4. What is Inheritance?
5. What is Object Oriented Programming?
6. State three differences between Procedure Oriented Language and Object Oriented
Languages.
7. State the four characteristics/principles of Object Oriented Programming.
8. What are keywords? Give an example.
9. What are identifiers?
10. What is a literal?
11. Why is an object called an instance of a class?
12. Write one difference between primitive data type and composite data type.
13. Give one example each of primitive data type and composite data type.
14. State two differences between a class and an object.
15. Give one point of difference between unary and binary operators.
16. What do you understand by type conversion?
17. State the difference between a Boolean literal and a character literal.
18. Identify the literals as given below:
i. 0.5 ii. ‘A’ iii. false iv. “a”
25. What does a class encapsulate?