C++ Telephonic Interview Questions & Answers
30 questions for the telephonic interview stage — 13 easy, 15 medium, 2 hard.
About the telephonic interview round
The telephonic or screening round is a 15-30 minute call with a recruiter or engineer. It checks your basics, your CV and whether you can explain C++ concepts clearly without a screen to point at.
Tips for the telephonic interview round
- Keep your CV in front of you and be ready to explain every line on it.
- Answer in short, clear sentences; there is no whiteboard, so structure matters.
- Take the call somewhere quiet and confirm the time in advance.
- Prepare one question to ask the interviewer at the end.
What are lvalues and rvalues?
Show answer
What are default arguments and what rules apply to them?
Show answer
What are race conditions and data races?
Show answer
Sorting a vector of large objects is slow. What can you do?
Show answer
Solve two sum: return indices of two numbers that add up to a target.
Show answer
Code that erases elements from a vector inside a range-based for loop crashes. Why, and what is the correct way?
Show answer
What is CMake and why is it used for C++ projects?
Show answer
You must find the top 100 most frequent items in a stream of 10 million events. How would you do it?
Show answer
Which unit testing frameworks are common in C++?
Show answer
What is pointer arithmetic?
Show answer
What is a void pointer and when would you use it?
Show answer
What does C++20 std::jthread add over std::thread?
Show answer
Write a Shape hierarchy with a virtual area function and use it polymorphically.
Show answer
A program crashes with terminate called without an active exception when a function returns. What is the cause?
Show answer
Tell me about a time you designed the class structure for a module and how you handled review feedback.
Show answer
Explain the stages of compiling and running a C++ program.
Show answer
Is it expensive to return a large std::vector from a function by value?
Show answer
What is a pure virtual function and an abstract class?
Show answer
What is std::string_view and what are its pitfalls?
Show answer
What is the difference between an inline function and a macro?
Show answer
What do auto and decltype do?
Show answer
What is a pointer and how is it different from a reference?
Show answer
Memory leaks appear when derived objects stored as Base* are deleted. What is wrong and how do you fix it?
Show answer
What is function overloading and how does the compiler choose an overload?
Show answer
Tell me about a time you found a difficult bug in your C++ code.
Show answer
Find the middle node of a linked list in a single pass.
Show answer
How does std::condition_variable work and what are spurious wakeups?
Show answer
What are memory alignment and padding?
Show answer
Describe a time you improved code quality by changing how memory was managed.
Show answer
Frequently asked questions
What happens in the C++ telephonic interview round?
The telephonic or screening round is a 15-30 minute call with a recruiter or engineer. It checks your basics, your CV and whether you can explain C++ concepts clearly without a screen to point at.
How do I clear the telephonic interview round?
Keep your CV in front of you and be ready to explain every line on it. Answer in short, clear sentences; there is no whiteboard, so structure matters. Take the call somewhere quiet and confirm the time in advance.
Which round comes next?
A typical order is online assessment, telephonic screening, one or two technical rounds, a managerial round and HR. Use the other round pages to practise each stage.