(Solved) : 58 Following Code Segment Syntactically Correct Array Myarray 2 16 77 34 50 Cout Myarray C Q38249857 . . .
58. The following code-segment is syntactically correct
array<int, 5> myarray = { 2, 16, 77, 34, 50 };
cout << “myarray contains:”;
for ( auto i = begin( myarray ); i != end( myarray ); ++i )
cout << ” ” << *i;
T__ F__
59. The following ‘range for’ can’t be implemented, for theabove
array, using ‘auto’:
for (auto i : myarray)
cout << i << ” “;
T__ F__
60. The following array-allocation is syntactically illegal:
size_t inputNums{20};
int* p = new int [inputNums];
T__ F__
97. The following is a legal template-syntax for inheritance:
class D : public B
{
// new class members
};
T__ F__
98. The creation of a derived class indirectly affects itsbase
class’s source code.
T__ F__
99. It is appropriate to use the protected instead of privateaccess
specifier when a base class should provide a service only toits
derived classes.
T__ F__
100. Every object of a derived class can also act as an objectof
that class’s base class.
T__ F__
Expert Answer
Answer to 58 Following Code Segment Syntactically Correct Array Myarray 2 16 77 34 50 Cout Myarray C Q38249857 . . .
OR