If a friend function is declared inside a class it can access all data members of the class.
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 new operator always returns a void pointer.
The ?: can be used to replace
The member of a structure can be directly accessed by
A pure virtual function is a virtual function that has
_______ argument(s) are passed in case of unary overloaded operators.
Class is similar to a variable.
The value of 'this' pointer can be changed.
Inline function specifier reduces the overheads associated with a normal function call.
Public data members can be accessed
An object is an allocated space in memory.
If class A is friend of class B and if class B is friend of class C, which of the following is…
By default, members cannot be inherited.
A member function can always access the data
The getch() library function
The declaration int **var1; shows that
In C++, the stream base class is
When one object initializes another object the following function is invoked
Dynamic memory can be allocated by the following declaration
When you overload an arithmetic assignment operator, the result
A variable defined within a block is visible
A direct access file is:
Friend function have access to the
The signature of a function is
In a class, only the member function can access data, which is not accessible to outside. This feature…
Static data member occurs in only class scope.
iostream is inheried from istream, ostream and ios class.
Pick out the most appropriate statement from the following
"" Operator is a unary operator.
Operator overloading is
One of the important features of an abstract class is
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter