UNIT – 3
Operators and Expressions
1) An _____ is a function , which is applied to values to give a result.
a)*Operator b)equals to c)condition d)None
2) I+=10 is equivalent to _______
a)*I = I + 10 b)I = I * 10 c)I = I – 10 d)None
3) I-=10 is equivalent to _______
a)I = I + 10 b)I = I * 10 c)*I = I – 10 d)None
4) C = c + ‘A’ + ‘a’ is a valid statement in c-language.
a) *true b)false c)None
5) Characters have _____ sizes on different machines.
a)*different b)same c)both d)None
6) The _____ symbol is used for compare the values.
a)= b)*== c)<> d) None
7) C makes use of the _____ symbol as an assignment operator.
a) *= b)== c)<> d) None
8) _____ symbol is used for logical AND .
a)*&& b)| | c)! d) None
9) _____ symbol is used for logical OR
a) && *b) | | c)! d) None
10) If a=1110 , b = 1100 then a & b is equal to _____
a)111100 b)*1100 c)1110 d)None
11) If a=1110 , b = 1100 then a | b is equal to _____
a)111100 b)1100 c)*1110 d)None
12) If a=1110 , b = 1100 then a ^ b is equal to _____
a)*0010 b)1100 c)1110 d)None
13) Shift operators are represented by the symbols _____ and _____.
a)* << and >> b)< and > c)&& and ^^ d)None
14) ____ operator is used to link the related expressions together.
a)* comma b)semicolon c)colon d)None
15) _____ operator returns the number of bytes occupied .
a)*sizeof() b)numberof() c)bytesof() d)None
UNIT – 3
Operators and Expressions
1 A 2 A 3 C 4 A 5 A
6 B 7 A 8 A 9 B 10 B
11 C 12 A 13 A 14 A 15 A