This quiz works best with JavaScript enabled. Home > Class 12 > Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates – Quiz 19 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 19 (25 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Where can boolean expressions be found? A) Variables. B) If statements. C) By itself. D) Assignment statement. Show Answer Correct Answer: B) If statements. 2. In the example problem statement for a security system, what condition prevents the alarm from sounding? A) Motion detected. B) Door opened. C) Correct security code entered. D) Alarm is off. Show Answer Correct Answer: C) Correct security code entered. 3. In an AND Gate if the input A is true and the input B is false the output will be ..... A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 4. How do you design a simple circuit using AND and OR gates? A) Use only NOT gates for all conditions. B) Use AND gates for conditions that require at least one input to be true. C) Design a circuit with AND gates for conditions that require all inputs to be true, and OR gates for conditions that require at least one input to be true. D) Connect all inputs directly without gates. Show Answer Correct Answer: C) Design a circuit with AND gates for conditions that require all inputs to be true, and OR gates for conditions that require at least one input to be true. 5. The output of any logic gate can have either of two A) Gates. B) States. C) Inputs. D) Outputs. Show Answer Correct Answer: B) States. 6. What is the result of A AND B if A is 1 and B is 0? A) 0. B) 1. C) A. D) B. Show Answer Correct Answer: A) 0. 7. With a single transitor, if we turn the input on, ..... A) The output is also on. B) The output is off. C) The input is negated. D) It doesn't do anything. Show Answer Correct Answer: A) The output is also on. 8. Which of the following gates outputs 1 only when both inputs are 1? A) OR gate. B) AND gate. C) NOR gate. D) NOT gate. Show Answer Correct Answer: B) AND gate. 9. 10 < 6 || 26 != 14 A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 10. Which logic operator is mentioned?The statement (A ..... B) is true when at least one of A or B is true. A) And. B) Or. C) Not. D) None of the above. Show Answer Correct Answer: B) Or. 11. What is a Karnaugh map used for? A) Simplifying Boolean expressions. B) Drawing network topologies. C) Mapping database records. D) Encrypting binary data. Show Answer Correct Answer: A) Simplifying Boolean expressions. 12. What is the significance of the binary-coded decimal (BCD)? A) BCD enhances the speed of binary arithmetic operations. B) BCD is primarily used for text encoding in computers. C) BCD is a method for compressing numerical data in storage. D) BCD simplifies the conversion between binary and decimal systems, facilitating accurate decimal calculations in digital electronics. Show Answer Correct Answer: D) BCD simplifies the conversion between binary and decimal systems, facilitating accurate decimal calculations in digital electronics. 13. Which gates are called Universal gates? A) OR, AND. B) NAND, NOR. C) NOT. D) XOR, XNOR. Show Answer Correct Answer: B) NAND, NOR. 14. What is the result of the logical AND operation when both inputs are true? A) 0. B) 1. C) True. D) False. Show Answer Correct Answer: B) 1. 15. With the output wire attached before a transistor, and the transistor is grounded, it acts like ..... A) A NOT gate. B) An AND gate. C) An OR gate. D) An IF statement. Show Answer Correct Answer: A) A NOT gate. 16. In boolean addition 1+1 = ..... A) 1. B) 0. C) 10. D) 11. Show Answer Correct Answer: B) 0. 17. NAND gate is A) AND + NOT. B) OR + NOT. C) XOR + NOT. D) XNOR + NOT. Show Answer Correct Answer: A) AND + NOT. 18. What is the function of an OR gate? A) Produces output 1 when both inputs are 1. B) Produces output 1 when at least one input is 1. C) Produces output 0 when both inputs are 0. D) Both B and C. Show Answer Correct Answer: D) Both B and C. 19. Is represented as A) Famous KSA Victory over Argentina. B) IF Argentina wins the World cup Saudi Arabia is the only team who beat Argentina. C) Real Champ is KSA if Argentina Win. D) All of the option. Show Answer Correct Answer: D) All of the option. 20. How would you write an if-else statement in Java to check if a number is positive or negative? A) If (num >= 0) \{ "+" \} else \{ "-" \}. B) If (num <= 0) \{ "+" \} else \{ "-"\}. C) If (num == 0) \{"+" \} else \{ "-" \}. D) If (num < 0) \{ "+" \} else \{ "-" \}. Show Answer Correct Answer: A) If (num >= 0) \{ "+" \} else \{ "-" \}. 21. The symbol for not equal to is ..... A) ==. B) !==. C) !=. D) >=. E) <=. Show Answer Correct Answer: C) !=. 22. (23 !=5) || false A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 23. The number of Terms in a switching function of four variables A) 4. B) 8. C) 16. D) 12. Show Answer Correct Answer: C) 16. 24. The output of a two-input OR gate is high when A) Both inputs are low. B) Both inputs are high. C) Any one input is high. D) Only one input is high. Show Answer Correct Answer: C) Any one input is high. 25. Luna is learning how computers store information. Her teacher explains that computers use a system that represents two states, like "on" and "off" . What does the term "Binary" refer to in computing? A) A type of electrical current. B) A system that represents two states. C) A mathematical equation. D) A programming language. Show Answer Correct Answer: B) A system that represents two states. ← 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 5Class 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 10 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books