Real Interview Questions for the Game Programmer at CD Projekt
New
Practice MCQs
Answers count toward the Game Programmer and overall leaderboards; your latest answer to each question is the one that counts.
MCQ-1A C++ array holds 100,000 entities, each a `struct Entity { float x, y, z; int health; };`, and a frame loop reads only `health` from every entity in order. On the target x86 CPU the cache line is 64 bytes, so how many entities share one cache line fetched for that loop?⌄
Difficulty: Medium
Answer to see the discussion.
MCQ-2A `std::vector<Item> a` owns a heap buffer of 1000 items and `std::vector<Item> b = std::move(a);` runs. What happens to the elements and to `a`?⌄
Difficulty: Medium
Answer to see the discussion.
MCQ-3A C++17 factory `LoadTexture(path)` creates a heap `Texture` for a `Sprite`, which stores it in a `std::unique_ptr<Texture>` member as sole owner. No other system shares the texture, it must die with the sprite, and `Texture` has a deleted copy constructor with no move constructor declared. Which return type should `LoadTexture` use?⌄
Difficulty: Medium
Answer to see the discussion.
MCQ-4A 4-player co-op server ticks at 20 Hz and delta-encodes movement against the last sent position, with no full movement resync. Door state is included in a full world snapshot every two seconds, and the unlock event only triggers a sound. How should the server channel these two event types?⌄
Difficulty: Hard
Answer to see the discussion.
MCQ-5A game programmer applying to CD Projekt Red shipped crowd AI for a dense city scene, using spatial partitioning and level-of-detail updates to cut NPC cost. They want to work on large-scale open-world systems. Which interview answer best connects that experience to the studio?⌄
Difficulty: Easy
Answer to see the discussion.
MCQ-6Your last project shipped with intermittent crashes in dialogue scenes, only when a subtitle callback ran after its script line had finished. The team fixed it by adding reference counting to script strings. What was the root cause of the crash?⌄