Question 1 of 25
Hints left: 3
Q1
Which operator is used to perform a bitwise OR operation in C?
Q2
What is the result of the expression 5 * (1 + 2) - 3 in C?
Q3
What is the result of the expression 2.5 + 2 in C?
Q4
What is the result of the expression (10 + 2) / 2 in C?
Q5
In C programming language, which of the following type of operators have the highest precedence
Q6
What is the result of the expression (6 + 3) / 0 in C?
Q7
What will be the output? void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } }
Q8
Which operator has the lowest priority?
Q9
What will be the output of the following program? void main() { int a, b, c, d; a = 3; b = 5; c = a, b; d = (a, b); printf("c=%d d=%d", c, d); }
Q10
Determine output: void main() { int i=10; i = !i>14; printf("i=%d", i); }
Q11
What is the result of the expression 8 % 4 in C?
Q12
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;
Q13
Which of the following operator takes only integer operands?
Q14
Which of the following comments about the ++ operator are correct?
Q15
Determine output: void main() { int i=0, j=1, k=2, m; m = i++ || j++ || k++; printf("%d %d %d %d", m, i, j, k); }
Q16
What is the order of precedence of the logical operators in C?
Q17
What is the result of the expression 5 / 2.0 in C?
Q18
Determine output: void main() { int c = - -2; printf("c=%d", c); }
Q19
Which operator is used for inequality comparison in C?
Q20
What is the output of the following statements? int b=15, c=5, d=8, e=8, a; a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15; printf("%d", a);
Q21
What will be the output of this program on an implementation where "int" occupies 2 bytes? #include <stdio.h> void main() { int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j); }
Q22
What is the result of the expression 1 && 0 in C?
Q23
In an expression involving || operator, evaluation I. Will be stopped if one of its components evaluates to false II. Will be stopped if one of its components evaluates to true III. Takes place from right to left IV. Takes place from left to right
Q24
What is the output of the following statements? int i = 0; printf("%d %d", i, i++);
Q25
Which operator is used to perform a bitwise XOR operation in C?