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