0% found this document useful (0 votes)
71 views3 pages

Computer Dot Com

This document provides an educational program on computer science, outlining 4 units that cover topics like object-oriented programming principles, classes and objects, and programming fundamentals. It includes multiple choice questions, true/false questions, and short answer questions to test understanding of concepts like encapsulation, inheritance, data types, operators, and more. The document appears to be part of a certified computer education course offered by an institution registered with the government.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views3 pages

Computer Dot Com

This document provides an educational program on computer science, outlining 4 units that cover topics like object-oriented programming principles, classes and objects, and programming fundamentals. It includes multiple choice questions, true/false questions, and short answer questions to test understanding of concepts like encapsulation, inheritance, data types, operators, and more. The document appears to be part of a certified computer education course offered by an institution registered with the government.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Computer Dot Com

A complete computer education


Under W.B. Government registered
An ISO 9001:2015 Certified Institute
Chapter – I
Name __________________________ Date _________________

Unit –I any 12 any 10 10x1=10


A. Tick [ ] the correct option.
1. Name the programming technique that implements programs as an organised collection of
interactive objects.
a. Procedure Oriented Programming b. Modular Programming
c. Object Oriented Programming d. None of these

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)

4. Which among the following modifier is used in a ‘class’?


a. public b. default
c. Both a and b d. None of these

5. Which among the following is a valid class name?


a. Simple Interest b. SimpleInterest
c. 1SimpleInterest d. Simple@Interest

6. Which among the following is a valid object name?


a. obj1 b. 1obj
c. Obj 1 d. Obj#1

7. Which among the following is a valid float literal?


a. 12.36f b. 12.36F
c. 12.36 d. Both a and b
8. Which among the following is a valid octal integer literal?
a. 0178 b. 675
c. 0675 d. 0X675

9. Which among the following is a valid method of initialising?


a. boolean f=true; b. boolean f=True;
c. boolean f=’true’; d. None of these

10. Which among the following is not a punctuator?


a. ; semicolon b. , comma
c. : colon d. . dot

11. Which among the following is not a primitive data type?


a. int b. float
c. String d. char

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?

NB : Write question and answer both, Give exam in presents of Parents

Duration : 1 hours 20 minutes

You might also like