The address of a variable varr of type int is
What does inheriatance allows you to do?
A pointer to the base class can hold address of
Use of virtual functions implies
Mechanism of deriving a class from another derived class is known as
Which of the following will produce a value of 10 if x = 9.3
The destination statement for the goto label is identified by what label?
Void pointer can point to which type of objects?
What will be the output of the following C++ code?
#include
using namespace std;
int max(int a, int b )
{
return ( a > b ? a : b );
}
int main()
{
int i = 5;
int j = 7;
cout << max(i, j );
return 0;
}
The major goal of inheritance in c++ is
Wrapping data and its related functionality into a single entity is known as _____________
How many minimum number of functions are need to be presented in c++?
Data members which are static
What will be the output of the following C++ code?
#include
using namespace std;
int add(int a, int b);
int main()
{
int i = 5, j = 6;
cout << add(i, j) << endl;
return 0;
}
int add(int a, int b )
{
int sum = a + b;
a = 7;
return a + b;
}
Consider the following statements. char *ptr; ptr="hello"; cout << *ptr; What will be printed
What will happen in this code?
int a = 100, b = 200;
int *p = &a, *q = &b;
p = q;
Given a class name Car, which of the following is not a valid constructor
In C++, dynamic memory allocation is accomplished by the operator
Which is used to define the member of a class externally?
What does the following statement mean?
What will you use if you are not intended to get a return value?
A class defined within another class is
Where does the execution of the program starts?
Which of the following cannot be legitimately passed to a function