5. Dezember 2007

OOP Quiz

In an object model, there are major and minor elements. Which one of the following is true?
  • Abstraction, Encapsulation and Persistence are the major elements.
  • Hierarchy, Concurrency and Typing are the major elements.
  • Abstraction, Encapsulation and Hierarchy are the major elements.
  • Typing is the major element.
Which of the following is not a part of OOP?
  • Multitasking
  • Information hiding
  • Polymorphism
  • Type checking
Which one of the following is the first fully Object-oriented language?
  • Simula.
  • Java.
  • C++.
  • Javascript.
Programming without inheritance
  • is programming with abstract data types
  • is not object oriented
  • can be object oriented
  • none of the above
Which one of the following terms must relate to "polymorphism"
  • Static allocation.
  • Static typing.
  • Dynamic binding.
  • Dynamic allocation.
Providing access to an object only through its member functions, while keeping the details private is called:
  • information hiding.
  • encapsulation.
  • modularity
  • inheritance
The concept of derived classes is involved in
  • inheritance.
  • encapsulation.
  • data hiding.
  • abstract data types.
Which of the following statements is true in C++?
  • An object can be a class.
  • A class can be an object.
  • A class must have at least one member function.
  • If a constructor for a class is not specified, a default constructor is used.
A member function
  • is always public
  • is always private
  • can be public or private
  • cannot be defined.
Inheritance is a way to
  • organize data.
  • pass arguments to objects of classes.
  • add features to existing classes without rewriting them.
  • improve data-hiding and encapsulation.
OOP Quizzes:
C++ Quizzes: