aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming Fundamentals
  • If a=5 and b=7, then a | b is __________.
Multiple choice

If a=5 and b=7, then a | b is __________.

  1. 111

  2. 101

  3. 000

  4. 010

  5. 001

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

Firstly change in binary; a=101and b=111 a|b=111

Keep practicing — related questions

  • If a=5 and b=8, what is the value of a & b?
  • If a= 10Then a=
  • What will be the output of the program? String a = "newspaper"; a = a.substring(5,7); char b = a.charAt(1);...
  • A, B and C were partners sharing profits in the ratio 5 : 4 : 1. 'A' retired and new ratio was decided as 3...
  • Consider the following statements regarding 7-Segment LED Display. (a) Used for displaying numbers only (b)...
  • Which three are methods of the Object class? 1. notify(); 2. notifyAll(); 3. isInterrupted(); 4. synchroniz...
  • In an election contested by two candidates, 5% of the voters did not vote. The winner won by 5100 votes sec...
  • Which among the following are glucogenic intermediates? 1. Pyruvate 2. α-ketoglutarate 3. Succinyl-CoA 4. F...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy