News for hackers. Stuff that matters.
Re:C++ Quiz by Iftheshoefits on Thursday September 18, 2014 @09:18AM (#8335005)
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.

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.
Re:C++ Quiz by marcoms on Thursday September 18, 2014 @12:12PM (#8335993)
Though I know very little C++, a lot of the questions were applicable to a C programmer
Re:C++ Quiz by jeorgun on Thursday September 18, 2014 @02:04PM (#8336664)
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.
Re:C++ Quiz by Maken on Thursday September 18, 2014 @11:17AM (#8335668)
OpenSSL is written in plain C.