Explore key concepts of Object Oriented Programming in C++ through this interactive assessment. Cover topics from basic syntax to advanced principles like inheritance and singleton classes, enhancing your understanding and skills in modern software development.
The variable a and the variable b are equal.
The value of b is assigned to variable a but the later changes on variable b will not effect the value of variable a
The value of b is assigned to variable a and the later changes on variable b will effect the value of variable a
The value of variable a is assigned to variable b and the value of variable b is assigned to variable a.
Rate this question:
Virtual class
Abstract class
Singleton class
Friend class
Rate this question:
Base class pointer cannot point to derived class.
Derived class pointer cannot point to base class.
Pointer to derived class cannot be created.
Pointer to base class cannot be created.
Rate this question:
Abstraction
Inheritance
Dynamic binding
Encapsulation
Rate this question:
A b c
“abc”
Abc
‘abc’
Rate this question:
Rate this question:
Protected and public data only in C and B.
Protected and public data only in C.
Private data in A and B.
Protected data in A and B.
Rate this question:
Open and close files as in procedural languages.
Use classes derived from ios
Use C language library functions to read and write data.
Include the IOSTREAM.H header file.
Rate this question:
Requires a class with an overloaded operator.
Requires a class with an overloaded [ ] operator.
Allows you to create objects that act syntactically like functions.
Usually make use of a constructor that takes arguments.
Rate this question:
Rate this question:
Rate this question:
fun() const fun()
fun() fun() const
fun() fun()
fun() const fun() const
Rate this question:
-5
0
10
5
Rate this question:
Segmentation fault
Error as a private member a is referenced outside the class
No output
Program compiles successfully but gives run-time error
Rate this question:
Error
5
10
Segmentation fault
Rate this question:
Value of capacity is: 10
Value of capacity is: 100
Error
Segmentation fault
Rate this question:
Template class generate objects of classes based on the template type
Template class saves system memory
Template class helps in making genetic classes
All of the mentioned
Rate this question:
B->var;
B.var;
B-var;
B>var;
Rate this question:
->
–>>
*
&
Rate this question:
Quiz Review Timeline (Updated): Mar 17, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.