C Language MCQ’S : Operators and Expressions Set 1

6.
The statement
printf( ” %f “, ( float )9/5) ;
prints

A. 1.8
B. 1.0
C. 2.0
D. none of these

7.
When a variable of data type double is converted into float, then

A. Rounding takes place
B. Truncation takes place
C. The lower-order bits are dropped
D. None of these

 

8.
Coercion

A. Takes place across an assignment operator
B. takes place if an operator has operands of different data types
C. means casting
D. both (a) & (b)

 

9.
Choose the correct statements

A. constant expressions are evaluated at compile time
B. string constants can be concatenated at compile time
C. size of array must be known at compile time
D. All of above

 

10.
Which of the following operators takes only integer operands ?

A. +
B. *
C. /
D. %