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