Advertisement

C++ interview cheat sheet

28 key C++ questions with one-line answers, covering 14 topics, on a printable sheet. Read it the night before, or pin it next to your screen.

28questions 14topics Freewith a W3Teacher account

What's on the sheet

Preview

Casting & ConversionsBeginner

What are the four C++ named casts?

C++ provides static_cast (compile-time, related-type conversions), dynamic_cast (safe downcasting in polymorphic hierarchies, checked at runtime)…

Casting & ConversionsBeginner

What is static_cast used for?

static_cast performs well-defined conversions known at compile time: numeric conversions (int to double), converting between related pointer types in…

Compilation & LinkingBeginner

What is a translation unit?

A translation unit is a single source file after preprocessing—the .cpp file with all its #included headers textually expanded.

The full sheet has 28 questions. Sign in (free) to open it and save it as a PDF.