Вы находитесь на странице: 1из 2

OOP

Test 1 – Identification
1. Each object contains data and ____ to manipulate the data
2. ____have an interface that defines which part of an object of a class can be accessed
from outside and how.
3. The power of inheritance lies in the fact that all common features of the subclasses can
be accumulated in the ____
4. At run-time, the code matching the ____ under reference will be called
5. The concept of ____makes it easier to talk about building systems that directly model or
simulate their real-world counterparts.
6. Partitioning essentially is the exercise in determining the components of the ____.
7. ____ is the process by which objects of one class acquire the properties of objects of
another class.
8. This insulation of the data from direct access by the program is called ____.
9. ____is the most striking feature of a class. The data is not accessible to the outside
world and only those functions that are wrapped in the class can access it.
10. Classes use the concept of data abstraction, they are known as ____
11. A function call associated with a polymorphic reference depends on the ____of that
reference.
12. ____ refers to the linking of a procedure call to the code to be executed in response to
the call.
13. ____means that the code associated with a given procedure call is not known until the
time of call at run-time
14. The concept of ____makes it easier to talk about building systems that directly model or
simulate their real- world counterparts.
15. ____is not the right of any particular language
16. C++ is a middle-level programming language developed by Bjarne Stroustrup starting in
_____ at Bell Labs.
17. As an enhancement to the C language and originally named C with Classes but later it
was renamed C++ in ____.
18. C++ is a statically typed, compiled, general purpose, case-sensitive, free-form
programming language that supports procedural, object-oriented, and ____.
19. C++ is regarded as a ____ language, as it comprises a combination of both high-level and
low-level language features.
20. C++ is a superset of C, and that virtually any legal C program is a legal ____ program.

Object Super class Data hiding


System Inheritance Message passing
Data encapsulation Abstract data types C++
Binding Dynamic binding Message passing
1979 Object oriented programming Dynamic type
Generic programming. Middle-level 1983
Code Classes

Test 2- Enumeration
1. 2 Concept of OOP
2. 4 Major features required by object-based programming
3. 8 Category of OOP
Answer

1. code
2. Classes
3. super class
4. object
5. message passing
6. system
7. Inheritance
8. data hiding
9. Abstract Data Types
10. Data encapsulation
11. dynamic type
12. Binding
13. Dynamic binding
14. message passing
15. Object oriented programming
16. 1979
17. 1983
18. generic programming.
19. middle-level
20. C++

II

Concept of OOP
1. Object-based programming languages.
2. Object-oriented programming languages.

Major features required by object-based programming are:


1. Data encapsulation
2. Data hiding and access mechanisms
3. Automatic initialization and clear-up of objects
4. Operator overloading

Category of OOP
1. Objects
2. Classes
3. Data Abstraction
4. Data Encapsulation
5. Inheritance
6. Polymorphism
7. Dynamic Binding
8. Message Passing