Test -1
  • 1. Who invented OOPs?
A) Andrea Ferro
B) Alan Kay
C) Dennis Ritchie
D) bjarne stroustrup
E) Adele Goldberg
  • 2. Wrapping data and its related functionality into a single entity is known as
A) Inheritance
B) NONE OF THESE
C) Encapsulation
D) Polymorphism
E) Abstarction
  • 3. What does polymorphism in OOPs mean?
A) Concept of allowing overiding of functions
B) Concept of hiding data
C) A& B
D) Concept of keeping things in differnt modules/files
E) Concept of wrapping things into a single unit
  • 4. Which concept allows you to reuse the written code?
A) POLYMORPHISM
B) Absraction
C) CLASS
D) Encapsulation
E) Inheritance
  • 5. How access specifiers in Class helps in Abstraction?
A) They allows us to show only required things to outer world
B) They help in keeping things together
C) They does not helps in any way
D) ENCAPSULATION
E) Abstraction concept is not used in classes
  • 6. C++ is----------
A) both procedural and object oriented programming language
B) structured orienred programming language
C) Procedural programming language
D) function oriented programming language
E) Only class oriented
  • 7. Which is not a feature of OOP in general definitions?
A) Modularity
B) Code reusability
C) Duplicate/Redundant data
D) Duplicate data
E) Efficient Code
  • 8. When OOP concept did first came into picture?
A) 1990's
B) 1980's
C) 1970’s
D) 1880's
E) 1960’s
  • 9. Which header file is required in C++ to use OOP?
A) stdlib.h
B) OOP can be used without using any header file
C) iostream.h
D) A&B
E) stdio.h
  • 10. Why Java is Partially OOP language?
A) It doesn’t support all types of inheritance
B) It does not support pointers
C) It allows code to be written outside classes
D) It supports usual declaration of primitive data types
E) it does not allows objects
  • 11. The feature by which one object can interact with another object is
A) Binding of data
B) Data transfer
C) Data Binding
D) Message Passing
E) Message reading
  • 12. How many types of access specifiers are provided in OOP (C++)?
A) 2
B) 4
C) 1
D) 3
E) 5
  • 13. In which access should a constructor be defined, so that object of the class can be created in any function?
A) Protected
B) none of these
C) Public
D) Private
E) Public/private
  • 14. The copy constructors can be used to ________
A) Copy an object so that it can be passed to a class
B) copy an object for storing the same value
C) Copy an object so that it can be passed to a function
D) Copy an object for type casting
E) Copy an object so that it can be passed to a function
  • 15. . Comments in C++ are represented by ________
A) //
B) '' ''
C) * *
D) \\
E) //
  • 16. The scope resolution operator (:;) is used to access
A) Global variables
B) Global variables
C) Local variables
D) none of these
E) both global @ Local variables
  • 17. You can use C++ as a procedural, as well as an object-oriented, language
A) false
B) true
C) neither true
D) True
E) nor false
  • 18. cin object is which purpose used
A) none of these
B) Input
C) output
D) both input& output
E) Input
  • 19. iostream is a headerfile section
A) nor false
B) false
C) true
D) neither true
E) true
  • 20. Identify the feature which can be implemented using encapsulation.
A) Inheritance
B) Polymorphism
C) encapsulation
D) Absraction
E) Abstraction
Created with That Quiz — the math test generation site with resources for other subject areas.