aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming - 2
  • If a = 0x6db7 and b = 0xa726, what is the value of a ^ b?
Multiple choice

If a = 0x6db7 and b = 0xa726, what is the value of a ^ b?

  1. 0x58d9

  2. 0xca91

  3. 0xceb7

  4. 0x2526

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Performing a bitwise XOR (^) on 0x6db7 and 0xa726: 0110 1101 1011 0111 XOR 1010 0111 0010 0110 equals 1100 1010 1001 0001, which is 0xca91.

Keep practicing — related questions

  • If a = 0x6db7 and b = 0xa726, then what is the value of a & b?
  • If the roots of the equation $2x^2-5x+c=0$, $a,b$ are in the ratio of $2:3$, then find the value of b?
  • Arrange the following characters in ascending order according to their ASCII value. b, A, (z-A), 0, Z
  • A, B and C were partners sharing profits in the ratio 5 : 4 : 1. 'A' retired and new ratio was decided as 3...
  • Which of the following B-lymphocytes are responsible for secreting antibodies into the blood circulation? a...
  • What will be the output of the following code snippet? main() { int a=1,b=1; clrscr(); a=++a||++b&&++a; pri...
  • Choose the option that has correctly matched Column A with Column B: | || |---|---| |Column A|Column B| |1....
  • What will be the output of the code snippet? int funct(a,b) int a,b; { return a*b; } void main() { int i=13...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Digital Logic and Microprocessors (749 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy