Site icon T4Tutorials.com

History and features of C++ MCQs

1. #1: Who is known as the creator of C++?

(A) Ken Thompson


(B) Dennis Ritchie


(C) James Gosling


(D) Bjarne Stroustrup



2. In which year was C++ first developed?

(A) 1979


(B) 1983


(C) 1985


(D) 1990



3. C++ was originally called:

(A) C++


(B) C with Classes


(C) C#


(D) Objective C



4. C++ is mainly classified as a:

(A) Procedural language


(B) Object-oriented language


(C) Functional language


(D) Markup language



5. Which feature of C++ supports code reusability?

(A) Encapsulation


(B) Compilation


(C) Polymorphism


(D) Inheritance



6. The feature of C++ that allows functions with the same name but different arguments is called:

(A) Overloading


(B) Inheritance


(C) Encapsulation


(D) Abstraction



7. Which feature of C++ allows hiding internal details?

(A) Polymorphism


(B) Encapsulation


(C) Inheritance


(D) Overloading



8. C++ supports which type of memory management?

(A) Static only


(B) Dynamic only


(C) Both static and dynamic


(D) None



9. Which of the following is NOT a feature of C++?

(A) Object-oriented programming


(B) Procedural programming


(C) Garbage collection


(D) Generic programming



10. C++ is considered a hybrid language because it supports:

(A) Assembly and high-level programming


(B) Procedural and object-oriented programming


(C) Functional and scripting programming


(D) Web and database programming



11. The concept of “Polymorphism” in C++ refers to:

(A) One function or operator behaving in multiple forms


(B) Hiding data


(C) Data inheritance


(D) Memory allocation



12. Which C++ feature allows the creation of user-defined data types?

(A) Function


(B) Class


(C) Pointer


(D) Reference



13. C++ is an extension of which language?

(A) Java


(B) C


(C) Python


(D) Pascal



14. C++ supports which type of polymorphism?

(A) Compile-time and run-time


(B) Static only


(C) Dynamic only


(D) None



15. Which of the following is a major advantage of C++ over C?

(A) It supports object-oriented programming


(B) It is slower


(C) It has no pointers


(D) It cannot be compiled



16. Templates in C++ support:

(A) Object-oriented programming only


(B) Generic programming


(C) Procedural programming only


(D) Database connections



17. The “cout” object in C++ is used for:

(A) Input


(B) Output


(C) File handling


(D) Compilation



18. The language in which C++ was developed initially is:

(A) Assembly


(B) C


(C) Java


(D) Python



19. The first commercial release of C++ was in:

(A) 1983


(B) 1985


(C) 1989


(D) 1991



20. C++ allows memory management through:

(A) malloc and free


(B) new and delete


(C) Both (A) and (B)


(D) None of these



Exit mobile version