Question # 1 of 10 ( Start time:
02 :16 :16 PM ) Total Marks: 1
Friend Functions of a class are
_________ members of that class .
Select correct option :
Public
Private
Protected
None of the given options .
Question # 2 of 10 ( Start time:
02 :17 :30 PM ) Total Marks: 1
Consider the code below , class
class1 { protected : int i ; }; class
class2 : protected class1 { }; Then int
member i of class1 is ______ in class 2 ,
Select correct option :
public
protected
private
none of the given options
Question # 3 of 10 ( Start time:
02 :17 :56 PM ) Total Marks: 1
A Child class can call constructor of its
parent class through ,
Select correct option :
Its constructor initialization list
Its constructor body
Both from its constructor initialization
list or body -
Can not call the constructor of its
parent class
Question # 4 of 10 ( Start time:
02 :19 :01 PM ) Total Marks: 1 We can
access private members of the class
from outside the class using ______
operator with its object pointer .
Select correct option :
- >
.
&
None of the given options
Question # 5 of 10 ( Start time:
02 :20 :13 PM ) Total Marks: 1
A function call is resolved at run - time
in ___________
Select correct option :
non - virtual member function
virtual member function
Both non - virtual member and virtual
member function .
None of given
Question # 6 of 10 ( Start time:
02 :20 :35 PM ) Total Marks: 1
It is sometimes useful to specify a
class from which no objects will ever be
created .
Select correct option :
True
Flase
Question # 7 of 10 ( Start time:
02 :21 :01 PM ) Total Marks: 1
Consider the code below , class
class1 { public: void func 1 (); }; class
class2 : private class 1 { }; Function
func1 of class1 is ______ in class 2 ,
Select correct option :
public
protected
private
none of the given options
Question # 8 of 10 ( Start time:
02 :21 :26 PM ) Total Marks: 1
Consider the code below , class
class1 { public: int i ; }; class class 2 :
protected class 1 { }; Then int member i
of class 1 is ______ in class2 ,
Select correct option :
public
protected
private
none of the given options
Question # 9 of 10 ( Start time:
02 :22 :00 PM ) Total Marks: 1
Static casting is,
Select correct option :
Implicit way of calling base class
functions from derived class
Explicit way of calling base class
functions from derived class
None of these
Both of these
Question # 10 of 10 ( Start time :
02 :23 :15 PM ) Total Marks: 1
Consider the code below , class
class1 { protected : void func 1 (); };
class class2 : public class1 { }; Function
func1 of class1 is ______ in class 2 ,
Select correct option :
public
protected
private
none of the given options