Question 1
Which of the following is an arithmetic operator in C?
&&
||
+
==
Question 2
What is the result of the expression 5 % 2 in C?
2
1.5
1
0
Question 3
Which of the following is a relational operator in C?
=
!=
&
+=
Question 4
What is the precedence of the multiplication * operator compared to addition + in C?
Lower
Higher
Same
Undefined
Question 5
Which operator is used to access the value at an address in C?
&
*
->
.
Question 6
What will be the result of the expression 100 + 20 * 30 in C?
900
600
800
700
Question 7
Which of the following is a bitwise operator in C?
&&
||
>>
==
Question 8
Consider: int a = 10, b = 5; a += b; What is the value of a?
5
10
15
20
Question 9
What does the expression (a > b) ? a : b do in C?
Compares a and b, returns the smaller
Compares a and b, returns the greater
Returns the average of a and b
Always returns a
Question 10
What is the output of printf("%d", 5 && 0);?
0
1
5
Error
There are 20 questions to complete.