Table of Contents
Top 100 C++ Mcq With Answer
How to write c++ program in compiler, Write a c++ program on console, Write a c++ program on compiler. Programming in C++ is a language for implementing software for various kinds of computers. C++ is an extension of the C programming language.
It provides more facilities for data structuring, data storage and programming techniques. The most common use of C++ is in application software, however it is also widely used for operating system software, application software and embedded software.
C++ is a general-purpose programming language. It was designed and implemented by Bjarne Stroustrup in 1979 at Bell Labs. It runs on a variety of platforms, such as Windows, MacOS, Android, iOS, and Linux. C++ is widely used for developing applications and services for major software platforms.

Q1. Who is the founder of C++?
A. Dennis Ritchie
B. Bjarne Stroustrup
C. Microsoft Corporation
D. Tim Berners-Lee
Q2. C++ was first introduced in which year?
A. 1997
B. 1998
C. 1996
D. 1995
Q3. What was the original name given to C++?
A. C with classes
B. C Language
C. C Sharp
D. None of the above
Q4. Which of the following sign is used for comments in C++?
A. /* comment */
B. // comment
C. // comment */
D. Both A & B
Q5. Which of the following function is used to read a single character from the console in
C++?
A. getline(ch)
B. read(ch)
C. cin.get(ch)
D. scanf(ch)
Also read:
Q6. ………. is an abstract data type.
A. float
B. int
C. class
D. string
Q7. Which of the following concept is used to implement late binding?
A. Constant functions
B. Operator functions
C. Virtual functions
D. Static functions
Q8. What is the correct size of a boolean variable in C++?
A. 1 bit
B. 2 bytes
C. 1 byte
D. None of the above
Q9. Which of the following loop is an exit-controlled loop?
A. for
B. while
C. do-while
D. None of the above
Q10. Which of the following is the other name of compile-time polymorphism?
A. Static polymorphism
B. Executing polymorphism
C. Dynamic polymorphism
D. Non-executing polymorphism
Q11. Std is a ……….. in C++?
A. standard namespace
B. standard class
C. standard header file
D. standard file reading header
Q12. Which of the following feature of the OOPS gives the concept of reusability?
A. Inheritance
B. Abstraction
C. Encapsulation
D. None of the above
Q13. What is the default executable generation on UNIX for a C++ program?
A. a
B. a.out
C. out.a
D. a.exe
Q14. can we create objects of the abstract class?
A. Yes
B. No
Q15. Which of the followings are used to format the data display in CPP?
A. Allocators
B. Iterators
C. Manipulators
D. Punctuators
Q16. Which of the following are used for generic programming?
A. Inheritance
B. Templates
C. Virtual Functions
D. None of the above
Q17. The compiler does not support automatic type conversions for the …………..
A. User-defined data type
B. Basic data type
C. Class data type
D. None of the above
Q18. Which of the following is the other name of full specialization?
A. Implicit specialization
B. Explicit specialization
C. Function overloading template
D. None of the above
Q19. the client module imports ………..
A. Records
B. Interface
C. Macro
D. None of the above
Q20. Which of the following is the general syntax for accessing the namespace variable?
A. Namespace,operator
B. Namespace#operator
C. Namespaceid::operator
D. None of the above