C Language MCQ’S : Operators and Expressions Set 1

16.
Pick the operators whose meaning is context dependent

A. *
B. #
C. &
D. All of the above

 

17.
Which of the following comments about the ++ operator are correct ?

A. it is a unary operator
B. the operand can come before or after the operator
C. it cannot be applied to an expression and is ssociated from the right
D. All of these

18.
The expression 5 -2 – 3 * 5 – 2 will evaluate to 18, if

A. – is left associative and * has precedence over –
B. – is rightt associative and * has precedence over –
C. – is right associative and – has precedence over *
D. – is left associative and – has precedence over *

19.
The expression 4 + 6 / 3 * 2 – 2 + 7 % 3 evaluates to

A. 3
B. 4
C. 6
D. 7

20.
Choose the correct statements

A. address operator cannot be applied to register variables
B. misuse of register declaration will increase the execution time
C. Both (a) & (b)
D. none of above

Visitor Counter

0056743