Static data member can be declared as const too.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of C++ Programming MCQ
comments powered by Disqus.
The members of a class by default are private.
ios containes a pointer to streambuf.
_______ argument(s) are passed in case of binary overloaded operators.
Dynamic memory can be allocated by the following declaration
A normal C++ operator that acts in a special way on newly defined data types is said to be
What is the output of the following program segment - for(i = 1, j = 0; i < 10; i++) j += i; cout…
Objects get destroyed in the reverse order as they are created.
In C++, the stream base class is
Class is similar to a variable.
In a for loop with a multi-statement loop body, semicolons should appear following
The scope resolution operator is -
this' pointer has to be used while accessing data members in a member function.
When one object initializes another object the following function is invoked
The following syntax is valid. void inline gram_ panchayat :: show_gram_ panchayat_info().
A member function can always access the data
Which of the following are good reasons to use an object oriented language?
The new operator always returns a void pointer.
A base class is inherited by
It is possible to allow non member function access to private members of a class by declaring it as
In C++, identifiers have to be declared at the beginning of the blocks.
A direct access file is:
Inline function specifier reduces the overheads associated with a normal function call.
Private data members can be accessed
One of the important features of an abstract class is
A function that is called automatically when an object is destroyed is known as
In case of nested class, enclosing class can directly access the private data member of nested class.
A destructor can have arguments like constructor.
We cannot have the address of a constructor.
Scope resolution operator has the highest precedence.
The member of a structure can be accessed through a pointer by
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter