The following OOP (Object-oriented programming) MCQs have been compiled by our experts through research, in order to test your knowledge of the subject of OOP (Object-oriented programming). We encourage you to answer these 20 multiple-choice questions to assess your proficiency.
Please continue by scrolling down.
A. The Class which has a Public Modifier can be accessed by all the classes from the particular package and also from different packages
B. The class which has private as the modifier cannot be accessed by any class even with in the package
C. The class which has private as the modifier cannot be accessed by any class even with in the package
D. The Class which has a Public Modifier can be accessed by all the classes from the particular package and also from different packages And The class which has private as the modifier cannot be accessed by any class even with in the package
A. When the function to be executed in response to a function call is determined at the end of the function call
B. When the function to be executed in response to a function call is determined at run-time
C. None
D. When the function to be executed in response to a function call is determined at compile-time
A. True
B. False
A. Run time
B. Compile time
A. False
B. True
A. Subtraction
B. Base call
C. Recursive call
D. Local variable declarations
A. Abstraction, Encapsulation and persistence
B. Typing
C. Hierarchy, concurrency and typing
D. Abstraction, encapsulation and hierarchy
A. Inherits
B. Extend
C. Extends
D. Inherit
A. The destructor has the same name as the class
B. If the object was created with a new expression, then its destructor is called when the delete operator is applied to a pointer to the object
C. Its main purpose is to clean up and to free the resources
D. None
A. Decoupling
B. Detaching
C. Loosening
D. Dispatching
A. None
B. Composition
C. Generalization
D. Aggregation
A. None
B. It means the function is only a read-only function
C. One which always returns the same values, given the same arguments
D. Used for constructor and destructor
A. Explicit constructor
B. Parameterized constructor
C. Implicit constructor
D. Virtual constructor
A. No
B. Yes
A. Yes
B. No
A. Attribute
B. Data type
C. Method
D. Function
A. GetSource()
B. GetActionCommand()
C. GetTimeStamp()
D. GetWhen()
E. GetKeyChar().
A. Constructor, created
B. Dot operator.
C. Subscripts
D. Data, functions
A. Private and public
B. Private access specifier
C. Destructor function
D. In their own header files
A. Member functions
B. Member variables
C. Constructor and destructor functions
D. All of these
E. None of these