(A) Functions
(B) Data
(C) Both A & B
(D) Arrays
Tag: C++ Mcqs
How many parameters does a default constructor require?
(A) 0
(B) 1
(C) 2
(D) 3
How many types of constructor are there in C++?
(A) 01
(B) 02
(C) 03
(D) 04
Which of the following is not the member of the class?
(A) Const function
(B) Virtual function
(C) Static function
(D) Friend function
Which of the following storage classes have global visibility?
(A) Register
(B) Static
(C) Auto
(D) Extern
In C++ how many types of errors are?
(A) 1
(B) 2
(C) 3
(D) 4
Syntax refers to?
(A) Saving program on hard disk
(B) Rules used to create a program
(C) Both A & B
(D) None of the above
Comments are used to?
(A) To help others read and understand the program
(B) Make the program run faster
(C) Make a program compile easier
(D) Increase the size of executable program