1. What is the purpose of a virtual function in C++?
2. What does `delete` do in `delete ptr;`?
3. True or False: A pure virtual function must be implemented in the base class.
4. What is the output of `template T add(T a, T b) { return a + b; } cout << add(3, 4);`?
5. What is a smart pointer?
6. What does `override` keyword ensure?
7. What is the output of `class A { public: A() { cout << "A"; } }; A a;`?
8. True or False: RAII manages resource lifetime in C++.
9. What is `std::move` used for?
10. What happens if a destructor is not virtual in a base class?