Re:C++ Quiz
by DSMan195276 on Thursday September 18, 2014 @09:37AM
(#8335096)
I agree. It's also worth noting that the title is wrong, this is strictly a C++ quiz, there are no C questions.
Though I know very little C++, a lot of the questions were applicable to a C programmer
In fact I think most of them are more applicable to a C programmer. Most C++ programs aren't going to be making extensive use of, say, snprintf, which several of the errors I was shown involved.
There are also some ambiguities. At least two questions I encountered contained more than one bug, or at least one explicit bug and one "occasional" bug due to a lack of testing in the code (say, for division by zero).
Also, it'd be a a good idea to put a disclaimer for the quiz taker to assume types, variables and other tokens are declared properly. It's easy to make the deduction after getting the first question which you get incorrect because you chose the "wrong" bug.