Prashnikaप्रश्निका

Computer Hardware - ISC Class 12 Computer Science Questions with Answers, Page 3

59 past-paper questions on Computer Hardware from ISC Class 12 Computer Science papers (2026-2017), newest first, in full. Questions 41-59 are on this page, 20 to a page. Tap "Show answer" under a question to see its answer.

Practise these questions with filters
2022 · 1 mark · MCQOpen: Encoders are used for:

Choose the correct option.

Encoders are used for:
  • (a)Adding two bits
  • (b)Converting Decimal to Binary
  • (c)Converting Binary to Decimal
  • (d)Data transmission
Show answer

Answer

AI

Correct option: (b)

Answer: (b) Converting Decimal to Binary An encoder has 2^n input lines and n output lines and produces the binary code of the active input.
2020 · 0.5 marks · Short answerOpen: Name the basic gate which is represented by the diagram.

Study the diagram and answer the question.

Name the basic gate which is represented by the diagram.
Figure for this question
Show the figure
Logic diagram: inputs A and B go to an OR-shaped gate with a bubble at its output (NOR); its output is joined to both inputs of a second NOR-shaped gate, whose output is X.
Show answer

Answer

AI
The diagram is an OR gate. The first gate is a NOR gate; the second NOR gate has both its inputs joined, so it works as a NOT gate. NOR followed by NOT gives OR: $X = \overline{\overline{A+B}} = A + B$.
2020 · 0.5 marks · Short answerOpen: What will be the value of X when A=1 and B=0 ?

Study the diagram and answer the question.

What will be the value of X when A=1 and B=0 ?
Figure for this question
Show answer

Answer

AI
$X = A + B = 1 + 0 = 1$. (First gate: NOR(1,0) = 0; second gate: NOR(0,0) = 1.) So X = 1.
2020 · 5 marks · DrawingOpen: Draw the logic circuit diagram for an octal to binary encoder and explain its…

Draw the following.

Draw the logic circuit diagram for an octal to binary encoder and explain its working when a particular digit is pressed. Also, state the difference between encoders and decoders.

Draw: Logic circuit diagram of an octal to binary encoder

Must show: inputs D0 to D7, outputs A, B, C

Show answer

Answer

AI
Octal to binary encoder: it has 8 input lines $D_0$ to $D_7$ (one for each octal digit, only one is 1 at a time) and 3 output lines $A_2 A_1 A_0$ giving the binary code of the digit pressed. Truth table: $D_0 \to 000$, $D_1 \to 001$, $D_2 \to 010$, $D_3 \to 011$, $D_4 \to 100$, $D_5 \to 101$, $D_6 \to 110$, $D_7 \to 111$. From it: $A_2 = D_4 + D_5 + D_6 + D_7$, $A_1 = D_2 + D_3 + D_6 + D_7$, $A_0 = D_1 + D_3 + D_5 + D_7$. Each output is a 4-input OR gate. $D_0$ needs no connection: when it is pressed all three outputs stay 0. Working: when a digit is pressed, only its input line becomes 1 and it feeds those OR gates whose equation contains it. For example, pressing 6 makes $D_6 = 1$; $D_6$ feeds the OR gates for $A_2$ and $A_1$ but not $A_0$, so $A_2 A_1 A_0 = 110$, the binary of 6. Pressing 5 gives $D_5 = 1$, which feeds $A_2$ and $A_0$, so the output is 101. Difference: an encoder converts $2^n$ input lines (only one active) into an n-bit binary code (many inputs to few outputs, built with OR gates). A decoder does the reverse: it converts an n-bit binary input into one of $2^n$ output lines, activating exactly one output (few inputs to many outputs, built with AND gates).
Diagram for this answer
2020 · 3 marks · DrawingOpen: Draw the circuit of a two input XOR gate with the help of NOR gates.

Draw the following.

Draw the circuit of a two input XOR gate with the help of NOR gates.

Draw: Circuit of a two input XOR gate using only NOR gates

Show answer

Answer

AI
XOR from NOR gates (5 NOR gates): Gate 1: $N_1 = (A + B)'$ Gate 2: $N_2 = (A + N_1)' = A'B$ Gate 3: $N_3 = (B + N_1)' = AB'$ Gate 4: $N_4 = (N_2 + N_3)' = (A'B + AB')' = A \odot B$ (XNOR) Gate 5 (both inputs joined, so it works as a NOT gate): $F = N_4' = A'B + AB' = A \oplus B$ Hence the circuit of five NOR gates gives the two input XOR gate.
Diagram for this answer
2020 · 2 marks · Short answerOpen: Define Universal gates. Give one example and show how it works as an OR gate.

Answer the following in short.

Define Universal gates. Give one example and show how it works as an OR gate.
Show answer

Answer

AI
Universal gate: a gate from which any other gate (AND, OR, NOT, etc.) and hence any logic circuit can be built. NAND and NOR are the universal gates. Example: NAND gate as an OR gate. Using De Morgan's law, $A + B = ((A + B)')' = (A' \cdot B')'$, which is the NAND of $A'$ and $B'$. Connections: a NAND gate with both inputs joined to A gives $A'$ (NOT); another with both inputs joined to B gives $B'$; the outputs $A'$ and $B'$ feed a third NAND gate whose output is $(A' \cdot B')' = A + B$. So three NAND gates work as a two input OR gate.
2020 · 5 marks · DrawingOpen: Draw the logic diagram and truth table to encode the decimal numbers (2, 3, 5…

Draw the following.

Draw the logic diagram and truth table to encode the decimal numbers (2, 3, 5, 7, 8) and briefly explain its working.

Draw: Logic diagram and truth table of an encoder for the decimal numbers 2, 3, 5, 7, 8

Show answer

Answer

AI
Encoder for the decimal digits 2, 3, 5, 7 and 8: it has 5 input lines $D_2, D_3, D_5, D_7, D_8$ (only one is 1 at a time, when that digit is pressed) and 4 output lines $W X Y Z$ that give its BCD (8-4-2-1) code. Truth table:
DigitD2D3D5D7D8WXYZ
2100000010
3010000011
5001000101
7000100111
8000011000
From the table: $W = D_8$ (the $D_8$ line is taken directly as W), $X = D_5 + D_7$, $Y = D_2 + D_3 + D_7$, $Z = D_3 + D_5 + D_7$. So X is a 2-input OR gate and Y and Z are 3-input OR gates. Working: when a digit key is pressed, only its input line becomes 1 and it feeds those OR gates whose equation contains it. For example, pressing 7 makes $D_7 = 1$, which feeds X, Y and Z, so $WXYZ = 0111$, the BCD of 7. Pressing 8 makes $D_8 = 1$, which gives $W = 1$ and all other outputs 0, i.e. 1000.
Diagram for this answer
2020 · 2 marks · DrawingOpen: Draw the logic diagram of 4:1 Multiplexer.

Draw the following.

Draw the logic diagram of 4:1 Multiplexer.

Draw: Logic diagram of a 4:1 multiplexer

Show answer

Answer

AI
4:1 Multiplexer: it has 4 data inputs $I_0$ to $I_3$, 2 select lines $S_1 S_0$ and one output Y. The select lines choose which data input is passed to the output. $Y = S_1'S_0'I_0 + S_1'S_0I_1 + S_1S_0'I_2 + S_1S_0I_3$ Circuit: four 3-input AND gates, each taking one data input and one combination of the select lines (or their complements), feed one 4-input OR gate whose output is Y. For example, when $S_1S_0 = 10$ only the third AND gate is enabled and $Y = I_2$.
Diagram for this answer
2019 · 5 marks · Long answerOpen: How is a decoder different from a multiplexer? Write the truth table and draw…

Answer the following.

How is a decoder different from a multiplexer? Write the truth table and draw the logic circuit diagram for a 3 to 8 decoder and explain its working.
Show answer

Answer

AI
A decoder is a combinational circuit with n input lines and up to $2^n$ output lines; for each input combination it activates exactly one unique output line, i.e. it converts (decodes) a binary code into an individual output signal. A multiplexer (MUX) is a combinational circuit with $2^n$ data input lines, n select lines and a single output line; based on the binary value on the select lines it selects one of the many data inputs and routes it to the single output. So a decoder is a 1-input-code-to-many-output device, while a multiplexer is a many-input-to-1-output (selector) device - they perform opposite (complementary) operations. 3-to-8 decoder truth table (inputs A2 A1 A0; outputs D0..D7, only one output is 1 for each input row):
A2A1A0D0D1D2D3D4D5D6D7
00010000000
00101000000
01000100000
01100010000
10000001000
10100000100
11000000010
11100000001
Logic circuit: Inputs A2, A1, A0 and their complements A2', A1', A0' (obtained via NOT gates) are fed into eight 3-input AND gates, one per output line, each wired to the unique combination of true/complemented inputs matching its minterm, e.g. $D0=A2'.A1'.A0'$, $D1=A2'.A1'.A0$, $D2=A2'.A1.A0'$, ..., $D7=A2.A1.A0$. Working: For any given 3-bit binary input on A2 A1 A0, only the one AND gate whose input combination exactly matches that pattern produces an output of 1; all other AND gates output 0 because at least one of their inputs is 0. Thus the decoder 'decodes' the binary value present on its 3 input lines by activating exactly the corresponding one of its 8 output lines.
2019 · 3 marks · Long answerOpen: What is a half adder? Write the truth table and derive an SOP expression for…

Answer the following.

What is a half adder? Write the truth table and derive an SOP expression for sum and carry for a half adder.
Show answer

Answer

AI
A half adder is a combinational circuit that adds two single binary digits A and B, producing a SUM output and a CARRY output (with no provision for an incoming carry). SUM = A'B + AB', CARRY = A.B
  1. 1. Definition: A half adder takes two single-bit inputs A and B and produces two outputs, SUM (the least significant bit of A+B) and CARRY (the carry generated, if any).
  2. 2. Truth table (by simple binary addition of A and B): A=0,B=0 -> SUM=0,CARRY=0; A=0,B=1 -> SUM=1,CARRY=0; A=1,B=0 -> SUM=1,CARRY=0; A=1,B=1 -> SUM=0,CARRY=1.
  3. 3. From the truth table, SUM=1 for the rows (A=0,B=1) and (A=1,B=0), giving the minterms A'B and AB'.
  4. 4. By the Sum-of-Products (SOP) rule (OR together the minterms where the output is 1): SUM = A'B + AB'.
  5. 5. From the truth table, CARRY=1 only for the row (A=1,B=1), giving the single minterm AB.
  6. 6. By the SOP rule: CARRY = AB.
  7. 7. Final result: SUM = A'B + AB' , CARRY = A.B
2019 · 1 mark · DrawingOpen: Name and draw the logic gate represented by the following truth table, where A…

Draw the following.

Name and draw the logic gate represented by the following truth table, where A and B are inputs and X is the output.
ABX
000
011
101
110

Draw: The logic gate represented by the truth table

Must show: name of the gate, inputs A and B, output X

Show answer

Answer

AI
XOR (Exclusive-OR) gate: the output is 1 only when the inputs differ.
Diagram for this answer
2019 · 3 marks · DrawingOpen: From the logic circuit diagram given below, derive the Boolean expression and…

Study the circuit diagram and answer the question.

From the logic circuit diagram given below, derive the Boolean expression and simplify it to show that it represents a logic gate. Name and draw the logic gate.

Draw: The logic gate that the simplified expression represents

Must show: name of the gate, inputs, output

Figure for this question
Show the figure
Logic circuit diagram: inputs X and Y go to an OR gate; input X is also joined to one input of an AND gate whose other input is Z; the outputs of the OR gate and the AND gate go to a final AND gate whose output is F.
Show answer

Answer

AI
From the circuit: X and Y feed an OR gate giving $(X+Y)$; X (branched) and Z feed an AND gate giving $X.Z$; the outputs $(X+Y)$ and $(X.Z)$ feed the final AND gate. $F = (X+Y).(X.Z) = X.X.Z + X.Y.Z = X.Z + X.Y.Z = X.Z.(1+Y) = X.Z$ (verified with the boolean tool) So the circuit reduces to $F = X.Z$, i.e. it represents a 2-input AND gate with inputs X and Z (input Y has no effect on the output).
Diagram for this answer
2018 · 2 marks · DrawingOpen: Using only NAND gates, draw the logic circuit diagram for .

Draw the following.

Using only NAND gates, draw the logic circuit diagram for $A' + B$.
Show answer

Answer

AI
$A'+B$ using only NAND gates. Since $NAND(X,Y) = (X.Y)' = X'+Y'$, we can write: $A'+B = (A.B')' = NAND(A,B')$ Gate 1: $NAND(B,B) = B'$ (a NAND gate used as an inverter, both inputs tied to B) Gate 2: $NAND(A, B') = (A.B')' = A'+B$ (output of Gate 1 fed as one input, A as the other input) Only 2 NAND gates are required.
Diagram for this answer
2018 · 5 marks · DrawingOpen: What is an Encoder? Draw the Encoder circuit to convert A-F hexadecimal numbers…

Draw the following.

What is an Encoder? Draw the Encoder circuit to convert A-F hexadecimal numbers to binary. State an application of a Multiplexer.
Show answer

Answer

AI
An Encoder is a combinational logic circuit that converts an active input line (out of $2^n$ possible input lines, only one of which is active/HIGH at a time) into an n-bit binary code representing that active input. Encoder for hexadecimal digits A-F to binary: the hex digits A to F correspond to decimal 10 to 15, i.e. binary codes 1010 to 1111. Using 6 input lines A,B,C,D,E,F (one active at a time) and 4 output lines Y3 Y2 Y1 Y0: A=1010, B=1011, C=1100, D=1101, E=1110, F=1111 $Y3 = A+B+C+D+E+F$ $Y2 = C+D+E+F$ $Y1 = A+B+E+F$ $Y0 = B+D+F$ Application of a Multiplexer: A multiplexer is used in data routing/data selection - e.g. to select one of many input data sources (from several communication lines or registers) and route it to a single output/transmission line, such as in telecommunication/satellite communication systems or for selecting data onto a common data bus.
Diagram for this answer
2018 · 3 marks · DrawingOpen: Differentiate between Half Adder and Full Adder. Draw the logic circuit diagram…

Draw the following.

Differentiate between Half Adder and Full Adder. Draw the logic circuit diagram for a Full Adder.
Show answer

Answer

AI
Half Adder vs Full Adder: - A Half Adder adds two single bits (A and B) and produces a Sum and a Carry; it has no provision for an input carry from a previous stage. - A Full Adder adds three bits - two input bits (A, B) plus a carry-in (Cin) from the previous lower-order addition - and produces a Sum and a Carry-out (Cout). It is used for adding multi-bit binary numbers, where carries must be propagated from one bit position to the next, something a Half Adder alone cannot do. Full Adder logic: $Sum = A \oplus B \oplus Cin$; $Carry(Cout) = A.B + Cin.(A \oplus B)$
Diagram for this answer
2017 · 5 marks · DrawingOpen: What is a Multiplexer? How is it different from a decoder? Draw the circuit…

Draw the following.

What is a Multiplexer? How is it different from a decoder? Draw the circuit diagram for an 8:1 Multiplexer.

Draw: Circuit diagram for an 8:1 Multiplexer

Show answer

Answer

AI
Multiplexer: a combinational circuit that has $2^n$ data input lines, n select (control) lines and a single output. It selects one of the data inputs, according to the select lines, and passes it to the output (many-to-one, a data selector). Difference from a decoder: a decoder has n input lines and $2^n$ output lines, has no data inputs, and activates exactly one output line for each input combination (one-to-many); a multiplexer has $2^n$ data inputs with select lines and only one output line that carries the selected data. 8:1 Multiplexer: 8 data inputs D0 to D7, 3 select lines S2 S1 S0 and one output Y. $Y = S_2'S_1'S_0'D_0 + S_2'S_1'S_0D_1 + S_2'S_1S_0'D_2 + S_2'S_1S_0D_3 + S_2S_1'S_0'D_4 + S_2S_1'S_0D_5 + S_2S_1S_0'D_6 + S_2S_1S_0D_7$ Circuit: eight 4-input AND gates (each data input with one select combination) feed one 8-input OR gate giving Y.
Diagram for this answer
2017 · 3 marks · DrawingOpen: State the application of a Half Adder. Draw the truth table and circuit diagram…

Draw the following.

State the application of a Half Adder. Draw the truth table and circuit diagram for a Half Adder.

Draw: Circuit diagram for a Half Adder

Show answer

Answer

AI
Application: a Half Adder adds two single-bit binary numbers and gives a Sum bit and a Carry bit; it is the basic building block of adders (a Full Adder is made from two Half Adders) and of the arithmetic circuits in the ALU. It cannot take a carry-in from a previous stage. Truth table:
ABSumCarry
0000
0110
1010
1101
$Sum = A \oplus B = A'B + AB'$ and $Carry = A \cdot B$. Circuit diagram: inputs A and B go to an XOR gate (output Sum) and to an AND gate (output Carry).
Diagram for this answer
2017 · 1 mark · DrawingOpen: Draw the logic diagram and truth table for a 2 input XNOR gate.

Draw the following.

Draw the logic diagram and truth table for a 2 input XNOR gate.

Draw: Logic diagram and truth table for a 2-input XNOR gate

Show answer

Answer

AI
A 2-input XNOR gate gives output 1 when both inputs are equal: $F = A \odot B = AB + A'B' = (A \oplus B)'$. Logic diagram: the XOR gate symbol with a small bubble (NOT) at its output, inputs A and B, output F. Truth table:
ABF
001
010
100
111
Diagram for this answer

Questions on other pages on Computer Hardware

Other Computer Science chapters