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 » Interview Questions on Operators in C++

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


Question: 1

(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: 2

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

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



Question: 3

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

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



Question: 4

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

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



Question: 5

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

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



Question: 6

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

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



Question: 7

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

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



Question: 8

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

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



Question: 9

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

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



Question: 10

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

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



Question: 11

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

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



Question: 12

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

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



Question: 13

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

Beginner operators Compile it[Posted by: Admin | 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

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



Question: 15

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

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



Question: 16

(A) True
(B) False

Practitioner operators Compile it[Posted by: Andrew | New Jersey]



Question: 17

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

Practitioner operators Compile it[Posted by: Andrew | New Jersey]



Question: 18

(A) True
(B) False

Practitioner operators Compile it[Posted by: Andrew | New Jersey]



Question: 19

(A) True
(B) False

Practitioner operators Compile it[Posted by: Andrew | New Jersey]