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