- Which of the following languages is not a pure Object-Oriented language?
- a) Java
- b) Simula
- c) Ada
- d) Eiffel
- Which of the languages is a pure object-oriented language?
- a) C++
- b) Smalltalk
- c) Object Pascal
- d) Objective C
- Which of the following statements is TRUE with respect to object-oriented programming?
- a) Emphasis is on algorithms rather than data.
- b) Data can move freely from function to function.
- c) Programs are divided into small programs called functions.
- d) Data and functions that operate on them are tied together.
- Which of the following issues is considered as the major drawback of the procedure – oriented programming?
- a) Employs tap-down approach in program design.
- b) Emphasis is an algorithms.
- c) Most of the functions share global data.
- d) Large programs are divided into functions.
- One of the major advantages of object-oriented programming approach is:
- a) It can easily map real-world problems.
- b) Data can move freely around the system.
- c) Any language can be used for programming.
- d) Structured programming concept can be easily incorporated.
- The wrapping up of data and functions into a single unit is known as:
- a) Function overloading
- b) Static binding
- c) Abstraction
- d) Encapsulation
- The process by which objects of one class can acquire the attributes of objects of another class is known as:
- a) Attribute passing
- b) Inheritance
- c) Abstraction
- d) Polymorphism
- Which one of the following concepts enables the re-usability of code?
- Dynamic binding
- Polymorphism
- Inheritance
- Encapsulation
- The term function over loading refers to:
- Message passing
- Dynamic binding
- Data hiding
- Polymorphism
- Which of the following characteristics C++ does not support?
- Persistence
- Generacity
- Garbage collection
- Late binding
- Encapsulation ensures that
- any function in the program can access the data
- external functions cannot access an object’s nonpublic data
- external functions cannot access any data of the object
- the data of the object is never modified
- A rectangle notation that is used to denote an object usually show
- communication links with other objects
- only data members of the object
- data and functions of the object
- relationship with other objects
Answers:
- Simula
- Objective C
- Data and functions that operate on them are tied together.
- Emphasis is an algorithms.
- Structured programming concept can be easily incorporated.
- Encapsulation
- Inheritance
- Inheritance
- Polymorphism
- Garbage collection
- external functions cannot access an object’s nonpublic data
- data and functions of the object
You must log in to post a comment.