Structures in C++ cannot have member functions.

Each statement below is either TRUE or FALSE. Choose the most appropriate one
and ENTER in the “tear-off” sheet attached to the question paper, following
instructions therein.

2.1 Structures in C++ cannot have member functions.
2.2 Objects cannot be declared as part of a union element.
2.3 Friend functions cannot be used to overload operators.
2.4 A constructor can be used to convert a basic type to a class type data.
2.5 Casting operator function and constructor function have the same syntax.
2.6 Pure virtual functions force the programmer to redefine the virtual function.
2.7 A pointer to a base class cannot be made to point to objects of derived class.
2.8 A stream may be connected to more than one file at a time.
2.9 Binary files store floating-point values more accurately and compactly than the text files.
2.10 An exception handling mechanism is used to detecting syntax errors in the program.

Leave a Reply