This quiz works best with JavaScript enabled. Home > Class 12 > Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates – Quiz 5 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 5 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. How would you write a boolean expression to check if a variable "age" is greater than or equal to 18 in Java? A) Age >= 18. B) Age <= 18. C) Age == 18. D) Age > 18. Show Answer Correct Answer: A) Age >= 18. 2. A(BC) = A) (AB)C. B) AB. C) AC. D) BA. Show Answer Correct Answer: A) (AB)C. 3. Find the equivalent Boolean expression of A + A'B A) AB + A'B. B) A + AB. C) A + B. D) A' + B'. Show Answer Correct Answer: C) A + B. 4. 3) The boolean expression of an OR gate is ..... A) A.B. B) A'B+AB'. C) A+B. D) A'B'. Show Answer Correct Answer: C) A+B. 5. Which gate outputs 1 only when all inputs are 0? A) OR gate. B) AND gate. C) NOR gate. D) XOR gate. Show Answer Correct Answer: C) NOR gate. 6. Evaluate:name = "lucy"name = "sally"name == "lucy" A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 7. A truth table lists every possible combination of input and the resulting output A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 8. (True NAND True) OR False A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 9. Explain De Morgan's Theorems in Boolean algebra. A) NOT (A AND B) = (NOT A) AND (NOT B). B) NOT (A OR B) = (NOT A) OR (NOT B). C) NOT (A AND B) = (A OR B). D) De Morgan's Theorems:1) NOT (A AND B) = (NOT A) OR (NOT B); 2) NOT (A OR B) = (NOT A) AND (NOT B). Show Answer Correct Answer: D) De Morgan's Theorems:1) NOT (A AND B) = (NOT A) OR (NOT B); 2) NOT (A OR B) = (NOT A) AND (NOT B). 10. Recognize the output of a NOT gate when the input is 0. A) 0. B) 1. C) Depends on other inputs. D) Undefined. Show Answer Correct Answer: B) 1. 11. K-map for 2 variables has A) 2 cells. B) 4 cells. C) 6 cells. D) 8 cells. Show Answer Correct Answer: B) 4 cells. 12. What are the two possible values that Boolean variables can assume? A) True and False. B) 0 and 1. C) On and Off. D) High and Low. Show Answer Correct Answer: B) 0 and 1. 13. Using 1 bit (1 binary digit) a pixel can have ..... A) 1 Colours. B) 4 Colours. C) 2 Colours. D) 256 Colours. Show Answer Correct Answer: C) 2 Colours. 14. Which logic operator is mentioned?The statement ( ..... X) is false when X is true and vice versa. A) And. B) Or. C) Not. D) None of the above. Show Answer Correct Answer: C) Not. 15. Who is credited with the development of Boolean Algebra? A) Isaac Newton. B) George Boole. C) Albert Einstein. D) Aristotle. Show Answer Correct Answer: B) George Boole. 16. In a NOT Gate if the input is true the output will be ..... A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 17. What is the output of an OR gate when both inputs are false? A) Undefined. B) True. C) Null. D) False. Show Answer Correct Answer: D) False. 18. What is the output of the following boolean expression in Java:System.out.println(6 > 3)? A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 19. In Boolean Algebra, A + BC = A) (A+B)(A+C). B) (A'+B)(A'+C). C) A' + B'C'. D) A+ B' + C". Show Answer Correct Answer: A) (A+B)(A+C). 20. In Boolean algebra, what does + represent? A) OR operation. B) NOT operation. C) AND operation. D) XOR operation. Show Answer Correct Answer: A) OR operation. 21. Simplification reduces A) Cost. B) Gates. C) Delay. D) All. Show Answer Correct Answer: D) All. 22. The result of this program:Friday = Falseif Friday:print "Jeans day!"else:print "Dress code" A) Jeans Day. B) Jeans day. C) Dress code. D) Dress Code. Show Answer Correct Answer: C) Dress code. 23. Who wrote this law:~ (A + B) = ~A * ~B A) Boole. B) Euler. C) DeMorgan. D) Wolfertz. Show Answer Correct Answer: C) DeMorgan. 24. "The burglar alarm will go off if either the door or the window or both are opened" . This is an example of which type of Logic? A) AND. B) OR. C) NOT. D) NOR. Show Answer Correct Answer: B) OR. 25. Which numbers for x would cause the boolean expression x <= 14 to be True? A) 3, 17, 20. B) 1, 11, 14. C) 14, 18, 20. D) 13, 14, 15. Show Answer Correct Answer: B) 1, 11, 14. ← PreviousNext →Related QuizzesClass 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 1Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 2Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 3Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 4Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 6Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 7Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 8Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 9Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 10Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 11 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books