Loading...

C Multiple Choice Questions

Our C questions and answers focuses on all areas of C programming language covering 100+ topics in C

C Operators and Expression-2 MCQs

C Operators and Expression-2


1. Integer division in a 'C' program results in:

a) Truncation
b) Rounding
c) Underflow
d) None of these



2. In a 'C'expression involving || operator, evaluation

a) Will be stopped if one of its components evaluates to false
b) Will be stopped if one of its components evaluates to true
c) Takes place from right to left
d) None of these



3. What is the other name of Question Mark Colon Operator?

a) Comparison Operator
b) If-Else Operator
c) Binary Operator
d) Ternary Operator



4. In C programming language, which of the following type of operators have the highest precedence

a) Relational Operators
b) Equality Operators
c) Logical Operators
d) Arithmetic Operators



5. 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
d) It associates from the right
e) All of the above



6. What number will z in the sample code given below?
int z, x = 5, y = -10, a = 4, b = 2;
z = x++ - --y*b/a;

a) 5
b) 6
c) 9
d) 10
e) 11



7. Which operator from the following has the lowest priority?

a) Assignment Operator
b) Division Operator
c) Comma Operator
d) Conditional Operator
e) Unary Operator



8. Given b = 110 and c = 20, what is the value of 'a' after execution of the expression a = b = c*=5?

a) 450
b) 10
c) 110
d) -10
e) -110



9. In C programming language, which of the following type of operators have the highest precedence

a) Relational operators
b) Equality operators
c) Logical operators
d) Arithmetic operators



10. In C programming language, which of the following operator has the highest precedence?

a) Unary +
b) *
c) >=
d) = =



- Related Topics