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