Embed presentation
Download to read offline





![ Individual characters in a string are
accessed as following
a) cout << S.at(i);
b) cout << S[i];
c) both a) and b)
d) None
ANSWER: c](https://image.slidesharecdn.com/cquestions-160805141640/75/C-questions-6-2048.jpg)





This document contains 10 multiple choice questions about C++ concepts like preprocessor directives, return values, exception handling, inheritance and object-oriented programming. It tests knowledge on valid preprocessor directive declarations, return values when no value is specified, the number of allowed return statements, return values for successful program execution, accessing characters in strings, keywords used for exception handling, throwing exceptions in catch blocks, the procedural and object-oriented nature of C++, and changes needed to a base class when deriving a class.





![ Individual characters in a string are
accessed as following
a) cout << S.at(i);
b) cout << S[i];
c) both a) and b)
d) None
ANSWER: c](https://image.slidesharecdn.com/cquestions-160805141640/75/C-questions-6-2048.jpg)



