Operators and Enums in C Language

Programming Language > C Programming Language

Are you looking for a comprehensive set of MCQs on Operators in C Language? Look no further! Our collection of MCQs on Operators in C Language covers all the important topics related to the subject. With these MCQs, you can test your knowledge and understanding of the various operators used in C Language. Our MCQs are designed to help you prepare for competitive exams and interviews. So, get ready to brush up your knowledge and ace your exams with our Operators in C Language MCQs!

In this section we will discuss about Operators and Enums in C Programing Language.


➲ Operators and Enums in C Language - Quiz

  • A && operator
  • B & operator
  • C || operator
  • D ! operator
  • A %
  • B +
  • C -
  • D None of these
  • A None
  • B Compile time error
  • C -1
  • D 1
  • A && operator
  • B & operator
  • C || operator
  • D | operator
  • A && operator
  • B & operator
  • C || operator
  • D ! operator
  • A Decimal system
  • B Hexadecimal system
  • C Octal system
  • D No need to convert
  • A ffff
  • B 0fff
  • C 0000
  • D fff0
  • A Value of x is 1.3
  • B Value of x is 2
  • C Value of x is 0.3
  • D Compile time error
  • A Relational operators
  • B Equality operators
  • C Logical operators
  • D Arithmetic operators
  • A ffff
  • B fff8
  • C 0
  • D -1
  • A Value of x is 4
  • B Value of x is 1
  • C Value of x is 3
  • D Compile time error
  • A Value of x is 15
  • B Value of x is 16
  • C Undefined behaviour
  • D Value of x is 21
  • A It is a unary operator and It associates from the right
  • B The operand can come before or after the operator
  • C It cannot be applied to an expression
  • D All of the above
  • A i=4 j=2
  • B i=3 j=2
  • C i=5 j=2
  • D the behavior is undefined
  • A %, *, /, +, -
  • B %, +, /, *, -
  • C +, -, %, *, /
  • D %, +, -, *, /
  • A 4 1 8 1
  • B 4 >> 1 8 >> 1
  • C 2 >> 4 Garbage value >> Garbage value
  • D 2 4
  • A a *= 20;
  • B a /= 30;
  • C a %= 40;
  • D a != 50;
  • A ++
  • B %
  • C +
  • D ||
  • A char
  • B short
  • C float
  • D int
  • A EXAM is printed
  • B exam is printed
  • C Compiler Error
  • D Nothing is printed
  • A 0 1
  • B 1 0
  • C 0 0
  • D 1 1
  • A 11
  • B 14
  • C 12
  • D 13
  • A It prints all even bits from num
  • B It prints all odd bits from num
  • C It prints binary equivalent num
  • D Error
  • A Assignment operator
  • B Division operator
  • C Comma operator
  • D Conditional operator
  • A It counts the number of bits that are ON (1) in the number num.
  • B It counts the number of bits that are OFF (0) in the number num.
  • C It sets all bits in the number num to 1
  • D Error
  • A 0
  • B Compile time error
  • C 1
  • D Undefined behaviour
  • A int
  • B float
  • C double
  • D There is no type for an assignment expression
  • A a *= b + 1;
  • B (c = a * b)!=(a = c + a);
  • C a = (b + 1)* a;
  • D All of the mentioned
  • A c = 1;
  • B c = 2;
  • C c = 3;
  • D c = 4
  • A True
  • B False
  • C Don't Know
  • D Error
  • A Addition of a and n.
  • B Subtraction of a and n.
  • C Multiplication of a and n.
  • D Division of a and n.
  • A a %= 10;
  • B a /= 10;
  • C a |= 10;
  • D None of the mentioned
  • A structure
  • B long
  • C strings
  • D float
  • A No difference as space doesn't make any difference, values of a, b, d are same in both the case
  • B No difference as space doesn't make any difference, values of a, b, d are different
  • C Program 1 has syntax error, program 2 is not
  • D Program 2 has syntax error, program 1 is not
  • A a = 1, b = 1
  • B a = 2, b = 1
  • C a = 1, b = 2
  • D a = 2, b = 2
  • A True
  • B False
  • C Depends on the compiler
  • D Depends on the standard
  • A True
  • B False
  • C Depends on the compiler
  • D depends on the standard
  • A True or False
  • B 0 or 1
  • C 0 if expression is false and any positive number if expression is true
  • D None of the mentioned
  • A 1
  • B 4
  • C Depends on the endianness of the machine
  • D Depends on the compiler
  • A 1
  • B -1
  • C 2 ^ 31 - 1 considering int to be 4 bytes
  • D Either (b) or (c)
  • A Depends on the compiler
  • B Depends on language standard
  • C 1
  • D 0
  • A a = 10, b = 9
  • B a = 10, b = 8
  • C a = 5, b = 9
  • D a = 5, b = 8
  • A = operator is not a sequence point
  • B ++ operator may return value with or without side effects
  • C it can be evaluated as (i++)+i or i+(++i)
  • D Both a and b
  • A X is 97
  • B X is 98
  • C X is 99
  • D Run time error
  • A &
  • B ^
  • C |
  • D ||
  • A &
  • B &&
  • C ||
  • D !
  • A Addition, Subtraction, Multiplication, Division
  • B Division, Multiplication, Addition, Subtraction
  • C Multiplication, Addition, Division, Subtraction
  • D Addition, Division, Modulus, Subtraction
  • A 00
  • B 1
  • C 5
  • D Compilation error