Practical C++ Programming
by Curtis Krauskopf
The practical programming questions are the core of
most C++ programming interviews. These questions test
your knowledge of the C++ language and its features.
The purpose of these questions is to eliminate the candidates
that have not programmed in C++ recently or who recently
learned C++ through a crash-course book.
- What language feature is available when a function
returns a reference?
- What is name mangling in C++?
- What is overriding?
- Can you assign to a reference?
- What happens if you assign to a reference?
- What is a static_cast and when should it be used?
- What are the names of the other cast operators?
- How do you trap an exception without knowing what
exception might be thrown?
- Describe how you design a program.
- Most programming projects involve modifying existing
code. What things do you look for when you're tasked
with modifying an existing program?
- There is a memory leak in a program. What tools
and techniques would you use to isolate, find and
fix the memory leak?
- What's the difference between a linked list and
an array?
- What is the difference between a vector, a list
and a map?
- What is a namespace?
- What is an anonymous namespace and how is it different
than a regular namespace?
|