C/C MCQ Quiz Hub

C programming language MCQ Questions Set 2

Choose a topic to test your knowledge and improve your C/C skills

1. Which of the following is the correct syntax of including a user defined header files in C++?




2. Which of the following is a correct identifier in C++?




3. Which of the following is called address operator?




4. Which of the following is used for comments in C++?




5. What are the actual parameters in C++?




6. What are the formal parameters in C++?




7. Which function is used to read a single character from the console in C++?




8. Which function is used to write a single character to console in C++?




9.  What are the escape sequences?




10. Which of the following escape sequence represents carriage return?




11. Which of the following escape sequence represents tab?




12. Who created C++?




13. Which of the following is called insertion/put to operator?




14. Which of the following is called extraction/get from operator?




15. A language which has the capability to generate new data types are called _______




16. Wrapping data and its related functionality into a single entity is known as ______




17. How structures and classes in C++ differ?




18. What does polymorphism in OOPs mean?




19. Which concept allows you to reuse the written code?




20. Which of the following shows multiple inheritances?




21. How access specifiers in Class helps in Abstraction?




22. C++ is _______




23. What does modularity mean?




24. Which of the following class allows to declare only one object of it?




25. Which of the following is not a type of Constructor?




26. Which of the following is correct?




27. Out of the following, which is not a member of the class?




28. What is the other name used for functions inside a class?




29. Which of the following cannot be a friend?




30. Why references are different from pointers?




31. Which of the following provides a programmer with the facility of using object of a class inside other classes?




32. How many types of polymorphism are there in C++?




33. How run-time polymorphisms are implemented in C++?




34. How compile-time polymorphisms are implemented in C++?




35. Which of the following is an abstract data type?




36.  Which concept means the addition of new components to a program as it runs?




37. Which of the following explains the overloading of functions?




38. Which of the following approach is used by C++?




39.  Which operator is overloaded for a cout object?




40. Which of the following cannot be used with the virtual keyword?




41. Which concept is used to implement late binding?




42. Which of the following is correct?




43. Which of the following supports the concept that reusability is a desirable feature of a language?




44. Which of the following is a static polymorphism mechanism?




45. Which of the following is not a type of inheritance?




46. What happens if a class does not have a name?




47. Which members are inherited but are not accessible in any case?




48. Which of the following is correct?




49. Which of the following is correct in C++?




50. Which of the following is used to make an abstract class?