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