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