Get the FREE certificate on C, C++, Java, Python, Perl, PHP, SQL, Linux & Javascript!  

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

You are here : Home » Objective Questions on C++ Programming

C++ Objective Questions (MCQs) - 245 Questions

Page 1 (1 - 100)

Question: 1

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

Beginner loops Compile it[Posted by: Admin | Chicago, USA]


Question: 2

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

Beginner conditional Compile it[Posted by: Admin | Chicago, USA]


Question: 3

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 4

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 5

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 6

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 7

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 8

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

Practitioner datatype Compile it[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

Beginner loops Compile it[Posted by: Admin | Chicago, USA]


Question: 10

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

Practitioner function Compile it[Posted by: Admin | Chicago, USA]


Question: 11

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

Beginner function Compile it[Posted by: Admin | Chicago, USA]


Question: 12

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

Practitioner loops Compile it[Posted by: Admin | Chicago, USA]


Question: 13

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 14

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

Practitioner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 15

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

Practitioner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 16

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 17

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

Beginner operators Compile it[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

Beginner classesAndobjects Compile it[Posted by: Admin | Chicago, USA]


Question: 19

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 20

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

Beginner other Compile it[Posted by: Admin | Chicago, USA]


Question: 21

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 22

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

Beginner loops Compile it[Posted by: Admin | Chicago, USA]


Question: 23

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

Beginner structure Compile it[Posted by: Admin | Chicago, USA]


Question: 24

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

Beginner datatype Compile it[Posted by: Admin | Chicago, USA]


Question: 25

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

Beginner function Compile it[Posted by: Admin | Chicago, USA]


Question: 26

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

Beginner other Compile it[Posted by: Admin | Chicago, USA]


Question: 27

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

Beginner loops Compile it[Posted by: Admin | Chicago, USA]


Question: 28

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

Practitioner conditional Compile it[Posted by: Admin | Chicago, USA]


Question: 29

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

Expert loops Compile it[Posted by: Admin | Chicago, USA]


Question: 30

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

Beginner other Compile it[Posted by: Admin | Chicago, USA]


Question: 31

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

Beginner classesAndobjects Compile it[Posted by: Admin | Chicago, USA]


Question: 32

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

Beginner classesAndobjects Compile it[Posted by: Admin | Chicago, USA]


Question: 33

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

Expert inheritance Compile it[Posted by: Admin | Chicago, USA]


Question: 34

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

Beginner other Compile it[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

Expert vtable Compile it[Posted by: Admin | Chicago, USA]


Question: 36

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

Beginner datatype Compile it[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

Practitioner polymorphism Compile it[Posted by: Admin | Chicago, USA]


Question: 38

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

Practitioner datatype Compile it[Posted by: Admin | Chicago, USA]


Question: 39

(A) Yes
(B) No

Practitioner datatype Compile it[Posted by: Admin | Chicago, USA]


Question: 40

(A) No
(B) Yes

Expert datatype Compile it[Posted by: Admin | Chicago, USA]


Question: 41

(A) Yes
(B) No

Practitioner datatype Compile it[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

Practitioner datatype Compile it[Posted by: Admin | Chicago, USA]


Question: 43

(A) Yes
(B) No

Practitioner other Compile it[Posted by: Admin | Chicago, USA]


Question: 44

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

Expert loops Compile it[Posted by: Admin | Chicago, USA]


Question: 45

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

Expert new_delete Compile it[Posted by: Admin | Chicago, USA]


Question: 46

(A) Yes
(B) No

Beginner datatype Compile it[Posted by: Admin | Chicago, USA]


Question: 47

(A) Yes
(B) No

Beginner function Compile it[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

Practitioner function Compile it[Posted by: Admin | Chicago, USA]


Question: 49

(A) Yes
(B) No

Practitioner abstract_class Compile it[Posted by: Admin | Chicago, USA]


Question: 50

(A) Yes
(B) No

Beginner datatype Compile it[Posted by: Admin | Chicago, USA]


Question: 51

(A) Yes
(B) No

Practitioner loops Compile it[Posted by: Admin | Chicago, USA]


Question: 52

(A) Yes
(B) No

Beginner pointers Compile it[Posted by: Admin | Chicago, USA]


Question: 53

(A) Yes
(B) No

Practitioner abstract_class Compile it[Posted by: Admin | Chicago, USA]


Question: 54

(A) Yes
(B) No

Practitioner classesAndobjects Compile it[Posted by: Admin | Chicago, USA]


Question: 55

(A) Yes
(B) No

Beginner datatype Compile it[Posted by: Admin | Chicago, USA]


Question: 56

(A) Yes
(B) No

Expert classesAndobjects Compile it[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

Practitioner vtable Compile it[Posted by: Admin | Chicago, USA]


Question: 58

(A) Yes
(B) No

Practitioner classesAndobjects Compile it[Posted by: Admin | Chicago, USA]


Question: 59

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

Beginner inheritance Compile it[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

Practitioner pointers Compile it[Posted by: Admin | Chicago, USA]


Question: 61

(A) Yes
(B) No

Practitioner virtual_func Compile it[Posted by: Admin | Chicago, USA]


Question: 62

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

Practitioner virtual_func Compile it[Posted by: Admin | Chicago, USA]


Question: 63

(A) Yes
(B) No

Expert function Compile it[Posted by: Admin | Chicago, USA]


Question: 64

(A) Yes
(B) No

Practitioner virtual_func Compile it[Posted by: Admin | Chicago, USA]


Question: 65

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

Expert vtable Compile it[Posted by: Admin | Chicago, USA]


Question: 66

(A) Yes
(B) No

Practitioner virtual_func Compile it[Posted by: Admin | Chicago, USA]


Question: 67

(A) Yes
(B) No

Practitioner virtual_func Compile it[Posted by: Admin | Chicago, USA]


Question: 68

(A) Yes
(B) No

Practitioner stl Compile it[Posted by: Admin | Chicago, USA]


Question: 69

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

Practitioner stl Compile it[Posted by: Admin | Chicago, USA]


Question: 70

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

Practitioner stl Compile it[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

Practitioner classesAndobjects Compile it[Posted by: Admin | Chicago, USA]


Question: 72

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

Practitioner other Compile it[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

Practitioner structure Compile it[Posted by: Admin | Chicago, USA]


Question: 74

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 75

(A) Yes
(B) No

Beginner loops Compile it[Posted by: Admin | Chicago, USA]


Question: 76

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

Practitioner conditional Compile it[Posted by: Admin | Chicago, USA]


Question: 77

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

Practitioner loops Compile it[Posted by: Admin | Chicago, USA]


Question: 78

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

Practitioner conditional Compile it[Posted by: Admin | Chicago, USA]


Question: 79

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

Expert loops Compile it[Posted by: Admin | Chicago, USA]


Question: 80

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

Expert loops Compile it[Posted by: Admin | Chicago, USA]


Question: 81

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

Expert conditional Compile it[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

Practitioner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 83

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

Beginner loops Compile it[Posted by: Admin | Chicago, USA]


Question: 84

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

Practitioner loops Compile it[Posted by: Admin | Chicago, USA]


Question: 85

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

Expert other Compile it[Posted by: Admin | Chicago, USA]


Question: 86

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

Practitioner dynamic_cast Compile it[Posted by: Admin | Chicago, USA]


Question: 87

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

Practitioner exceptions Compile it[Posted by: Admin | Chicago, USA]


Question: 88

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

Practitioner other Compile it[Posted by: Admin | Chicago, USA]


Question: 89

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

Expert new_delete Compile it[Posted by: Admin | Chicago, USA]


Question: 90

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

Practitioner classesAndobjects Compile it[Posted by: Admin | Chicago, USA]


Question: 91

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

Practitioner other Compile it[Posted by: Admin | Chicago, USA]


Question: 92

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

Expert other Compile it[Posted by: Admin | Chicago, USA]


Question: 93

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

Expert other Compile it[Posted by: Admin | Chicago, USA]


Question: 94

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

Beginner operators Compile it[Posted by: Admin | Chicago, USA]


Question: 95

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

Expert typecasting Compile it[Posted by: Admin | Chicago, USA]


Question: 96

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

Practitioner other Compile it[Posted by: Admin | Chicago, USA]


Question: 97

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

Practitioner conditional Compile it[Posted by: Admin | Chicago, USA]


Question: 98

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

Expert cpp17 Compile it[Posted by: Admin | Chicago, USA]


Question: 99

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

Expert keyword Compile it[Posted by: Admin | Chicago, USA]


Question: 100

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

Practitioner other Compile it[Posted by: Admin | Chicago, USA]