This quiz works best with JavaScript enabled. Home > Cbse > Class 12 > Science > Computer Science > Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates – Quiz 7 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 7 (60 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. James tells his friend that he is coming to the party. If his friend believes the opposite of what James says, what is the result of the expression:NOT (True)? A) True. B) False. C) Undefined. D) Both true and false. Show Answer Correct Answer: B) False. 2. What are NAND and NOR gates known as? A) Universal Gates. B) Basic Gates. C) Complex Gates. D) None of the above. Show Answer Correct Answer: A) Universal Gates. 3. NAND can be simplified as A) AND followed by OR. B) OR followed by AND. C) AND followed by NOT. D) OR followed by NOT. Show Answer Correct Answer: C) AND followed by NOT. 4. What are the basic logic gates used in digital electronics? A) NOR. B) XAND. C) XOR. D) AND, OR, NOT, NAND, NOR, XOR, XNOR. E) AND. Show Answer Correct Answer: D) AND, OR, NOT, NAND, NOR, XOR, XNOR. 5. What does the output of a NAND gate become when all inputs are 1? A) A. B) 0. C) 1. D) Undefined. Show Answer Correct Answer: B) 0. 6. According to the DeMorgan laws, the complement of a product of variables is equal to A) The complement of the sum. B) The sum of the complements. C) The product of the complement. D) None of these. Show Answer Correct Answer: B) The sum of the complements. 7. Ethan, Scarlett, and Nora are at a traffic signal. What should they do if the signal light is not red? A) Stop. B) Check for peanuts. C) Go ahead. D) Compare values. Show Answer Correct Answer: C) Go ahead. 8. Which operator has the lowest priority? A) AND. B) NOT. C) NOR. D) OR. Show Answer Correct Answer: D) OR. 9. What does binary representation rely on? A) Only two states of electricity. B) Complex electrical circuits. C) The use of decimal systems. D) Multiple states of electricity. Show Answer Correct Answer: A) Only two states of electricity. 10. What does a logic gate do? A) Converts binary to decimal. B) Stores data in memory. C) Controls the flow of electricity. D) Increases the speed of computations. Show Answer Correct Answer: C) Controls the flow of electricity. 11. A variable that can only have two values, True or False. A) Boolean. B) If. C) Elif. D) Else. Show Answer Correct Answer: A) Boolean. 12. Boolean algebra is based on A) Arithmetic rules. B) Calculus. C) Logic operations. D) Algebraic equations. Show Answer Correct Answer: C) Logic operations. 13. Describe a real-world application of Boolean logic. A) Boolean logic is used in cooking recipes to determine ingredient combinations. B) Search engines use Boolean logic to refine search results. C) Boolean logic is utilized in weather forecasting to predict climate changes. D) Social media platforms apply Boolean logic to filter friend requests. Show Answer Correct Answer: B) Search engines use Boolean logic to refine search results. 14. X + (X . Y) = X, Identify the boolean law: A) Absorption. B) Commutative. C) Associative. D) Distributive. Show Answer Correct Answer: A) Absorption. 15. Explain the concept of a logic circuit. A) A logic circuit is designed to process decimal numbers for arithmetic operations. B) A logic circuit is a type of mechanical device that operates on gears. C) A logic circuit processes binary inputs through logic gates to produce a binary output. D) A logic circuit uses analog signals to produce continuous outputs. Show Answer Correct Answer: C) A logic circuit processes binary inputs through logic gates to produce a binary output. 16. Which logic gate outputs 0 only when all inputs are 1? A) AND gate. B) OR gate. C) NOR gate. D) NAND gate. Show Answer Correct Answer: D) NAND gate. 17. What happens when a logic circuit is simplified using a Karnaugh Map? A) The number of logic gates is reduced. B) It produces a completely new output. C) Additional logic gates are required. D) The circuit becomes more complex. Show Answer Correct Answer: A) The number of logic gates is reduced. 18. The dual of the switching expression (X + (Y . 1)) + (Z + 0) is A) (X . (Y + 0)) . (Z . 1). B) (X . (Y + 1)) . (Z . 0). C) (X + (Y + 0)) . (Z + 1). D) None of these. Show Answer Correct Answer: A) (X . (Y + 0)) . (Z . 1). 19. A boolean is ..... A) A number with a decimal part. B) True or False. C) Letters, numbers or punctuation. D) A whole number. Show Answer Correct Answer: B) True or False. 20. Hannah and Aiden are working together on a project. If both Hannah and Aiden complete their tasks, will the project be marked as complete? A) True. B) False. C) Undefined. D) Both true and false. Show Answer Correct Answer: A) True. 21. Which inputs does an SR flip-flop have? A) Set (S) and Reset (R). B) Clock (C) and Data (D). C) Enable (E) and Reset (R). D) Input (I) and Output (O). Show Answer Correct Answer: A) Set (S) and Reset (R). 22. XNOR gate output is HIGH when inputs are A) Different. B) Same. C) All HIGH. D) All LOW. Show Answer Correct Answer: B) Same. 23. A NAND gate is called a universal logic element because A) All digital computers use NAND gates. B) All the minimisation techniques are applicable for optimum NAND gate realisation. C) Everybody use this gate. D) Any logic function can be realized by NAND gates alone. Show Answer Correct Answer: D) Any logic function can be realized by NAND gates alone. 24. Divides a number by another number and returns just the remainder A) DIV. B) MOD. C) INT. D) REM. E) EXP. Show Answer Correct Answer: B) MOD. 25. What is a logic gate and how does it relate to Boolean logic? A) A logic gate is a physical switch that controls electrical flow. B) A logic gate is an electronic component that performs Boolean operations on binary inputs. C) A logic gate is a mathematical formula used for calculations. D) A logic gate is a type of software used for programming. Show Answer Correct Answer: B) A logic gate is an electronic component that performs Boolean operations on binary inputs. 26. In Boolean Algebra, the complement of (A + B)' is: A) Ab. B) A + B. C) A'B'. D) A' + B'. Show Answer Correct Answer: C) A'B'. 27. ( (7<4 || 7>4) ) && ( 6 !=2 ) A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 28. A Half-Adder circuit is ..... (1 Point) A) Half of an AND gate. B) Half of a NAND gate. C) An OR gate and a NOT gate. D) A circuit to add two bits together. Show Answer Correct Answer: D) A circuit to add two bits together. 29. Which of the following is not a Boolean operator? A) AND. B) OR. C) XOR. D) ADD. Show Answer Correct Answer: D) ADD. 30. What would the following condition return?( 20 + 10 ) * 5 > 7 A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 31. Choose the Boolean operator represented by the symbol (+). A) AND. B) OR. C) NOT. D) NAND. Show Answer Correct Answer: B) OR. 32. How many rows will a truth table with 3 inputs have A) 8. B) 16. C) 4. D) 2. Show Answer Correct Answer: A) 8. 33. Evaluate this Boolean expression:I am NOT in Computer Science OR I am NOT in Year 8 A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 34. Which of the following represents the hexadecimal number 'A'? A) 13. B) 10. C) 12. D) 11. Show Answer Correct Answer: B) 10. 35. Which gate requires only one input to be true while the other must be false for the output to be true? A) XOR gate. B) AND gate. C) NOT gate. D) OR gate. Show Answer Correct Answer: A) XOR gate. 36. A rule in Boolean algebra which permits the multiplying or factoring out of an expression A) Distribution. B) Commutation. C) Association. D) Double Negation. Show Answer Correct Answer: A) Distribution. 37. What does a NOT operation do to a boolean value? A) Changes it to the opposite value. B) Combines it with another value. C) Leaves it unchanged. D) None of the above. Show Answer Correct Answer: A) Changes it to the opposite value. 38. The output of an exclusive-NOR gate is 1, Which input combination is correct? A) A = 1 B = 0. B) A = 0 B = 1. C) A = 0 B = 0. D) None of the above. Show Answer Correct Answer: C) A = 0 B = 0. 39. What is the Boolean value for the statement "True AND False" ? A) True. B) False. C) Undefined. D) Both True and False. Show Answer Correct Answer: B) False. 40. The expression for Absorption law is given by ..... A) A+AB=B. B) A+B=B+A. C) AB+AA'=A. D) A+AB=A. Show Answer Correct Answer: D) A+AB=A. 41. The Demorgan's law (AB)' = ..... A) A+B. B) A'+B'. C) A'+B. D) A+B'. Show Answer Correct Answer: B) A'+B'. 42. Discuss the importance of Boolean algebra in computer science. A) Boolean algebra is only used in mathematics, not computer science. B) Boolean algebra has no practical applications in real-world scenarios. C) Boolean algebra is important in computer science for designing circuits, simplifying expressions, and implementing algorithms. D) Boolean algebra is outdated and no longer relevant in modern technology. Show Answer Correct Answer: C) Boolean algebra is important in computer science for designing circuits, simplifying expressions, and implementing algorithms. 43. A single logic gate is an electronic component made of transistors, which does what? A) Performs calculations such as binary addition. B) Performs binary shifts left and right. C) Combines boolean inputs to produce a boolean output. D) Executes instructions stored in the main memory. Show Answer Correct Answer: C) Combines boolean inputs to produce a boolean output. 44. OR gate output is LOW when A) All inputs HIGH. B) Any input HIGH. C) All inputs LOW. D) One input LOW. Show Answer Correct Answer: C) All inputs LOW. 45. What would the following condition return?8 < 4 A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 46. Where can boolean expressions be found? A) If statements. B) Assignment statement. C) By itself. D) Variables. Show Answer Correct Answer: A) If statements. 47. In the example problem statement for a security system, what condition prevents the alarm from sounding? A) Door opened. B) Alarm is off. C) Correct security code entered. D) Motion detected. Show Answer Correct Answer: C) Correct security code entered. 48. 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. 49. 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. 50. The output of any logic gate can have either of two A) Gates. B) Outputs. C) States. D) Inputs. Show Answer Correct Answer: C) States. 51. 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. 52. With a single transitor, if we turn the input on, ..... A) The input is negated. B) The output is off. C) It doesn't do anything. D) The output is also on. Show Answer Correct Answer: D) The output is also on. 53. 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. 54. 10 < 6 || 26 != 14 A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 55. 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. 56. What is a Karnaugh map used for? A) Simplifying Boolean expressions. B) Mapping database records. C) Encrypting binary data. D) Drawing network topologies. Show Answer Correct Answer: A) Simplifying Boolean expressions. 57. 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. 58. Which gates are called Universal gates? A) OR, AND. B) NAND, NOR. C) NOT. D) XOR, XNOR. Show Answer Correct Answer: B) NAND, NOR. 59. What is the result of the logical AND operation when both inputs are true? A) 1. B) 0. C) True. D) False. Show Answer Correct Answer: A) 1. 60. 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. ← PreviousNext →Related QuizzesScience QuizzesClass 12 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 8Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 9 🏠 Back to Homepage 📘 Download PDF Books 📕 Premium PDF Books