LogoLearning For Everyone
Take Quiz
Contact Us
Related Topics
Related Topics
Selected Topic: All
1. Which was the first purely object oriented programming language developed?
Choose the correct option:
  • a) Java

  • b) C++

  • c) SmallTalk

  • d) Kotlin

SmallTalk was the first programming language developed which was purely object oriented. It was developed by Alan Kay. OOP concept came into the picture in 1970’s.

2. Which of the following best defines a class?
Choose the correct option:
  • a) Parent of an object

  • b) Instance of an object

  • c) Blueprint of an object

  • d) Scope of an object

A class is Blueprint of an object which describes/ shows all the functions and data that are provided by an object of a specific class. It can’t be called as parent or instance of an object. Class in general describes all the properties of an object.

3. Who invented OOP?
Choose the correct option:
  • a) Alan Kay

  • b) Andrea Ferro

  • c) Dennis Ritchie

  • d) Adele Goldberg

Alan Kay invented OOP, Andrea Ferro was a part of SmallTalk Development. Dennis invented C++ and Adele Goldberg was in team to develop SmallTalk but Alan actually had got rewarded for OOP.

4. What is the additional feature in classes that was not in structures?
Choose the correct option:
  • a) Data members

  • b) Member functions

  • c) Static data allowed

  • d) Public access specifier

Member functions are allowed inside a class but were not present in structure concept. Data members, static data and public access specifiers were present in structures too.

5. Which is not feature of OOP in general definitions?
Choose the correct option:
  • a) Code reusability

  • b) Modularity

  • c) Duplicate/Redundant data

  • d) Efficient Code

Duplicate/Redundant data is dependent on programmer and hence can’t be guaranteed by OOP. Code reusability is done using inheritance. Modularity is supported by using different code files and classes. Codes are more efficient because of features of OOP.

Items per page: