42651.Which of the following type of class allows only one object of it to be created?
Virtual class
Abstract class
Singleton class
Friend class
42652.Which of the following is not a type of constructor?
Copy constructor
Friend constructor
Default constructor
Parameterized constructor
42653.Which of the following statements is correct?
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.
42654.Which of the following is not the member of class?
Static function
Friend function
Const function
Virtual function
42655.Which of the following concepts means determining at runtime what method to invoke?
Data hiding
Dynamic Typing
Dynamic binding
Dynamic loading
42656.Which of the following statements is incorrect?
Friend keyword can be used in the class to allow access to another class.
Friend keyword can be used for a function in the public section of a class.
Friend keyword can be used for a function in the private section of a class.
Friend keyword can be used on main().
42657.Which of the following statement is correct regarding destructor of base class?
Destructor of base class should always be static.
Destructor of base class should always be virtual.
Destructor of base class should not be virtual.
Destructor of base class should always be private.
42658.Which of the following two entities (reading from Left to Right) can be connected by the dot operator?
A class member and a class object.
A class object and a class.
A class and a member of that class.
A class object and a member of that class.
42659.How can we make a class abstract?
By making all member functions constant.
By making at least one member function as pure virtual function.
By declaring it abstract using the static keyword.
By declaring it abstract using the virtual keyword.
42660.Which of the following access specifies is used in a class definition by default?
Protected
Public
Private
Friend
42661.Which of the following function prototype is perfectly acceptable?
int Function(int Tmp = Show());
float Function(int Tmp = Show(int, float));
Both A and B.
float = Show(int, float) Function(Tmp);
42662.Which of the following statement is correct?
C++ enables to define functions that take constants as an argument.
We cannot change the argument of the function that that are declared as constant.
Both A and B.
We cannot use the constant while defining the function.
42663.Which of the following statement is correct?
Overloaded functions can have at most one default argument.
An overloaded function cannot have default argument.
All arguments of an overloaded function can be default.
A function if overloaded more than once cannot have default argument.
42664.Which of the following statement will be correct if the function has three arguments passed to it?
The trailing argument will be the default argument.
The first argument will be the default argument.
The middle argument will be the default argument.
All the argument will be the default argument.
42665.Which of the following statement is incorrect?
Default arguments can be provided for pointers to functions.
A function can have all its arguments as default.
Default argument cannot be provided for pointers to functions.
A default argument cannot be redefined in later declaration.
42666.Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
^pat
$pat
pat$
pat^