Hello students welcome to CSE Study247 , Today I am provide you MCQs on Operator in C.
This page provide 20 Multiple choice question with Answer that is very useful of Computer science students like preparation of many exam Like ( ISRO,DRDO ,Semester, Interview, TCS , Railway & another Government Sector)
❤️ TOP 500+ C Programming Question and Answer
C programming is the basic language of programming that help to learn another language. So this MCQ is very useful for you.

C is a general purpose ,high level language that originally developed by Dennis Ritchie to develop the UNIX operating system at Bell labs.
Q.1 In the expression 'a + b', what are 'a' and 'b'?
Operator
Operand
Both A & B
None
Explanation
Operands are the variables or values upon which an operator performs its specific action.
Q.2 In the expression 'a + b', what is the '+' symbol?
Operator
Operand
Both A & B
None
Explanation
An operator is a special symbol that triggers a specific mathematical, relational, or logical operation.
Q.3 Which of the following is an example of a relational operator in C?
!=
All of these
Explanation
Relational operators like less than, greater than, and not equal to are used to compare two values.
Q.4 Are ++ and — considered unary operators?
True
False
May be
None
Explanation
Yes, they are unary operators because they only require one operand to perform an action (incrementing or decrementing by 1).
Q.5 The symbol '!=' is an example of which type of operator?
Relational
Logical
Assignment
Conditional
Explanation
!=’ is the ‘not equal to’ operator used to establish a relationship or comparison between two operands.
Q.6 Find the output: void main() { int x = 45%10; printf('%d', x); }
4
4.5
5
Error
Explanation
The modulus operator (%) returns the remainder of a division. 45 divided by 10 leaves a remainder of 5.
Q.7 Which of the following operators is used to determine the memory size of a variable?
Logical operator
Increment Operator
Sizeof operator
None
Explanation
The ‘sizeof’ operator is a unary operator that returns the size, in bytes, of a data type or object.
Q.8 Which of the following is a logical operator?
=
Explanation
The ‘&&’ symbol represents the logical AND operator, used to combine two or more boolean conditions.
Q.9 To which values can the modulus operator (%) be applied in C?
float values
double values
integer values
None
Explanation
In C, the modulus operator is strictly reserved for integer data types; it cannot be used with floating-point numbers.
Q.10 Find the output: void main() { float x = 8; printf('%f', x); }
8.000000
8.00000
8
8.0
Explanation
The integer 8 is promoted to a float, and by default, the %f format specifier prints numbers with six decimal places.
Q.11 What is the symbol for the bitwise exclusive 'OR' (XOR) operator?
!
&
|
^
Explanation
The ‘^’ symbol is used in C for the bitwise XOR operation, which returns 1 if the bits are different and 0 if they are the same.
Q.12 Which of the following expressions is generally executed the fastest by the compiler?
a++
++a
A=a+2
Both A & B
Explanation
Unary increment operators (prefix and postfix) are usually translated into a single machine-level instruction, making them highly efficient.
Q.13 Which operator has the lowest priority among the following?
||
–
+
&
Explanation
Logical OR (||) has very low precedence compared to arithmetic (+, -) and bitwise (&) operators.
Q.14 Identify the invalid expression among the options.
++(x+y)
a–
–a–
++c+d
Explanation
You cannot apply two unary decrement operators to the same variable in this manner (‘–a–‘) as it violates C’s expression evaluation rules regarding lvalues.
Q.15 Find the output: void main() { float x = 4.5 + 5.5; printf('%d', (int)x); }
10
10.000000
9
Error
Explanation
The sum is 10.0. The explicit cast ‘(int)x’ converts the float to an integer, truncating the decimal part.
Q.17 Relational operators cannot be used to compare which of the following directly?
structure
strings
float
None
Explanation
Q.18 Which operators are used to access the members of a structure?
.
–
Both A & B
None
Explanation
The dot operator (.) is used for structure variables, while the arrow operator (- ) is used when accessing members through a pointer to a structure.
Q.19 What is the '%' operator in C language formally called?
Modulus
Percentage Operator
Division
None
Explanation
The ‘%’ operator is the modulus operator, which calculates the remainder of an integer division.
Q.20 Find the output: void main() { double y = 12.6; int x = 10; int z = x + y; printf('%d', z); }
22.6
22
23
Error
Explanation
x + y equals 22.6. When this value is stored in the integer variable ‘z’, the decimal part is discarded (truncated), resulting in 22.
| S.NO | MCQ | SET-1 | SET-2 |
| 1 | Data Types | CLICK | |
| 2 | Operator | CLICK | CLICK |
| 3 | Control Structure | CLICK | CLICK |
| 4 | Looping Structure | CLICK | CLICK |
| 5 | Array | CLICK | CLICK |
| 6 | Function | CLICK | CLICK |
| 7 | Pointer | CLICK | CLICK |
| 8 | Structure and Unions | CLICK | CLICK |
| 9 | C Interview MCQ | CLICK | CLICK |
| 1. Official Telegram | Click Here |
| 2. Telegram For CSE MCQs | Click Here |
| 3. You Tube | Click Here |