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