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