MBOSE Class X Computer Science · Chapter 4
Logic Gates
Live nowHow logic gates like AND, OR and NOT make decisions inside a computer, and how to write their truth tables and Boolean expressions.
14 lessons · 110 practice questions
What this chapter covers
- Boolean logic
- Logic gates and truth tables
- Primary gates AND, OR, NOT
- Secondary gates NAND, NOR, EXOR, EXNOR
- Logic symbols and Boolean expressions
- Universal gates
Key terms
- Boolean algebra
Meaning: algebra of the two values 1 and 0
Example:
- logic gate
Meaning: circuit with inputs and one output performing a logical operation
Example: AND gate
- truth table
Meaning: table of outputs for all input combinations
Example: 4 rows for 2 inputs
- input
Meaning: signal fed into a gate
Example: A, B
- output
Meaning: result produced by a gate
Example: Y
- primary gate
Meaning: basic gate
Example: AND, OR, NOT
- secondary gate
Meaning: gate derived from basic gates
Example: NAND, NOR
- inverter
Meaning: another name for the NOT gate
- complement
Meaning: the opposite value
Example: complement of 1 is 0
- bubble
Meaning: small circle on a symbol meaning NOT
Example: in NAND
- universal gate
Meaning: gate from which all others can be built
Example: NAND, NOR
- Exclusive-OR
Meaning: output 1 when inputs differ
Example: EXOR
Important questions with answers
10 of the 110 questions on this chapter, solved.
Question 1 · Multiple choice · 1 mark
A logic gate is an electronic circuit with
- (a) no inputs
- (b) one input and many outputs
- (c) one or more inputs and one output
- (d) only analogue signals
Answer: (c) one or more inputs and one output
SSLC 2024, Q2(e).
Question 2 · Multiple choice · 1 mark
The Boolean expression of an OR gate is
- (a)
- (b)
- (c)
- (d)
Answer: (d)
The plus sign means OR.
Question 3 · Multiple choice · 1 mark
A NAND gate with inputs A = 1 and B = 1 gives
- (a) 11
- (b) 1
- (c) 0
- (d) 2
Answer: (c) 0
AND gives 1; NOT makes it 0.
Question 4 · Multiple choice · 1 mark
The EXNOR symbol is the EXOR symbol with
- (a) no inputs
- (b) a bubble at the output
- (c) a straight back edge
- (d) a triangle
Answer: (b) a bubble at the output
EXNOR = EXOR + NOT.
Question 5 · Assertion and reason · 1 mark
Assertion (A): The output of a NAND gate is the opposite of an AND gate's output.
Reason (R): A NAND gate is an AND gate followed by a NOT gate.
- (a) Both A and R are true, and R is the correct explanation of A.
- (b) Both A and R are true, but R is not the correct explanation of A.
- (c) A is true, but R is false.
- (d) A is false, but R is true.
Answer: (a) Both A and R are true, and R is the correct explanation of A.
The NOT inverts the AND output.
Question 6 · Short answer · 2 marks
What is a logic gate? List the secondary gates.
Answer
A circuit with one or more inputs and one output performing a logical operation. Secondary gates: NAND, NOR, EXOR, EXNOR.
Question 7 · Short answer · 2 marks
What does the bubble on a gate symbol show?
Answer
NOT — the output is inverted, as in NAND, NOR and EXNOR.
Question 8 · Short answer · 3 marks
Why are NAND and NOR called universal gates?
Answer
Because AND, OR and NOT — and hence any circuit — can be built using only NAND gates, or only NOR gates. E.g. joining a NAND's inputs makes a NOT gate.
Question 9 · Long answer · 5 marks
Write the truth tables of NAND and NOR gates. Draw their logic symbols.
Answer
A B NAND NOR 0 0 1 1 0 1 1 0 1 0 1 0 1 1 0 0 NAND symbol: the AND (D) shape with a bubble at the output. NOR symbol: the OR (curved) shape with a bubble at the output (Fig. 4.2).
Question 10 · Long answer · 5 marks
What are logic gates? Classify them and give the expression of each.
Answer
Logic gates are circuits with one or more inputs and one output performing logical operations. Primary: AND (), OR (), NOT (). Secondary: NAND (), NOR (). EXOR (A ⊕ B) and EXNOR ((A ⊕ B)′) are also secondary gates. NAND and NOR are universal gates.
Study the whole chapter
14 step-by-step lessons, all 110 practice questions with hints, flashcards and mock tests for MBOSE Class X Computer Science.