Learn C++ with 30 MCQs | Master the Basics and Set Up Your C++ Environment
C++ is a powerful and versatile programming language. This collection of 30 MCQs will guide you through its history, features, setting up the environment, and compiling your first program.
#include <iostream> int main() { std::cout << "Hello, World!"; return 0; }
| Qno | Answer |
|---|---|
| 1 | A) High-level language |
| 2 | C) Bjarne Stroustrup |
| 3 | A) Object-oriented features |
| 4 | B) System programming |
| 5 | C) ++ |
| 6 | C) Platform independent |
| 7 | B) 1983 |
| 8 | C) C |
| 9 | A) 1985 |
| 10 | A) C with Classes |
| 11 | D) AT&T Bell Labs |
| 12 | B) Object-oriented programming |
| 13 | D) Object-oriented programming |
| 14 | B) Increment operator |
| 15 | B) Manual memory allocation and deallocation |
| 16 | B) Inheritance |
| 17 | C) Both Object-oriented and Procedural |
| 18 | A) Overloading |
| 19 | B) Visual Studio |
| 20 | B) MinGW |
| 21 | A) GCC |
| 22 | C) C++ programs |
| 23 | A) Code::Blocks |
| 24 | D) Android |
| 25 | C) Hello, World! |
| 26 | A) A successful execution of the program |
| 27 | B) #include <iostream> |
| 28 | B) main() |
| 29 | C) const |
| 30 | C) The program does not compile |