C++ Multiple Choice Questions Page 2 of 14

Home » C++ » Objective Questions

Showing Page 2 (21 - 40)

Question: 21

(A) 111011
(B) 111111
(C) 101011
(D) 101010

Compiler
Level: Beginner Category: operators

Question: 22

(A) No
(B) Yes
(C) Compilation Error
(D) Runtime Error

Compiler
Level: Beginner Category: loops

Question: 23

(A) Yes
(B) No
(C) Compilation Error
(D) Runtime Error

Compiler
Level: Beginner Category: structure

Question: 24

(A) 1
(B) 2
(C) 4
(D) 0

Compiler
Level: Beginner Category: datatype

Question: 25

(A) Yes
(B) No
(C) Compilation Error
(D) Runtime Error

Compiler
Level: Beginner Category: function

Question: 26

(A) Compilation Error
(B) Runtime Error
(C) CppBuzz
(D) CppBuzz;;;;

Compiler
Level: Beginner Category: other

Question: 27

(A) new is: -10
(B) new is: 10
(C) Compilation Error
(D) new is: 0

Compiler
Level: Beginner Category: loops

Question: 28

(A) One
(B) Compilation Error
(C) Default
(D) OneTwoThreeDefault

Compiler
Level: Practitioner Category: conditional

Question: 29

(A) 2 Bytes
(B) 4 Bytes
(C) Undefined
(D) 0

Compiler
Level: Expert Category: loops

Question: 30

(A) BASIC
(B) VB
(C) PASCAL
(D) C

Compiler
Level: Beginner Category: other

Question: 31

(A) Constructor
(B) 0
(C) Compilation Error
(D) Runtime Error

Compiler
Level: Beginner Category: classesAndobjects

Question: 32

(A) Compilation Error - Constructor Missing
(B) Nothing would be printed
(C) Undefined
(D) In constructor

Compiler
Level: Beginner Category: classesAndobjects

Question: 33

(A) XY~X~Y
(B) XY~Y~X
(C) X~XY~Y
(D) X~X~YY

Compiler
Level: Expert Category: inheritance

Question: 34

(A) Compilation Error
(B) 0
(C) 3
(D) -3

Compiler
Level: Beginner Category: other

Question: 35

(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: Expert Category: vtable

Question: 36

(A) 1
(B) 5
(C) There is no limit
(D) 256

Compiler
Level: Beginner Category: datatype

Question: 37

(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: Practitioner Category: polymorphism

Question: 38

(A) 0
(B) 1
(C) 2
(D) 4

Compiler
Level: Practitioner Category: datatype

Question: 39

(A) Yes
(B) No

Compiler
Level: Practitioner Category: datatype

Question: 40

(A) No
(B) Yes

Compiler
Level: Expert Category: datatype

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 C++20 Time & Space Complexity others

Switch to C Questions

MCQs

About Us | Contact Us | Privacy Policy | Career  | Online Training
Youtube   LinkedIn   Facebook   Twitter   Instagram  
Copyright©CppBuzz.com
Like many websites, we use cookies to ensure best browsing experience on our website. While using this website, you acknowledge to have read and accepted our cookie and privacy policy.