By default the members of a class are private.

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 In general, switch is faster than if-else.
2.2 By default the members of a class are private.
2.3 The length of a string object s1 can be obtained using the expression s1.length.
2.4 All functions in an abstract base class must be declared pure virtual.
2.5 Throwing an exception always causes program termination.
2.6 The expression for (;;) is the same as a while loop with a test expression of true.
2.7 We cannot use the % operator to compute the remainder of an array index.
2.8 There is no direct mechanism to locate a sub-string in a string.
2.9 Static member functions are independent of objects.
2.10 If no overloaded operators are provided, C++ automatically provides them.

Leave a Reply