CppBuzz.com
  
Home C C++ Java Python Perl PHP Spring SQL Javascript Linux Forum

You are here : Home » C++ » 100 MCQ on C++

100 MCQ on C++ Programming


Question: 1

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

Compiler DiscussOnForum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 2

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

Compiler DiscussOnForum
Beginner conditional[Posted by: Admin | Chicago, USA]



Question: 3

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

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 4

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

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 5

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

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 6

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

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 7

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

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 8

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

Compiler DiscussOnForum
Practitioner datatype[Posted by: Admin | Chicago, USA]



Question: 9

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

Compiler DiscussOnForum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 10

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

Compiler DiscussOnForum
Practitioner function[Posted by: Admin | Chicago, USA]



Question: 11

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

Compiler DiscussOnForum
Beginner function[Posted by: Admin | Chicago, USA]



Question: 12

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

Compiler DiscussOnForum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 13

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

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 14

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

Compiler DiscussOnForum
Practitioner operators[Posted by: Admin | Chicago, USA]



Question: 15

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

Compiler DiscussOnForum
Practitioner operators[Posted by: Admin | Chicago, USA]



Question: 16

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

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 17

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

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 18

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

Compiler DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 19

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

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 20

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

Compiler DiscussOnForum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 21

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

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 22

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

Compiler DiscussOnForum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 23

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

Compiler DiscussOnForum
Beginner structure[Posted by: Admin | Chicago, USA]



Question: 24

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

Compiler DiscussOnForum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 25

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

Compiler DiscussOnForum
Beginner function[Posted by: Admin | Chicago, USA]



Question: 26

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

Compiler DiscussOnForum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 27

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

Compiler DiscussOnForum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 28

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

Compiler DiscussOnForum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 29

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

Compiler DiscussOnForum
Expert loops[Posted by: Admin | Chicago, USA]



Question: 30

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

Compiler DiscussOnForum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 31

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

Compiler DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 32

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

Compiler DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 33

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

Compiler DiscussOnForum
Expert inheritance[Posted by: Admin | Chicago, USA]



Question: 34

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

Compiler DiscussOnForum
Beginner other[Posted by: Admin | Chicago, USA]



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 DiscussOnForum
Expert vtable[Posted by: Admin | Chicago, USA]



Question: 36

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

Compiler DiscussOnForum
Beginner datatype[Posted by: Admin | Chicago, USA]



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 DiscussOnForum
Practitioner polymorphism[Posted by: Admin | Chicago, USA]



Question: 38

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

Compiler DiscussOnForum
Practitioner datatype[Posted by: Admin | Chicago, USA]



Question: 39

(A) Yes
(B) No

Compiler DiscussOnForum
Practitioner datatype[Posted by: Admin | Chicago, USA]



Question: 40

(A) No
(B) Yes

Compiler DiscussOnForum
Expert datatype[Posted by: Admin | Chicago, USA]



Question: 41

(A) Yes
(B) No

Compiler DiscussOnForum
Practitioner datatype[Posted by: Admin | Chicago, USA]



Question: 42

(A) We cant have
(B) In different work space
(C) Can have but in different file
(D) We can have in any scenario

Compiler DiscussOnForum
Practitioner datatype[Posted by: Admin | Chicago, USA]



Question: 43

(A) Yes
(B) No

Compiler DiscussOnForum
Practitioner other[Posted by: Admin | Chicago, USA]



Question: 44

(A) Compilation Time
(B) Run Time
(C) Linking Time
(D) No

Compiler DiscussOnForum
Expert loops[Posted by: Admin | Chicago, USA]



Question: 45

(A) GC++
(B) KDevelop
(C) GIT
(D) Valgrind

Compiler DiscussOnForum
Expert new_delete[Posted by: Admin | Chicago, USA]



Question: 46

(A) Yes
(B) No

Compiler DiscussOnForum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 47

(A) Yes
(B) No

Compiler DiscussOnForum
Beginner function[Posted by: Admin | Chicago, USA]



Question: 48

(A) It is not possible
(B) It is possible only with C code
(C) By using extern "C" keyword
(D) By Converting C++ code to C

Compiler DiscussOnForum
Practitioner function[Posted by: Admin | Chicago, USA]



Question: 49

(A) Yes
(B) No

Compiler DiscussOnForum
Practitioner abstract_class[Posted by: Admin | Chicago, USA]



Question: 50

(A) Yes
(B) No

Compiler DiscussOnForum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 51

(A) Yes
(B) No

Compiler DiscussOnForum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 52

(A) Yes
(B) No

Compiler DiscussOnForum
Beginner pointers[Posted by: Admin | Chicago, USA]



Question: 53

(A) Yes
(B) No

Compiler DiscussOnForum
Practitioner abstract_class[Posted by: Admin | Chicago, USA]



Question: 54

(A) Yes
(B) No

Compiler DiscussOnForum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 55

(A) Yes
(B) No

Compiler DiscussOnForum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 56

(A) Yes
(B) No

Compiler DiscussOnForum
Expert classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 57

(A) It contains VPTR
(B) It contains address of Virtual function
(C) It cotains address of Object
(D) None of these

Compiler DiscussOnForum
Practitioner vtable[Posted by: Admin | Chicago, USA]



Question: 58

(A) Yes
(B) No

Compiler DiscussOnForum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 59

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

Compiler DiscussOnForum
Beginner inheritance[Posted by: Admin | Chicago, USA]



Question: 60

(A) A pointer pointing to NULL
(B) Pointer pointing to memory location which has been freed
(C) Pointer which is pointing to new location
(D) None of these

Compiler DiscussOnForum
Practitioner pointers[Posted by: Admin | Chicago, USA]



Question: 61

(A) Yes
(B) No

Compiler DiscussOnForum
Practitioner virtual_func[Posted by: Admin | Chicago, USA]



Question: 62

(A) Yes
(B) No
(C) Depends on compiler

Compiler DiscussOnForum
Practitioner virtual_func[Posted by: Admin | Chicago, USA]



Question: 63

(A) Yes
(B) No

Compiler DiscussOnForum
Expert function[Posted by: Admin | Chicago, USA]



Question: 64

(A) Yes
(B) No

Compiler DiscussOnForum
Practitioner virtual_func[Posted by: Admin | Chicago, USA]



Question: 65

(A) 5
(B) 1
(C) 0
(D) Depends on Compiler

Compiler DiscussOnForum
Expert vtable[Posted by: Admin | Chicago, USA]



Question: 66

(A) Yes
(B) No

Compiler DiscussOnForum
Practitioner virtual_func[Posted by: Admin | Chicago, USA]



Question: 67

(A) Yes
(B) No

Compiler DiscussOnForum
Practitioner virtual_func[Posted by: Admin | Chicago, USA]



Question: 68

(A) Yes
(B) No

Compiler DiscussOnForum
Practitioner stl[Posted by: Admin | Chicago, USA]



Question: 69

(A) AVL Tree
(B) Binary Tree
(C) Balance Binary Tree
(D) None of these

Compiler DiscussOnForum
Practitioner stl[Posted by: Admin | Chicago, USA]



Question: 70

(A) Vector
(B) Deque
(C) Stack
(D) List

Compiler DiscussOnForum
Practitioner stl[Posted by: Admin | Chicago, USA]



Question: 71

(A) We can create n number of object
(B) We can create max 256 objects
(C) We can create 1 object
(D) We cant create object

Compiler DiscussOnForum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 72

(A) A
(B) B
(C) Both has are same
(D) Depends on Compiler

Compiler DiscussOnForum
Practitioner other[Posted by: Admin | Chicago, USA]



Question: 73

(A) Structure which contains pointers
(B) Structure which has pointer to itself
(C) Structure which contains another structure
(D) None of these

Compiler DiscussOnForum
Practitioner structure[Posted by: Admin | Chicago, USA]



Question: 74

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

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 75

(A) Yes
(B) No

Compiler DiscussOnForum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 76

(A) Hello
(B) Bye
(C) Undefined
(D) Compilation Error

Compiler DiscussOnForum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 77

(A) 01
(B) 012
(C) 0
(D) 0123

Compiler DiscussOnForum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 78

(A) FiveSix
(B) Five
(C) Six
(D) None of these

Compiler DiscussOnForum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 79

(A) 1234567899
(B) 12345678910
(C) 123455
(D) 12344

Compiler DiscussOnForum
Expert loops[Posted by: Admin | Chicago, USA]



Question: 80

(A) 1
(B) 2
(C) 0
(D) Infinite Times

Compiler DiscussOnForum
Expert loops[Posted by: Admin | Chicago, USA]



Question: 81

(A) *pp@*uzz
(B) CPP@BUZZ
(C) cpp@buzz
(D) Dp@*Czz

Compiler DiscussOnForum
Expert conditional[Posted by: Admin | Chicago, USA]



Question: 82

(A) c1=-7,c2=-4
(B) c1=-7,c2=-3
(C) c1=-4,c1=b-3
(D) c1=-6,c2=-6

Compiler DiscussOnForum
Practitioner operators[Posted by: Admin | Chicago, USA]



Question: 83

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

Compiler DiscussOnForum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 84

(A) 1@2@
(B) 1@2@1@
(C) 1@1@2@
(D) 1@2@2@

Compiler DiscussOnForum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 85

(A) std::exception
(B) std::bad_alloc
(C) std::runtime_error
(D) std::out_of_range

Compiler DiscussOnForum
Expert other[Posted by: Admin | Chicago, USA]



Question: 86

(A) std::bad_typeid
(B) std::logic_error
(C) std::runtime_error
(D) std::bad_cast

Compiler DiscussOnForum
Practitioner dynamic_cast[Posted by: Admin | Chicago, USA]



Question: 87

(A) std::bad_exception
(B) std::logic_error
(C) std::exception
(D) std::runtime_error

Compiler DiscussOnForum
Practitioner exceptions[Posted by: Admin | Chicago, USA]



Question: 88

(A) .exe
(B) .out
(C) .lib
(D) .a

Compiler DiscussOnForum
Practitioner other[Posted by: Admin | Chicago, USA]



Question: 89

(A) Heap
(B) Stack
(C) Address Space
(D) Depends on Compiler

Compiler DiscussOnForum
Expert new_delete[Posted by: Admin | Chicago, USA]



Question: 90

(A) IS-A relation
(B) HAS-A relation
(C) None of these

Compiler DiscussOnForum
Practitioner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 91

(A) Yes
(B) No
(C) Depends on compiler
(D) None of these

Compiler DiscussOnForum
Practitioner other[Posted by: Admin | Chicago, USA]



Question: 92

(A) C++ 03
(B) C++ 11
(C) C++ 14
(D) C++ 17

Compiler DiscussOnForum
Expert other[Posted by: Admin | Chicago, USA]



Question: 93

(A) C++ 03
(B) C++ 98
(C) C++ 0X
(D) C++ 03

Compiler DiscussOnForum
Expert other[Posted by: Admin | Chicago, USA]



Question: 94

(A) <
(B) <<
(C) ->
(D) >>

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 95

(A) static_cast
(B) const_cast
(C) reinterpret_cast
(D) dynamic_cast

Compiler DiscussOnForum
Expert typecasting[Posted by: Admin | Chicago, USA]



Question: 96

(A) ASM
(B) asm
(C) Not possible
(D) Compiler specific

Compiler DiscussOnForum
Practitioner other[Posted by: Admin | Chicago, USA]



Question: 97

(A) Hey..
(B) CppBuzz.com
(C) Compilation Error
(D) None of these

Compiler DiscussOnForum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 98

(A) C++ 0x
(B) C++ 98
(C) C++ 1z
(D) C++ 11

Compiler DiscussOnForum
Expert cpp17[Posted by: Admin | Chicago, USA]



Question: 99

(A) C++0x
(B) C++11
(C) C++1z
(D) C++20

Compiler DiscussOnForum
Expert keyword[Posted by: Admin | Chicago, USA]



Question: 100

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

Compiler DiscussOnForum
Practitioner other[Posted by: Admin | Chicago, USA]