Operators and Expressions II-55
24. In C language, the notation for ‘not equal to’ is .
(a) = ! (b) != (c) ~! (d) ^!
25. Which of the following operator/s in C have the highest precedence?
(a) Comma operator (b) Arithmetic operators
(c) Logical operators (d) Bitwise operators
26. Which of the following operator in C has the highest precedence?
(a) * (b) + (c) <= (d) ~
27. Which of the following increment and decrement operators respectively in C are valid?
(a) + and – (b) ++ and – – (c) =+ and =– (d) += and –=
28. Which of the following operator requires three operands?
(a) Right shift (>>) (b) Comma (,)
(c) Ternary operator (?:) (d) Logical AND (&&)
29. Compile time operator is .
(a) Comma (b) Modulus (c) Right shift (d) sizeof()
30. Which data type is required for modules operator?
(a) Floating (b) Character (c) Integer (d) Long floating
31. What is the result of the following statement?
printf("%f", (float)14/3);
(a) 2.3 (b) 3.2 (c) 3.00 (d) 4.66
32. Which of the following is not a formatted function?
(a) scanf() (b) printf() (c) gets() (d) None of the above
33. What is the output of sizeof (float)?
(a) 2 (b) 1 (c) 4 (d) 8
34. p% q means
(a) (p - (p/q)*q) (b) (p + ( p/q)*q) (c) (p*(p/q)*q) (d) None of the above
35. Bit wise ^ (EX_OR) operator is used for .
(a) Addition of numbers (b) Subtraction of numbers
(c) Multiplication of numbers (d) Compliment the bits
36. Which of the following is Boolean operator for logical OR?
(a) & (b) | (c) ! (d) &&
37. Which of the following is Boolean operator for logical EXOR?
(a) & (b) | (c) ^ (d) ||
38. Which of the following is Boolean operator for logical NOT (inverter)?
(a) ~ (b) | (c) ^
M03_ITL-ESL4791_02_SE_C03.indd 55 12/22/2012 5:00:08 PM