Related Questions
What is the correct answer?
4
The declaration int **var1; shows that
A. var1 can not be accessed
B. var1 is a pointer to a pointer of type int
C. var1 is a protected data type of integer
D. this type declaration shows an error
What is the correct answer?
4
Static data member occurs in only class scope.
What is the correct answer?
4
A function that is called automatically when an object is destroyed is known as
What is the correct answer?
4
A copy constructor is used to copy an object member wise to another object of the same class.
What is the correct answer?
4
new operator is used
A. To dynamically allocate storage
B. To statically allocate storage
C. To allocate storage for a new variable
D. None of the above are correct
What is the correct answer?
4
Objects get destroyed in the reverse order as they are created.
What is the correct answer?
4
The value of 'this' pointer can be changed.
What is the correct answer?
4
The member of a structure can be accessed through a pointer by
What is the correct answer?
4
The members of a class by default are private.
What is the correct answer?
4
Delete operator is used
C. To delete variable name
D. None of the above are correct
What is the correct answer?
4
Inline function specifier reduces the overheads associated with a normal function call.
What is the correct answer?
4
In C++, the keyword auto can be used for
A. Automatic assignment of data to object during instantiation
B. Automatic call of a function
C. To declare a local variable
D. It is not a keyword in C++
What is the correct answer?
4
Operator overloading is
A. Making C++ operators work with objects
B. Making C++ operators more then they can handle
C. Giving new meaning to existing c++ operators
D. Making new C++ operators
What is the correct answer?
4
A base class is inherited by
What is the correct answer?
4
"[]" Operator is a unary operator.
What is the correct answer?
4
By using protected, one can create class members that are private to their class but
A. that can not be inherited and accessed by a derived class
B. that can still be inherited and accessed by a derived class
What is the correct answer?
4
this' pointer has to be used while accessing data members in a member function.
What is the correct answer?
4
Protected members cannot be inherited.
What is the correct answer?
4
The following syntax is valid. void inline gram_ panchayat :: show_gram_ panchayat_info().
What is the correct answer?
4
Class members are _______________ by default
D. None of the above are correct
What is the correct answer?
4
One of the major disadvantage with late binding is
A. the source code should be made available at compile time
B. the program runs slower
C. dynamic variables can not be used in the program
D. static variables can not be used
What is the correct answer?
4
Class is similar to a variable.
What is the correct answer?
4
The break statement causes an exit
A. Only from the innermost loop
B. Only from the innermost switch
C. From all loops and switch
D. Only from the innermost loops or switch
What is the correct answer?
4
A constructor cannot be explicitly called.
What is the correct answer?
4
A destructor can have arguments like constructor.
What is the correct answer?
4
Pick out the most appropriate statement from the following
A. references are pointers
B. array of references can be created
C. you can not reference a reference variable
What is the correct answer?
4
A class that contains at least one pure virtual function is called as
What is the correct answer?
4
Private members of a structure can be accessed directly from the outside of the structure.
What is the correct answer?
4
Scope resolution operator has the highest precedence.
What is the correct answer?
4
The exception is processed using