Computer Knowledge
Digital Logic and Microprocessors
735 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
Which logic gate is known as the universal gate?
-
AND Gate
-
OR Gate
-
NOT Gate
-
NAND Gate
D
Correct answer
Explanation
The NAND gate is considered the universal gate because it can be used to implement any other logic gate by combining multiple NAND gates.
What is the difference between combinational and sequential logic circuits?
-
Combinational circuits have memory, sequential circuits do not.
-
Combinational circuits have feedback, sequential circuits do not.
-
Combinational circuits depend on past inputs, sequential circuits do not.
-
Combinational circuits are simpler, sequential circuits are more complex.
C
Correct answer
Explanation
Combinational logic circuits produce an output based solely on the current inputs, while sequential logic circuits have memory elements that store past inputs and affect the current output.
Which of the following is an example of a sequential logic circuit?
-
Adder
-
Flip-Flop
-
Decoder
-
Multiplexer
B
Correct answer
Explanation
Flip-flops are sequential logic circuits that can store information and have a memory element, allowing them to retain their state even after the input signals change.
What is the purpose of a multiplexer in digital logic?
-
Data transmission
-
Signal amplification
-
Error correction
-
Data selection
D
Correct answer
Explanation
Multiplexers are used to select one of several input signals and route it to a single output, allowing for efficient data transmission and routing.
Which logic gate is commonly used as an inverter?
-
AND Gate
-
OR Gate
-
NOT Gate
-
NAND Gate
C
Correct answer
Explanation
The NOT gate is an inverter that produces an output that is the logical negation of its input.
What is the primary function of a buffer in digital logic?
-
Signal amplification
-
Data storage
-
Signal isolation
-
Error correction
C
Correct answer
Explanation
Buffers are used to isolate one circuit from another, preventing unwanted interactions and maintaining signal integrity.
Which logic gate is known as the exclusive-OR gate?
-
AND Gate
-
OR Gate
-
NOT Gate
-
XOR Gate
D
Correct answer
Explanation
The XOR gate is an exclusive-OR gate that produces an output that is true only when one of its inputs is true and the other is false.
What is the difference between static and dynamic logic circuits?
-
Static circuits consume more power, dynamic circuits consume less power.
-
Static circuits are faster, dynamic circuits are slower.
-
Static circuits have feedback, dynamic circuits do not.
-
Static circuits use latches, dynamic circuits use flip-flops.
A
Correct answer
Explanation
Static logic circuits maintain a constant power consumption, while dynamic logic circuits consume less power but require periodic refreshing to maintain data.
Which type of logic gate is used to implement a half-adder?
-
AND Gate
-
OR Gate
-
NOT Gate
-
XOR Gate
D
Correct answer
Explanation
A half-adder is a combinational logic circuit that performs addition of two binary digits using an XOR gate for the sum and an AND gate for the carry.
What is the purpose of a decoder in digital logic?
-
Data transmission
-
Signal amplification
-
Data decoding
-
Error correction
C
Correct answer
Explanation
Decoders are used to convert binary code into a set of output signals, each representing a specific state or value.
Which logic gate is commonly used as a buffer?
-
AND Gate
-
OR Gate
-
NOT Gate
-
NAND Gate
D
Correct answer
Explanation
NAND gates can be used as buffers by connecting all inputs together and using the output as the buffered signal.
Which of the following is a common VLSI design style?
-
Full-custom design
-
Semi-custom design
-
Standard-cell design
-
Gate-array design
Correct answer
Explanation
Full-custom design, semi-custom design, standard-cell design, and gate-array design are all common VLSI design styles.
In digital systems, the concept of zero is crucial for:
-
Representing the absence of a signal
-
Performing arithmetic operations
-
Storing data in memory
-
All of the above
D
Correct answer
Explanation
Zero plays a vital role in digital systems by representing the absence of a signal, enabling arithmetic operations, and facilitating data storage in memory.
In binary addition, when adding two 1-bit numbers, what is the result when both bits are 1?
-
0 with a carry of 1
-
1 with a carry of 0
-
0 with a carry of 0
-
1 with a carry of 1
A
Correct answer
Explanation
When adding two 1-bit numbers in binary, if both bits are 1, the result is 0 with a carry of 1.
In binary multiplication, when multiplying two 1-bit numbers, what is the result when both bits are 1?
B
Correct answer
Explanation
In binary multiplication, when multiplying two 1-bit numbers, if both bits are 1, the result is 1.