aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Computer Science Quiz Online
  • Truth table: A=1 and B=0 A OR B will OUTPUT?
Multiple choice

Truth table: A=1 and B=0 A OR B will OUTPUT?

  1. 0

  2. 1

  3. Neither

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

An OR logic gate outputs a 1 if either of its inputs is 1. Since input A is 1, the output of the OR operation is 1 regardless of the value of B.

Keep practicing — related questions

  • What will be the output of the program? class A { final public int GetResult(int a, int b) { return 0; } } ...
  • What will be the output of the following code snippet? main() { int a=11,b; clrscr(); for(a%10;a++); printf...
  • What will be the output of the following code snippet? main() { int a=1,b=1; clrscr(); a=++a||++b&&++a; pri...
  • What will be the output of the program? String a = "newspaper"; a = a.substring(5,7); char b = a.charAt(1);...
  • Directions: For the word given above the table, match the dictionary definitions on the left (1, 2, 3, 4) w...
  • What will be the output of the program? public class Test { public static void main(String args[]) { int i ...
  • What will be the output of the following code snippet? main() { int num=1; clrscr(); for(j=1;j<=6;j++) { fo...
  • 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
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy