Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test

Home » C++ » C++ Objective Questions (Page-1)

C++ Objective Questions - 265

Page 1 (1 - 50)

Question: 1

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

Compiler Forum
Level: Beginner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 2

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

Compiler Forum
Level: Beginner Category: conditional
[Posted by: Admin | Chicago, USA]


Question: 3

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

Compiler Forum
Level: Beginner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 4

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

Compiler Forum
Level: Beginner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 5

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

Compiler Forum
Level: Beginner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 6

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

Compiler Forum
Level: Beginner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 7

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

Compiler Forum
Level: Beginner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 8

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

Compiler Forum
Level: Practitioner Category: 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 Forum
Level: Beginner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 10

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

Compiler Forum
Level: Practitioner Category: function
[Posted by: Admin | Chicago, USA]


Question: 11

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

Compiler Forum
Level: Beginner Category: function
[Posted by: Admin | Chicago, USA]


Question: 12

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

Compiler Forum
Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 13

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

Compiler Forum
Level: Beginner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 14

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

Compiler Forum
Level: Practitioner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 15

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

Compiler Forum
Level: Practitioner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 16

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

Compiler Forum
Level: Beginner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 17

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

Compiler Forum
Level: Beginner Category: 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 Forum
Level: Beginner Category: classesAndobjects
[Posted by: Admin | Chicago, USA]


Question: 19

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

Compiler Forum
Level: Beginner Category: 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 Forum
Level: Beginner Category: other
[Posted by: Admin | Chicago, USA]


Question: 21

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

Compiler Forum
Level: Beginner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 22

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

Compiler Forum
Level: Beginner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 23

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

Compiler Forum
Level: Beginner Category: structure
[Posted by: Admin | Chicago, USA]


Question: 24

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

Compiler Forum
Level: Beginner Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 25

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

Compiler Forum
Level: Beginner Category: function
[Posted by: Admin | Chicago, USA]


Question: 26

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

Compiler Forum
Level: Beginner Category: other
[Posted by: Admin | Chicago, USA]


Question: 27

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

Compiler Forum
Level: Beginner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 28

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

Compiler Forum
Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]


Question: 29

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

Compiler Forum
Level: Expert Category: loops
[Posted by: Admin | Chicago, USA]


Question: 30

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

Compiler Forum
Level: Beginner Category: other
[Posted by: Admin | Chicago, USA]


Question: 31

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

Compiler Forum
Level: Beginner Category: classesAndobjects
[Posted by: Admin | Chicago, USA]


Question: 32

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

Compiler Forum
Level: Beginner Category: 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 Forum
Level: Expert Category: inheritance
[Posted by: Admin | Chicago, USA]


Question: 34

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

Compiler Forum
Level: Beginner Category: 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 Forum
Level: Expert Category: vtable
[Posted by: Admin | Chicago, USA]


Question: 36

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

Compiler Forum
Level: Beginner Category: 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 Forum
Level: Practitioner Category: polymorphism
[Posted by: Admin | Chicago, USA]


Question: 38

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

Compiler Forum
Level: Practitioner Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 39

(A) Yes
(B) No

Compiler Forum
Level: Practitioner Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 40

(A) No
(B) Yes

Compiler Forum
Level: Expert Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 41

(A) Yes
(B) No

Compiler Forum
Level: Practitioner Category: 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 Forum
Level: Practitioner Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 43

(A) Yes
(B) No

Compiler Forum
Level: Practitioner Category: other
[Posted by: Admin | Chicago, USA]


Question: 44

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

Compiler Forum
Level: Expert Category: loops
[Posted by: Admin | Chicago, USA]


Question: 45

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

Compiler Forum
Level: Expert Category: new_delete
[Posted by: Admin | Chicago, USA]


Question: 46

(A) Yes
(B) No

Compiler Forum
Level: Beginner Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 47

(A) Yes
(B) No

Compiler Forum
Level: Beginner Category: 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 Forum
Level: Practitioner Category: function
[Posted by: Admin | Chicago, USA]


Question: 49

(A) Yes
(B) No

Compiler Forum
Level: Practitioner Category: abstract_class
[Posted by: Admin | Chicago, USA]


Question: 50

(A) Yes
(B) No

Compiler Forum
Level: Beginner Category: datatype
[Posted by: Admin | Chicago, USA]