Simplified guide of MCQs for Exams, Interviews

Topic: Computer Programming

1 .  We can not create instance of

  • A. Abstract Class
  • B. Parent Class
  • C. Nested Class

Correct Answer:

Abstract Class

2 .  Constructor Can return a value

  • A. True
  • B. False

Correct Answer:


3 .  OOPs is invented by

  • A. Andrea Ferro
  • B. Dennis Ritchie
  • C. Alan Kay
  • D. Adele Goldberg

Correct Answer:

Alan Kay

4 .  Which of the following is correct for copy constructor?

  • A. The argument object is passed by reference
  • B. It can defined with zero arguments
  • C. Used when an object is passed by value to a function
  • D. Used when a function returns an object

Correct Answer:

It can defined with zero arguments

5 .  Which feature of oop encourges the code reusability

  • A. Polymorphism
  • B. Inheritance
  • C. Abstraction
  • D. Encapsulation

Correct Answer:


6 .  Which language does not support single level inheritance ?

  • A. C
  • B. java
  • C. C++
  • D. Kitlin

Correct Answer: