Home » C++ » 100 MCQ on C++

100 MCQ on C++ Programming

Page 1 (1 - 20)


Question: 1

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

Compiler
Level: BeginnerCategory: other
[Posted by: Admin | Chicago, USA]

Question: 2

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

Compiler
Level: BeginnerCategory: operators
[Posted by: Admin | Chicago, USA]

Question: 3

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

Compiler
Level: BeginnerCategory: classesAndobjects
[Posted by: Admin | Chicago, USA]

Question: 4

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

Compiler
Level: BeginnerCategory: operators
[Posted by: Admin | Chicago, USA]

Question: 5

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

Compiler
Level: BeginnerCategory: operators
[Posted by: Admin | Chicago, USA]

Question: 6

(A) *
(B) /
(C) %
(D) all have same precedence

Compiler
Level: PractitionerCategory: operators
[Posted by: Admin | Chicago, USA]

Question: 7

(A) read()
(B) write()
(C) both A and B
(D) without read()

Compiler
Level: PractitionerCategory: operators
[Posted by: Admin | Chicago, USA]

Question: 8

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

Compiler
Level: BeginnerCategory: operators
[Posted by: Admin | Chicago, USA]

Question: 9

(A) Error
(B) 5 times
(C) 4 times
(D) 6 times

Compiler
Level: PractitionerCategory: loops
[Posted by: Admin | Chicago, USA]

Question: 10

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

Compiler
Level: BeginnerCategory: function
[Posted by: Admin | Chicago, USA]

Question: 11

(A) 5020--5020--
(B) 5020--7012020--12020--
(C) 5020--70120200--5020
(D) 5020--7050200--5020--

Compiler
Level: PractitionerCategory: function
[Posted by: Admin | Chicago, USA]

Question: 12

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

Compiler
Level: BeginnerCategory: loops
[Posted by: Admin | Chicago, USA]

Question: 13

(A) Yes
(B) No
(C) Undefined
(D) Depends on Compiler

Compiler
Level: PractitionerCategory: datatype
[Posted by: Admin | Chicago, USA]

Question: 14

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

Compiler
Level: BeginnerCategory: operators
[Posted by: Admin | Chicago, USA]

Question: 15

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

Compiler
Level: BeginnerCategory: operators
[Posted by: Admin | Chicago, USA]

Question: 16

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

Compiler
Level: BeginnerCategory: operators
[Posted by: Admin | Chicago, USA]

Question: 17

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

Compiler
Level: BeginnerCategory: operators
[Posted by: Admin | Chicago, USA]

Question: 18

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

Compiler
Level: BeginnerCategory: operators
[Posted by: Admin | Chicago, USA]

Question: 19

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

Compiler
Level: BeginnerCategory: conditional
[Posted by: Admin | Chicago, USA]

Question: 20

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

Compiler
Level: BeginnerCategory: loops
[Posted by: Admin | Chicago, USA]

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.