C++ Quiz Think you know C++? Test your knowledge with this C++ Quiz See if you can answer all 7 questions correctly ghostman published on May 14, 20230 responses 0 « Previous Next » Questions in vertical order 1/7 What is a pointer? A reference to another value in memory A structure containing two data elements An array of integers A function that returns a value 2/7 Which of these is an example of a C++ class? int void Person loop 3/7 What is encapsulation? The combining of components into a single unit A process of hiding information from the user Creating a set of code that can be reused A way to improve the performance of a program 4/7 What is a constructor? A process of initializing an object A function to check the memory of an object A class that is used to instantiate a new object A function used to destroy an object 5/7 What is the correct format of a C++ comment? //comment (*comment*) 'comment' #comment 6/7 When do you use the 'break' statement in C++? To exit a while loop To create a new line in the code To continue to the next line of code To move to the next loop iteration 7/7 Which of these symbols denotes the end of a C++ statement? ; ! : .