Professional Documents
Culture Documents
L31+L32+L37+L38+L53+L54
Assessment-5
* Required
Register Number *
Full Name *
VIT mail ID *
https://forms.office.com/Pages/ResponsePage.aspx?id=4jyW1JSvIkGVqWROiwFiTa1zi2J1ru5KmPsZmUfL9mpUNVAzTFZRMVZFNTRLWjRWNk… 1/5
6/4/2020 L31+L32+L37+L38+L53+L54
yes
no
A function that is a friend of a class can access private member of a class but
cannot manipulate them *
(1 Point)
false
true
fun(int) called
fun(Test 2) called
https://forms.office.com/Pages/ResponsePage.aspx?id=4jyW1JSvIkGVqWROiwFiTa1zi2J1ru5KmPsZmUfL9mpUNVAzTFZRMVZFNTRLWjRWNk… 2/5
6/4/2020 L31+L32+L37+L38+L53+L54
Through templates, rather than repeating function code for each new type
we wish to accommodate, we can create functions that are capable of using
the same code for different types. *
(1 Point)
false
true
2, 3.5
5, -1.5
Error
Unless you have the source code of the class you cannot make the
declaration of the friend function inside that class *
(1 Point)
https://forms.office.com/Pages/ResponsePage.aspx?id=4jyW1JSvIkGVqWROiwFiTa1zi2J1ru5KmPsZmUfL9mpUNVAzTFZRMVZFNTRLWjRWNk… 3/5
6/4/2020 L31+L32+L37+L38+L53+L54
false
true
10
If an entire class is made a friend of another, then all the member functions
of this class can access the private data members of the original class *
(1 Point)
false
true
11
Whether the following code will run successfully or throw an compile time
error? *
(1 Point)
Runs successfully
https://forms.office.com/Pages/ResponsePage.aspx?id=4jyW1JSvIkGVqWROiwFiTa1zi2J1ru5KmPsZmUfL9mpUNVAzTFZRMVZFNTRLWjRWNk… 4/5
6/4/2020 L31+L32+L37+L38+L53+L54
12
.* (Pointer-to-member Operator )
13
Yes
No
Submit
This content is created by the owner of the form. The data you submit will be sent to the form owner.
https://forms.office.com/Pages/ResponsePage.aspx?id=4jyW1JSvIkGVqWROiwFiTa1zi2J1ru5KmPsZmUfL9mpUNVAzTFZRMVZFNTRLWjRWNk… 5/5