Computer Knowledge
Digital Logic and Microprocessors
749 Questions
Digital logic and microprocessors form the core of computer science, covering logic gates, combinational and sequential circuits, and CPU architecture. These topics are crucial for computer knowledge sections in technical exams. Test your digital electronics basics here.
Logic gates and circuitsCombinational vs sequential circuitsMicroprocessor instructionsTruth tables and boolean functions
Digital Logic and Microprocessors Questions
-
data selector
-
data distributor
-
multiplexer
-
encoder
B
Correct answer
Explanation
A demultiplexer distributes one input signal to multiple outputs, functioning as a data distributor. A multiplexer is called a data selector (opposite function). An encoder converts multiple inputs to coded outputs, not distribution.
C
Correct answer
Explanation
Each bit position in a parallel adder requires exactly one full adder to handle that bit's addition including carry-in and carry-out. For m bits, we need m full adders. The least significant bit could use a half adder, but a full adder with carry-in=0 provides uniform design.
-
present inputs only
-
past inputs only
-
both present & past inputs
-
present outputs only
C
Correct answer
Explanation
A sequential circuit's output depends on both the present inputs AND the past inputs (stored in memory elements like flip-flops). Unlike combinational circuits, sequential circuits have memory and maintain state information, so their output is determined by current inputs plus the stored history of previous inputs.
-
data selector
-
data distributor
-
multiplexer
-
encoder
B
Correct answer
Explanation
A demultiplexer (DEMUX) takes a single input and routes it to one of many possible outputs based on select lines. This function of distributing one data signal to multiple destinations makes it a 'data distributor.' A multiplexer does the opposite (many-to-one), while an encoder converts data to a different code format.
-
Parallel Adder
-
Carry-look-ahead adder
-
Carry save adder
-
Full adder
C
Correct answer
Explanation
A Carry Save Adder (CSA) is specifically designed to add three or more numbers simultaneously without waiting for the carry to propagate. It uses multiple full adders in parallel and produces two outputs: sum and carry vectors. This makes it much faster for adding multiple numbers compared to ripple carry or regular parallel adders, which typically add only two numbers at a time.
-
combinational logic circuits
-
sequential logic circuits
-
both (1) and (2)
-
none of the above
A
Correct answer
Explanation
Parallel adders are combinational logic circuits because their outputs depend only on the present inputs - the bits being added. They do not have memory elements or feedback, so they cannot store past inputs or states. The addition operation happens immediately based on current input values, which is the defining characteristic of combinational circuits.
-
decoder
-
multiplexer
-
encoder
-
demultiplexer
-
decoder
-
encoder
-
multiplexer
-
code converter
A
Correct answer
Explanation
A BCD decoder takes a 4-bit BCD input and activates one of 10 outputs corresponding to decimal digits 0-9. It converts the binary coded decimal into its decimal equivalent by decoding which digit is represented.
-
complimentary
-
the same
-
independent of each other
-
same as inputs
A
Correct answer
Explanation
A flip-flop always has two outputs Q and Q' (Q bar) that are complements of each other - when Q is high, Q' is low, and vice versa. This complementary output is a fundamental characteristic.
-
no change
-
low state
-
high state
-
toggle
A
Correct answer
Explanation
In a JK flip-flop, when both J and K are low (0), the flip-flop holds its previous state - no change occurs at the output. This is the memory/hold state.
-
scaling
-
rectification
-
modulation
-
counting
D
Correct answer
Explanation
Flip-flops are the basic storage elements in digital circuits and are fundamental building blocks for counters, registers, and memory. Counting is achieved by connecting flip-flops in various configurations.
C
Correct answer
Explanation
NAND is commutative (A NAND B = B NAND A) but NOT associative. For example: (0 NAND 0) NAND 0 = 1 NAND 0 = 1, but 0 NAND (0 NAND 0) = 0 NAND 1 = 1. However: (0 NAND 1) NAND 1 = 1 NAND 1 = 0, but 0 NAND (1 NAND 1) = 0 NAND 0 = 1, proving non-associativity.
-
Exclusive- OR
-
Exclusive - NOR
-
OR
-
NOR
A
Correct answer
Explanation
A staircase switch uses two switches to control one light - either switch can toggle the light. XOR gives 1 when inputs differ (one switch on, one off) and 0 when inputs are same (both on or both off), matching the staircase switching logic.
-
zero voltage
-
lower voltage level
-
higher voltage level
-
negative voltage
C
Correct answer
Explanation
In positive logic systems, logic 1 is represented by the higher voltage level (typically Vcc or +5V in TTL), while logic 0 is represented by the lower voltage level (typically 0V or ground).
-
parallel to serial conversion
-
serial to parallel conversion
-
digital delay line
-
all of the above
D
Correct answer
Explanation
Shift registers are versatile digital circuits that can convert parallel data to serial format, serial data back to parallel, and create digital delays by storing and shifting data bits.