Programming C Plus Plus MCQs Homepage
- Low-level and high-level languages MCQs
- Procedural and non Procedural languages MCQs
- C++ STANDARD LIBRARY MCQs
- Array MCQs
- Arrays MCQs 2
- Pointers Solved MCQs
- Inline Function MCQs – C++
- Top 50 Programming C++ MCQs
- MCQs of introduction to programming
- Past Papers 2022 C++ MCQs
- Past Papers 2021 C++ MCQs
- Past Papers 2020 C++ MCQs
- Past Papers 2019 C++ MCQs
- Highly Recommended C++ Important MCQs with Explanation
C++ MCQs
1. : Which of the following is the not correct statement…
(A) char nm[] = “sundas”;
(B) char nm[15] = “asifa”;
(C) char nm = “sawera”;
(D) None of these
2. : Which of the following object of derived class can access in public inheritance…
(A) Public member of the base class
(B) Private members of the base class
(C) Public member of the base class
(D) Both A and B
3. : Stream class that is used to perform both input and output file operations is called…
(A) ofstream
(B) iostream
(C) fstream
(D) ifstream
4. : Machine language is the ………… language of computer…
(A) Fundamental
(B) Assembly
(C) Java
(D) Object-oriented
5. : The symbol of rectangle in a flowchart shows…
(A) Connector
(B) I/O
(C) Process
(D) Decision
6. : A process in which source code is translated into machine code is called…
(A) Linking
(B) Executing
(C) Loading
(D) Compiling
7. : What type of error will occur in the program when an incorrect mathematical formula is used…
(A) Syntax error
(B) Logical error
(C) Runtime error
(D) None of these
8. : cin is used to get ………. from the keyboard during execution…
(A) Input
(B) Output
(C) Value
(D) Clog
9. : ……….. operators are used to compare two values…
(A) Relational operator
(B) Unary operator
(C) Bitwise operator
(D) Ternary operator
10. : The statements of the program are executed one after the other in the order in which they are written…
(A) Repetition
(B) Sequential
(C) Selection
(D) None of these
11. : ………… is an unconditional control transfer statement…
(A) If-else
(B) Break
(C) Switch
(D) Goto
12. : The statement that can only be used inside the body of a loop is…
(A) If
(B) Break
(C) Continue
(D) Switch

