C++ Concepts

There are Multiple Choice Questions

Correct answers color: Green

Wrong answers color: Red

 
START LEARNING

#1. What is C++ primarily known as?

#2. Which of the following is used to define a class in C++?

#3. What does the #include directive do in C++?

#4. Which operator is used to access members of a class through an object?

#5. What is the correct syntax to create a pointer in C++?

#6. Which keyword is used to prevent a function from being overridden in C+

#7. How is memory dynamically allocated in C++?

#8. What is the default return type of a C++ function?

#9. Which of the following is an access specifier in C++?

#10. What is the use of the this pointer in C++?

#11. What is a constructor in C++?

#12. Which operator is overloaded for object creation in C++?

#13. What is the output of cout << 5 / 2;?

#14. What is an abstract class in C++?

#15. What is the function of the virtual keyword in C++?

#16. Which STL container stores elements in key-value pairs?

#17. What is the default access level of members in a class?

#18. What is the size of an empty class in C++?

#19. What does the friend keyword do in C++?

#20. What is the role of a destructor in C++?

#21. Which of these is a valid syntax for a namespace?

#22. Which operator is not overloadable in C++?

#23. Which function is used to read a line of text in C++?

#24. What is polymorphism in C++?

#25. What does std stand for in C++?

#26. What is the purpose of the static keyword in C++?

#27. What does public inheritance mean in C++?

#28. Which header file includes the definition for input-output streams?

#29. Which of these is not a C++ loop construct?

#30. What is RAII in C++?

#31. What does cin represent in C++?

#32. What is an iterator in C++?

#33. Which of these is a valid function declaration in C++?

#34. Which keyword is used to handle exceptions in C++?

#35. What is the return type of main() in C++?

#36. What is nullptr in C++?

#37. Which of these is a characteristic of a template in C++?

#38. What is the purpose of the virtual keyword in C++?

#39. What is the default value of an uninitialized pointer in C++?

#40. What does the delete operator do in C++?

Previous
Finish

Results

Congratulations !

Opps! Try Again

 

For More Information Visit : – India gk

Contact for website Design and development – Chaturbhuja Sons