A hard quiz to crack for C++ programmers by Sergei Kushnirenko
Tags: cpp, programming, challenge
Published: 2023-12-20 09:43:52

Hello, fun seekers and brainstorming enthusiasts\! It's the PVS\-Studio team\. Now you have an opportunity to pass a new awesome quiz on our website\. It has challenging questions from the programming world\. It's not just a quiz, it's the quiz by Sergei Kushnirenko, a game developer at 4A Games\. If you're tired of routine tasks and want to stretch your brain with something challenging — welcome to the quiz\!

![](https://import.viva64.com/docx/blog/1093_Cpp_kushnirenko_quize/image1.png)

## There was an idea

How did we come up with the idea to create the quiz? It was purely coincidental\. Our team found two Sergei's articles\. In these articles, the author encouraged us to put our thinking caps on curious and tricky errors\. He took some errors out of his list that he had carefully collected over the years\. Other errors were taken from the list of questions for reverse job interviews — the approach that Sergei and his team use to question candidates\. Trust me: errors aren't easy — there are many moments to puzzle over\.

When our developers' team read the articles, an idea for the quiz just came up\. We contacted Sergei, and he kindly agreed to help us\. We were left to come up with answers to tricky questions, their design, and implementation\.

## Step\-by\-step guide

Let's find out more about how you can pass our [quiz](https://pvs-studio.com/en/blog/quest/kushnirenko_quiz/)? It's very lucid\!

**Step 1**

![](https://import.viva64.com/docx/blog/1093_Cpp_kushnirenko_quize/image2.png)

Exhale and focus\. The questions will be tricky\. If you answer most of them, you're obviously an experienced specialist who writes a lot of code, and a nice guy, though\. Are you focused? Go ahead to the quiz at the [link](https://pvs-studio.com/en/blog/quest/kushnirenko_quiz/)\!

**Step 2**

![](https://import.viva64.com/docx/blog/1093_Cpp_kushnirenko_quize/image3.png)

Leave fear and doubt behind\. Hurry up and click "Start"\. Then everything is easy: read the question, choose and click the answer button\. If your answer turns green — you're right; if it turns red — don't be upset and look at the green one — the right one\.

**Step 3**

![](https://import.viva64.com/docx/blog/1093_Cpp_kushnirenko_quize/image4.png)

That's it\! It's time to get the results\. Take a screen and place it in a golden frame if you correctly answered all the questions\. Please don't be sad if the result is imperfect\. These questions are really difficult\.

## Let's recap

Found all the errors? Don't worry if you didn't\. Our analyzer can help you detect such bugs\. Would you like to try it? You can do it: after passing the quiz, you can get a free 30\-days trial license\. Try PVS\-Studio on your projects and experience the power of the static analysis\. :\)

At the end of the quiz, we left a link to an article with a detailed breakdown of all the tasks\. Of course, we could leave a link to the article here, but I didn't do that\. It's boring\!

## Want more?

If you'd like to read more articles about the found bugs and their detailed descriptions, take a look at this short list:

* [A deep look into YTsaurus\. Availability, reliability, open source](https://pvs-studio.com/en/blog/posts/cpp/1077/)
* [Typos, null pointers, and treacherous TAB: 33 fragments in the GTK library](https://pvs-studio.com/en/blog/posts/cpp/1076/)
* [Bug detection in Unreal Engine projects](https://pvs-studio.com/en/blog/posts/cpp/1069/)
* [Oh my C\! How they wrote code back in the Quake days](https://pvs-studio.com/en/blog/posts/cpp/1066/)

That's all\! If you want more fun, our [Entertainment](https://pvs-studio.com/en/blog/quest/) section is waiting for you\. Spend your free time with games, quizzes, and challenges\. Don't hesitate to visit our website, you won't regret it\!