← All topics
Quiz: C++ Interview Questions: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. What is printed? (code)
- Q2. Which is the only default difference between struct and class?
- Q3. What problem does a shallow copy of a class with a raw pointer cause?
- Q4. What does this print? (code)
- Q5. What does new do that malloc doesn't?
- Q6. What is the difference between overloading and overriding?
- Q7. What does this print? (code)
- Q8. Which statement about references is true?
- Q9. What does this print? (code)
- Q10. What does delete do that free does not?