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 6 🏠 Homepage 📘 Download PDF Books 📕 Premium PDF Books Class 12 Computer Science Chapter 6 Boolean Algebra And Logic Gates Quiz 6 (60 MCQs) Quiz Instructions Select an option to see the correct answer instantly. 1. Construct a truth table for the expression A AND B. A) A OR B truth table:. B) A AND B truth table:A | B | A AND BT | T | TT | F | FF | T | FF | F | F. C) A NAND B truth table:. D) A AND NOT B truth table:. Show Answer Correct Answer: B) A AND B truth table:A | B | A AND BT | T | TT | F | FF | T | FF | F | F. 2. Harper is learning about how computers store information. Which of the following best describes the binary system that Harper is studying? A) Uses ten digits. B) Uses two digits, 0 and 1. C) Uses letters only. D) Uses eight digits. Show Answer Correct Answer: B) Uses two digits, 0 and 1. 3. What is the output of the following boolean expression in Java:!(4 == 4)? A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 4. A logic state can only be ..... A) On or 1. B) Off or 1. C) 1 or 0. D) In and Out. Show Answer Correct Answer: C) 1 or 0. 5. As Zoe begins to learn about how computers work, she starts by understanding the basic electrical signals. As she moves up to learning about programming languages and software, what concept does she leave behind as she journeys up the ladder of abstraction? A) Binary representation. B) Complexity. C) Simplicity. D) Boolean Algebra. Show Answer Correct Answer: B) Complexity. 6. In what types of coding structures are Boolean Operators used? A) Repetition and selection. B) Sequential. C) Looping and repetition. D) Sequential and repetition. Show Answer Correct Answer: A) Repetition and selection. 7. Which number represents True? A) 1. B) 5. C) 10. D) 100. Show Answer Correct Answer: A) 1. 8. What is the dual of the operation A.B+A.C? A) A.C+A.B. B) 2A.B + 2A.C. C) A+B.A+C. D) None of the above. Show Answer Correct Answer: C) A+B.A+C. 9. Boolean variables have values A) 0, 1. B) Any integer. C) 1, 2. D) -1, 0. Show Answer Correct Answer: A) 0, 1. 10. Which of the following is NOT a basic logic gate? A) AND. B) OR. C) NOT. D) XNOR. Show Answer Correct Answer: D) XNOR. 11. The NOT gate is also known as a: A) Adder. B) Repeater. C) Buffer. D) Inverter. Show Answer Correct Answer: D) Inverter. 12. A nibble contains ..... bits. A) 3. B) 2. C) 8. D) 4. Show Answer Correct Answer: D) 4. 13. What is a logic circuit? A) A.Combination of logic gates that performs a specific function. B) B.Combination of logic gates that understands both binary and decimal number systems. C) C.Combination of logic gates that understands decimal number system. D) None of the above. Show Answer Correct Answer: A) A.Combination of logic gates that performs a specific function. 14. The Boolean expression (A + B)'.(A'+ B')' simplifies to A) B. B) 1. C) 0. D) A. Show Answer Correct Answer: C) 0. 15. Select the number which cannot be base 10 A) 147A7. B) 4321. C) 1234. D) 3214. Show Answer Correct Answer: A) 147A7. 16. What is the main function of an adder circuit? A) To compare two binary numbers. B) To perform addition of binary numbers. C) To perform multiplication. D) To perform subtraction. Show Answer Correct Answer: B) To perform addition of binary numbers. 17. ..... ..... A . Bis the same as A) A . B. B) B . A. C) A + B. D) A . B. Show Answer Correct Answer: C) A + B. 18. Karnaugh map simplifies A) Hardware. B) Boolean expressions. C) Counters. D) Memory. Show Answer Correct Answer: B) Boolean expressions. 19. The commutative law of addition for two variables is written as A+B = ..... A) B'A. B) BA'. C) BA. D) B+A. Show Answer Correct Answer: D) B+A. 20. What is the purpose of a truth table in circuit design? A) The purpose of a truth table in circuit design is to represent the relationship between inputs and outputs for logical operations. B) To visualize the physical layout of a circuit. C) To determine the voltage drop across components. D) To calculate the total resistance in a circuit. Show Answer Correct Answer: A) The purpose of a truth table in circuit design is to represent the relationship between inputs and outputs for logical operations. 21. What is the hexadecimal representation of the decimal number 255? A) FE. B) FF0. C) F0. D) FF. Show Answer Correct Answer: D) FF. 22. Explain the meaning of a tautology in Boolean logic. A) Expression always false. B) Expression always true. C) Output depends on one input only. D) Output is random. Show Answer Correct Answer: B) Expression always true. 23. What is the correct Boolean expression for a circuit with an OR gate receiving inputs from an AND gate and a NOT gate? A) D = A OR B AND C. B) D = NOT A AND B OR C. C) D = A AND B OR NOT C. D) D = A AND B OR C. Show Answer Correct Answer: C) D = A AND B OR NOT C. 24. Which of the following expressions is in canonical SOP form? A) A(A + B). B) A + BC. C) A'B'C + AB'C'. D) AB + C. Show Answer Correct Answer: C) A'B'C + AB'C'. 25. The logic gate that outputs 1 only if an odd number of inputs are 1 is: A) NOR. B) NAND. C) XOR. D) AND. Show Answer Correct Answer: C) XOR. 26. Name the gate which produces output 1 when the input have odd number of 1's A) XNOR. B) XOR. C) OR. D) NAND. Show Answer Correct Answer: B) XOR. 27. (C AND D) OR (NOT(A OR B)) = Q, If A=1, B=1, C=0 and D=1, what does Q equal? A) 0. B) 1. C) All the above. D) None of the above. Show Answer Correct Answer: A) 0. 28. The NOR gate output will be high if the two inputs are ..... A) 11. B) 01. C) 00. D) 10. Show Answer Correct Answer: C) 00. 29. According to Boolean laws:A+1=? A) 1. B) A. C) 0. D) $\overline{A}$. Show Answer Correct Answer: A) 1. 30. Samuel and Maya are working together on a project. In Boolean Algebra, what does the AND operation require for their project to be considered successful (output to be true)? A) At least one input is true. B) Both inputs are true. C) Both inputs are false. D) Only one input is false. Show Answer Correct Answer: B) Both inputs are true. 31. Boolean expression:an expression that evaluates to either true or false.(3 > 2) is A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 32. What is the output of an EX-NOR gate? A) (AB + A'B'). B) (AB' + A'B)'. C) A'B + AB'. D) (AB + AB)". Show Answer Correct Answer: B) (AB' + A'B)'. 33. Define Boolean algebra and its importance in digital logic. A) Boolean algebra is essential in digital logic for designing and analyzing circuits using logical operations. B) Boolean algebra is crucial for optimizing database queries. C) Boolean algebra is used for statistical analysis in data science. D) Boolean algebra simplifies arithmetic operations in programming. Show Answer Correct Answer: A) Boolean algebra is essential in digital logic for designing and analyzing circuits using logical operations. 34. What would the following condition return?100 * 3 <= 200 A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 35. Explain the difference between combinational and sequential circuits. A) Combinational circuits have feedback loops; sequential circuits do not. B) Combinational circuits are memoryless and depend only on current inputs; sequential circuits depend on current inputs and past states. C) Combinational circuits store data; sequential circuits do not. D) Sequential circuits are faster than combinational circuits. Show Answer Correct Answer: B) Combinational circuits are memoryless and depend only on current inputs; sequential circuits depend on current inputs and past states. 36. What would the following condition return?"Hello world!" != "Hi earth!" A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 37. Which passes a Boolean to a String? A) Print "has dog" str. B) (input)(has dog). C) Print "has dog". D) Str(has dog). Show Answer Correct Answer: D) Str(has dog). 38. What is the purpose of boolean statements in Java? A) To perform arithmetic calculations. B) To compare values and determine their relationship. C) To print output on the console. D) To create loops and iterations. Show Answer Correct Answer: B) To compare values and determine their relationship. 39. Which of the following is the correct logical expression for sum of a 2-bit binary adder? A) A.Sum S = (A AND B) OR ((NOT A) AND (NOT B)). B) B.Sum S = ((NOT A) AND B) OR (A AND (NOT B)). C) C.Sum S = ((NOT A) OR B) AND (A OR (NOT B)). D) None of the above. Show Answer Correct Answer: B) B.Sum S = ((NOT A) AND B) OR (A AND (NOT B)). 40. Define the AND gate and its truth table. A) Truth Table for NAND Gate:| A | B | Output | | 0 | 0 | 1 | | 0 | 1 | 1 | | 1 | 0 | 1 | | 1 | 1 | 0 |. B) Truth Table for NOT Gate:| A | Output | | 0 | 1 | | 1 | 0 |. C) Truth Table for OR Gate:| A | B | Output | | 0 | 0 | 0 | | 0 | 1 | 1 | | 1 | 0 | 1 | | 1 | 1 | 1 |. D) Truth Table for AND Gate:| A | B | Output || | | || 0 | 0 | 0 || 0 | 1 | 0 || 1 | 0 | 0 || 1 | 1 | 1 |. Show Answer Correct Answer: D) Truth Table for AND Gate:| A | B | Output || | | || 0 | 0 | 0 || 0 | 1 | 0 || 1 | 0 | 0 || 1 | 1 | 1 |. 41. The Boolean algebra is based on the premises that A) Differential equations can be solved by analog circuits. B) There are two states. C) Data can be stored and retrieved. D) None of these. Show Answer Correct Answer: B) There are two states. 42. True or False:NOT gates can only have one input A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: A) True. 43. What is the result of 1 + 1 in Boolean Algebra? A) 0. B) 1. C) 2. D) Undefined. Show Answer Correct Answer: B) 1. 44. Which type of logic gate/circuit can store inputs and thereby act as memory? A) NAND. B) NOR. C) D-TYPE Flip Flop. D) Full Adder. Show Answer Correct Answer: C) D-TYPE Flip Flop. 45. The commutative law of multiplication for two variables is written as AB = ..... A) B+A. B) BA'. C) B'A. D) BA. Show Answer Correct Answer: D) BA. 46. Define the XOR gate and its function. A) The XOR gate outputs true if exactly one of its inputs is true. B) The XOR gate outputs true if both inputs are true. C) The XOR gate outputs true if both inputs are false. D) The XOR gate outputs false if at least one input is true. Show Answer Correct Answer: A) The XOR gate outputs true if exactly one of its inputs is true. 47. How many minterms are possible with 4 variables? A) 64. B) 32. C) 8. D) 16. Show Answer Correct Answer: D) 16. 48. What is the result of NOT 1? A) 0. B) 1. C) A. D) Undefined. Show Answer Correct Answer: A) 0. 49. Boolean Multiplication is equivalent to the ..... operation. A) OR. B) AND. C) NOT. D) NAND. Show Answer Correct Answer: B) AND. 50. Which of the following relationships represents the dual of the Boolean property x + x'y = x + y? A) X'(xy') = x'y'. B) X(x'y) = xy. C) X(x' + y) = xy. D) X'(x + y') = x'y'. Show Answer Correct Answer: C) X(x' + y) = xy. 51. Olivia and Nora are planning a picnic. The picnic will only happen if both Olivia and Nora are available. Which logic gate represents this situation, outputting true only when both inputs are true? A) OR gate. B) AND gate. C) NOT gate. D) XOR gate. Show Answer Correct Answer: B) AND gate. 52. Which logic gate outputs 1 only when both inputs are 1? A) AND. B) OR. C) NOT. D) XOR. Show Answer Correct Answer: A) AND. 53. A NOT gate has ..... (1 mark) A) Two inputs and one input. B) One input and one output. C) One input and two outputs. D) Two inputs and two outputs. Show Answer Correct Answer: B) One input and one output. 54. What is the output of an AND gate if its inputs are 1 and 1? A) 1. B) 0. C) All the above. D) None of the above. Show Answer Correct Answer: A) 1. 55. What would the following condition return?20 + 10 * 5 > 70 A) True. B) False. C) All the above. D) None of the above. Show Answer Correct Answer: B) False. 56. What is the difference between a signed and an unsigned binary number? A) A signed binary number can represent negative and positive values; an unsigned binary number can only represent non-negative values. B) A signed binary number uses more bits than an unsigned number. C) An unsigned binary number can represent both negative and positive values. D) A signed binary number is always larger than an unsigned number. Show Answer Correct Answer: A) A signed binary number can represent negative and positive values; an unsigned binary number can only represent non-negative values. 57. Which of the following is the correct truth table for an AND gate with two inputs (A and B)? A) A = 1, B = 1 $\rightarrow$ Output = 1. B) A = 1, B = 0 $\rightarrow$ Output = 1. C) A = 0, B = 0 $\rightarrow$ Output = 1. D) A = 0, B = 1 $\rightarrow$ Output = 1. Show Answer Correct Answer: A) A = 1, B = 1 $\rightarrow$ Output = 1. 58. What symbol represents the OR gate in text-based Boolean algebra notation? A) A plus symbol. B) A plus symbol with a circle around it. C) A dot. D) A slash. Show Answer Correct Answer: A) A plus symbol. 59. Name the law which states X+Y = Y+X A) Commutative Law. B) Indempotence Law. C) Involution Law. D) Associative Law. Show Answer Correct Answer: A) Commutative Law. 60. Digital Signals have how many defined levels? a. 0 b. 1 c. 2 d. infinite A) . B) . C) . D) . Show Answer Correct Answer: A) . ← 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 7Class 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