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