Languages & Frameworks

C / C++

6 practice questions. Free questions open a full answer guide; the rest unlock with Pro.

  • In C++, when would you pass a function argument by value versus by const reference, and why does it matter? Junior level
  • In C++, what's the difference between passing an argument by value, by reference, and by const reference?Go Pro Intern level
  • In modern C++, what is RAII, and how do smart pointers like unique_ptr and shared_ptr build on it?Go Pro Junior level
  • In C++, what's the difference between std::unique_ptr and std::shared_ptr, and how do they help you manage memory?Go Pro Intern level
  • In modern C++, how do you decide between unique_ptr, shared_ptr, and a raw pointer, and what is RAII?Go Pro Mid level
  • Explain move semantics in C++: what an rvalue reference is, what std::move actually does, and when a move happens instead of a copy.Go Pro Mid level
Want questions matched to your role? Paste a job title, job description, or CV for a personalized set, or go Pro to unlock the full bank.