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