4 ms·
A lot of these aren't C or C++ specific. Many of them were typos, for example. There are also some ambiguities. At least two questions I encountered contained
by Iftheshoefits 12y ago
A lot of these aren't C or C++ specific. Many of them were typos, for example.
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.
- DSMan195276 12y agoI agree. It's also worth noting that the title is wrong, this is strictly a C++ quiz, there are no C questions.
- marcoms 12y agoThough I know very little C++, a lot of the questions were applicable to a C programmer
- jeorgun 12y agoIn 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.
- Maken 12y agoOpenSSL is written in plain C.