🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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 →
  1. Q1. What is printed? (code)
  2. Q2. Which is the only default difference between struct and class?
  3. Q3. What problem does a shallow copy of a class with a raw pointer cause?
  4. Q4. What does this print? (code)
  5. Q5. What does new do that malloc doesn't?
  6. Q6. What is the difference between overloading and overriding?
  7. Q7. What does this print? (code)
  8. Q8. Which statement about references is true?
  9. Q9. What does this print? (code)
  10. Q10. What does delete do that free does not?