Skip to content
GK24
Computer AwarenessEasy

Which of the following is regarded as the first object-oriented programming language?

  1. A.Simula 67
  2. B.FORTRAN
  3. C.COBOL
  4. D.BASIC

Correct answer

A. Simula 67

Explanation

The correct answer is A, Simula 67. Simula 67, designed by Ole-Johan Dahl and Kristen Nygaard, introduced the ideas of class, object and inheritance and is therefore treated as the first object-oriented language, from which C++ and Java later borrowed. Option B is wrong because FORTRAN, released in the nineteen fifties, is the oldest high-level language and was built for scientific and engineering calculation in a procedural style. Option C is wrong because COBOL was designed for business data processing with record structures and files, again procedurally. Option D is wrong because BASIC was created as a simple teaching language for beginners and had no class or object in its original form. Remember the chain for one-mark questions: Simula first, Smalltalk purely object-oriented, C++ a hybrid of C and classes.

Read the full article: Object-Oriented Programming: Classes, Objects and Pillars

View all
Q2.Computer AwarenessEasy

Wrapping up of data and the functions that operate on that data into a single unit is called

  1. A.Inheritance
  2. B.Encapsulation
  3. C.Overloading
  4. D.Compilation
Show answer
Correct answer: B. Encapsulation

Encapsulation means binding the data members and the member functions that act on them inside one unit, the class, and keeping the data private so that it can be reached only through the methods provided; the standard illustration is a capsule holding the medicine inside it.

Read the full explanation →
Q3.Computer AwarenessMedium

Showing only the essential features of an object to the user while hiding its internal details is known as

  1. A.Abstraction
  2. B.Encapsulation
  3. C.Inheritance
  4. D.Instantiation
Show answer
Correct answer: A. Abstraction

Abstraction presents only what the user needs, such as the accelerator and brake of a car, and keeps the internal working out of sight; in C++ it is obtained through abstract classes with pure virtual functions and in Java through interfaces and abstract classes.

Read the full explanation →
Q4.Computer AwarenessEasy

Who developed the C++ programming language?

  1. A.Dennis Ritchie
  2. B.James Gosling
  3. C.Bjarne Stroustrup
  4. D.Guido van Rossum
Show answer
Correct answer: C. Bjarne Stroustrup

Bjarne Stroustrup developed the language at Bell Laboratories, starting it as C with Classes and giving it the name C++ in 1983; it adds classes, inheritance and polymorphism to C while keeping C procedural power, which is why it is called a hybrid language.

Read the full explanation →