C++ Multiple Choice Questions for Beginners

Home » C++ » MCQs for Beginners
Showing 1 - 25 of 91


Question: 1

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


Level: Beginner
Category of MCQ: loops in C++

Question: 2

(A) Hi
(B) Bye
(C) HiBye
(D) Compilation Error


Level: Beginner
Category of MCQ: conditional in C++

Question: 3

(A) Scope Resolution Operator
(B) Conditional Operator
(C) Ternary Operator
(D) if else o/p


Level: Beginner
Category of MCQ: operators in C++

Question: 4

(A) 2 Bytes
(B) 4 Bytes
(C) 1 Byte
(D) Depends on Compiler


Level: Beginner
Category of MCQ: operators in C++

Question: 5

(A) +
(B) -
(C) *
(D) ::


Level: Beginner
Category of MCQ: operators in C++

Question: 6

(A) +
(B) -
(C) ++
(D) *


Level: Beginner
Category of MCQ: operators in C++

Question: 7

(A) 11
(B) 10
(C) Error
(D) 0


Level: Beginner
Category of MCQ: operators in C++

Question: 8

(A) for(initialization;condition; increment/decrement)
(B) for(increment/decrement; initialization; condition)
(C) for(initialization, condition, increment/decrement
(D) None of These


Level: Beginner
Category of MCQ: loops in C++

Question: 9

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


Level: Beginner
Category of MCQ: function in C++

Question: 10

(A) 10
(B) 11
(C) Compilation Error
(D) Linking Error


Level: Beginner
Category of MCQ: operators in C++

Question: 11

(A) ()
(B) =
(C) *
(D) ++


Level: Beginner
Category of MCQ: operators in C++

Question: 12

(A) 4.5
(B) 4.0
(C) 4
(D) Compilation Error


Level: Beginner
Category of MCQ: operators in C++

Question: 13

(A) Dcon DDest
(B) Dcon DDest BCon BDest
(C) BCon DCon DDest BDest
(D) BCon DCon BDes DDest


Level: Beginner
Category of MCQ: classesAndobjects in C++

Question: 14

(A) 10
(B) 11
(C) 12
(D) Not defined


Level: Beginner
Category of MCQ: operators in C++

Question: 15

(A) Object oriented programming
(B) Oriented object programming
(C) Office oriented programming
(D) office objective programming


Level: Beginner
Category of MCQ: other in C++

Question: 16

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


Level: Beginner
Category of MCQ: operators in C++

Question: 17

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


Level: Beginner
Category of MCQ: loops in C++

Question: 18

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


Level: Beginner
Category of MCQ: structure in C++

Question: 19

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


Level: Beginner
Category of MCQ: datatype in C++

Question: 20

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


Level: Beginner
Category of MCQ: function in C++

Question: 21

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


Level: Beginner
Category of MCQ: other in C++

Question: 22

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


Level: Beginner
Category of MCQ: loops in C++

Question: 23

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


Level: Beginner
Category of MCQ: other in C++

Question: 24

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


Level: Beginner
Category of MCQ: classesAndobjects in C++

Question: 25

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


Level: Beginner
Category of MCQ: classesAndobjects in C++

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.