Lesson 60 of 60 – C++ Final Quiz
100%

C++ Final Quiz

Welcome to the C++ Final Quiz. This quiz reviews the major concepts covered throughout the complete C++ tutorial, from basic syntax and variables to functions, OOP, STL, file handling, and the mini project.

Instructions: Select the correct answer for each question. Click Submit Quiz at the end to calculate your score.

1. What is C++?




2. Which function is the entry point of a C++ program?




3. Which symbol is used to end most C++ statements?




4. Which data type is commonly used to store whole numbers?




5. Which operator is used for addition?




6. Which statement is used for decision making?




7. Which loop is commonly used when the number of iterations is known?




8. Which statement exits a loop immediately?




9. Which keyword is used to define a function that does not return a value?




10. What is the first index of a C++ array?




11. Which class is commonly used for C++ strings?




12. What does a pointer store?




13. What is a reference in C++?




14. What is a structure used for?




15. What is an object?




16. Which access specifier makes class members private by default?




17. What is the purpose of a constructor?




18. What is the name of a destructor for a class named Student?




19. What does inheritance allow?




20. What is polymorphism?




21. What is the main purpose of a virtual function?




22. What does abstraction mean?




23. What does STL stand for?




24. Which STL container stores unique values?




25. Which STL container stores key-value pairs?




26. Which class is primarily used for reading from a file?




27. Which function reads a complete line from a text file?




28. Which file mode is commonly used to append output to the end of a file?




29. Which container was used in the Student Management System to store multiple student records?




30. Which function removes an element from a vector using an iterator?




📌 C++ Final Quiz Topics

  • C++ basics and program structure
  • Variables and data types
  • Operators
  • Conditional statements
  • Loops
  • Functions and recursion
  • Arrays and strings
  • Pointers and references
  • Structures and enumerations
  • Classes and objects
  • Constructors and destructors
  • Encapsulation and inheritance
  • Polymorphism and abstraction
  • Virtual functions and templates
  • Exception handling
  • File handling
  • STL
  • Vector, map and set
  • Practical C++ programming