Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Q / A friend function of aclass has access Q / If we open a filestream myfile fo

ID: 3612863 • Letter: Q

Question

Q / A friend function of aclass has access

Q / If we open a filestream myfile for reading, what will give us the current positionof the file
pointer?

1 tellg()
2 tellp()
3 seekg()
4 seekp()
5 fstream.h

Q / A function that callsitself is known as

? Iterativefunction

? Inlinefunction

? Recursivefunction

Q / The function call to adefault constructor

? looks like anyfunction call, except there is no return value

? never takes anyarguments

? creates but cannotinitialize an object

Q / Static memberfunctions

? must be declaredinside the class definition, but defined outside it

? must be declaredprivate

? have multiplecopies for the entire class

Q / The reserved wordspublic and private comes under the category

? structures
? strings
?accessibility modifiers
?types of functions

Q /   <,<=, >, >= are called-----------------------------operators

Q / In order to makefriend function of a class it must be the member function of someof the other class

Q / Construct of a classis called
i)Through call statement
ii)Automatically


Explanation / Answer

Q / A friend function of aclass has access

Q / If we open a filestream myfile for reading, what will give us the current positionof the file
pointer?

1 tellg()
2 tellp()
3 seekg()
4 seekp()
5 fstream.h

Q / A function that callsitself is known as

? Iterativefunction

? Inlinefunction

? Recursive function

Q / The function call to adefault constructor

? looks like anyfunction call, except there is no return value

? never takes anyarguments

? creates but cannotinitialize an object

Q / Static memberfunctions

? must be declaredinside the class definition, but defined outside it

? must be declaredprivate

? have multiplecopies for the entire class

Q / The reserved wordspublic and private comes under the category

? structures
? strings
?accessibility modifiers
?types of functions

Q /   <,<=, >, >= are called-----------------------------operators

Q / In order to makefriend function of a class it must be the member function of someof the other class

Q / Construct of a classis called
i)Through call statement
ii)Automatically