100 MCQ on C++ Programming
Page 2 (21 - 40)
Question: 22
(A) Yes
(B) No
Compiler
Level: PractitionerCategory: datatype
[Posted by: Admin | Chicago, USA]
Question: 23
(A) 0
(B) 1
(C) 2
(D) 4
Compiler
Level: PractitionerCategory: datatype
[Posted by: Admin | Chicago, USA]
Question: 24
(A) A class with abstract keyword
(B) A class with no functions in it
(C) A class with atleast one pure virtual function
(D) Empty Class
Compiler
Level: PractitionerCategory: polymorphism
[Posted by: Admin | Chicago, USA]
Question: 25
(A) 1
(B) 5
(C) There is no limit
(D) 256
Compiler
Level: BeginnerCategory: datatype
[Posted by: Admin | Chicago, USA]
Question: 26
(A) Every Class has VTable
(B) Class inherited from other Class
(C) When a Class Overrides the function of Base class
(D) Class has atleast one Virtual Function
Compiler
Level: ExpertCategory: vtable
[Posted by: Admin | Chicago, USA]
Question: 27
(A) Compilation Error
(B) 0
(C) 3
(D) -3
Compiler
Level: BeginnerCategory: other
[Posted by: Admin | Chicago, USA]
Question: 28
(A) XY~X~Y
(B) XY~Y~X
(C) X~XY~Y
(D) X~X~YY
Compiler
Level: ExpertCategory: inheritance
[Posted by: Admin | Chicago, USA]
Question: 29
(A) Compilation Error - Constructor Missing
(B) Nothing would be printed
(C) Undefined
(D) In constructor
Compiler
Level: BeginnerCategory: classesAndobjects
[Posted by: Admin | Chicago, USA]
Question: 30
(A) Constructor
(B) 0
(C) Compilation Error
(D) Runtime Error
Compiler
Level: BeginnerCategory: classesAndobjects
[Posted by: Admin | Chicago, USA]
Question: 31
(A) BASIC
(B) VB
(C) PASCAL
(D) C
Compiler
Level: BeginnerCategory: other
[Posted by: Admin | Chicago, USA]
Question: 32
(A) 2 Bytes
(B) 4 Bytes
(C) Undefined
(D) 0
Compiler
Level: ExpertCategory: loops
[Posted by: Admin | Chicago, USA]
Question: 33
(A) One
(B) Compilation Error
(C) Default
(D) OneTwoThree
Compiler
Level: PractitionerCategory: conditional
[Posted by: Admin | Chicago, USA]
Question: 34
Question: 35
(A) Compilation Error
(B) Runtime Error
(C) CppBuzz
(D) CppBuzz;;;;
Compiler
Level: BeginnerCategory: other
[Posted by: Admin | Chicago, USA]
Question: 36
(A) Yes
(B) No
(C) Compilation Error
(D) Runtime Error
Compiler
Level: BeginnerCategory: function
[Posted by: Admin | Chicago, USA]
Question: 37
(A) 1
(B) 2
(C) 4
(D) 0
Compiler
Level: BeginnerCategory: datatype
[Posted by: Admin | Chicago, USA]
Question: 38
(A) Yes
(B) No
(C) Compilation Error
(D) Runtime Error
Compiler
Level: BeginnerCategory: structure
[Posted by: Admin | Chicago, USA]
Question: 39
(A) No
(B) Yes
(C) Compilation Error
(D) Runtime Error
Compiler
Level: BeginnerCategory: loops
[Posted by: Admin | Chicago, USA]
Question: 40
C++ Online Test
Compile C++ code here
Browse C++ Categories
Loops Conditional Functions Operators Structure Enum Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Virtual Functions Abstract Class STL Singleton Class Exceptions C++ 11 C++ 17 Time & Space Complexity othersSwitch to C Questions