C - Operators and Expressions

C - Operators and Expressions
21.  the symbol of bitwise OR operator is 
  • |
  • ||
  • !=
  • >>
Show Answer
22.  The symbol of left shift  operator is 
  • <
  • <<
  • <=
  • <<<
Show Answer
23.  The symbol of right shift operator is 
  • <
  • >>>
  • >>
  • >
Show Answer
24. The bitwise AND  is used for 
  • masking
  • comparison
  • division
  • shifting bits
Show Answer
25.  The bitwise OR is used to 
  • set the desired bits to 1
  • multiply numbers
  • divide numbers
  • set the desired bits to 0
Show Answer
26. Tthe bitwise XOR is used to 
  • complement the desired bits
  • multiply numbers
  • divide numbers
  • set the desired bits to 0
Show Answer
27.  Logical right shift results in 
  • maintaining the leftmost bit value
  • zero is shifted to the leftmost bit position
  • one is shifted to the rightmost bit value
  • zero is shifted to the rightmost position
Show Answer
28.  Arithmetic right shift results in 
  • zero is shifted to the leftmost bit position
  • one is shifted to the rightmost bit value
  • maintains the leftmost bit value
  • zero is shifted to the rightmost bit position
Show Answer
29.  The result of the expression ~~ 7 is 
  • 7
  • 1
  • 0
  • invalid expression
Show Answer
30.  Identify the valid compound assignment. 
  • <<=
  • >>=
  • options a and b
  • >>>=
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test