Score: 0
Programming MCQs
C++ Programming MCQS
C++ | MCQs & Past Papers
Study Mode
Show correct answers and hints
1
Who invented C++?
2
Which of the following is used for comments in C++?
3
Which of the following approach is used by C++?
4
Which of the following correctly declares an array in C++?
5
. What is abstract class in C++?
6
Which concept allows you to reuse the written code in C++?
7
Which of the following shows multiple inheritances?
8
The constants in C++ are also known as?
9
Total types of constructors in C++ are?
10
Using the throw keyword, an exception can be generated in C++.
11
What is the number of parameters that a default constructor requires?
12
Which of the following data type is supported in C++ but not in C?
13
Which of the following is not a type of inheritance?
14
Which of the following is “address of operator”?.
15
Choose the correct default return value of function.
16
Choose the correct option which is mandatory in a function.
17
Choose the size of the below struct.
Struct{
Int a;
Char b;
Float c;
}
18
Find the output of the following program.
main(){
int a = 10 / 0;
}
19
Identify the correct function from which the execution of C++ program starts?
20
which header file is needed to use 'cin' and 'cout' in c++ ?
21
What is correct way to define pointer in c++?
22
what is the keyword used for inheritance in c++?