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