Interview Questions on C C++

Home  |  About Us  |  Contact
View Questions Contribute Training Misc..

Interview Questions on Operators in C++ : (19) Questions

You are here : Home » Interview Questions on Operators in C++


Question: 1

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

[Posted by: Admin | Location: Chicago, USA]



Question: 2

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

[Posted by: Admin | Location: Chicago, USA]



Question: 3

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

[Posted by: Admin | Location: Chicago, USA]



Question: 4

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

[Posted by: Admin | Location: Chicago, USA]



Question: 5

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

[Posted by: Admin | Location: Chicago, USA]



Question: 6

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

[Posted by: Admin | Location: Chicago, USA]



Question: 7

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

[Posted by: Admin | Location: Chicago, USA]



Question: 8

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

[Posted by: Admin | Location: Chicago, USA]



Question: 9

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

[Posted by: Admin | Location: Chicago, USA]



Question: 10

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

[Posted by: Admin | Location: Chicago, USA]



Question: 11

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

[Posted by: Admin | Location: Chicago, USA]



Question: 12

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

[Posted by: Admin | Location: Chicago, USA]



Question: 13

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

[Posted by: Admin | Location: Chicago, USA]



Question: 14

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

[Posted by: Admin | Location: Chicago, USA]



Question: 15

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

[Posted by: Admin | Location: Chicago, USA]



Question: 16

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 17

(A) re-assigned
(B) reformatted
(C) constructed
(D) overloaded

[Posted by: Andrew | Location: New Jersey]



Question: 18

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]



Question: 19

(A) True
(B) False

[Posted by: Andrew | Location: New Jersey]