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

Multiple choice

Which logic gate is known as the universal gate?

  1. AND Gate

  2. OR Gate

  3. NOT Gate

  4. NAND Gate

Reveal answer Fill a bubble to check yourself
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.

Multiple choice

What is the difference between combinational and sequential logic circuits?

  1. Combinational circuits have memory, sequential circuits do not.

  2. Combinational circuits have feedback, sequential circuits do not.

  3. Combinational circuits depend on past inputs, sequential circuits do not.

  4. Combinational circuits are simpler, sequential circuits are more complex.

Reveal answer Fill a bubble to check yourself
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.

Multiple choice

Which of the following is an example of a sequential logic circuit?

  1. Adder

  2. Flip-Flop

  3. Decoder

  4. Multiplexer

Reveal answer Fill a bubble to check yourself
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.

Multiple choice

What is the purpose of a multiplexer in digital logic?

  1. Data transmission

  2. Signal amplification

  3. Error correction

  4. Data selection

Reveal answer Fill a bubble to check yourself
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.

Multiple choice

Which logic gate is commonly used as an inverter?

  1. AND Gate

  2. OR Gate

  3. NOT Gate

  4. NAND Gate

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The NOT gate is an inverter that produces an output that is the logical negation of its input.

Multiple choice

What is the primary function of a buffer in digital logic?

  1. Signal amplification

  2. Data storage

  3. Signal isolation

  4. Error correction

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Buffers are used to isolate one circuit from another, preventing unwanted interactions and maintaining signal integrity.

Multiple choice

Which logic gate is known as the exclusive-OR gate?

  1. AND Gate

  2. OR Gate

  3. NOT Gate

  4. XOR Gate

Reveal answer Fill a bubble to check yourself
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.

Multiple choice

What is the difference between static and dynamic logic circuits?

  1. Static circuits consume more power, dynamic circuits consume less power.

  2. Static circuits are faster, dynamic circuits are slower.

  3. Static circuits have feedback, dynamic circuits do not.

  4. Static circuits use latches, dynamic circuits use flip-flops.

Reveal answer Fill a bubble to check yourself
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.

Multiple choice

Which type of logic gate is used to implement a half-adder?

  1. AND Gate

  2. OR Gate

  3. NOT Gate

  4. XOR Gate

Reveal answer Fill a bubble to check yourself
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.

Multiple choice

What is the purpose of a decoder in digital logic?

  1. Data transmission

  2. Signal amplification

  3. Data decoding

  4. Error correction

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Decoders are used to convert binary code into a set of output signals, each representing a specific state or value.

Multiple choice

Which logic gate is commonly used as a buffer?

  1. AND Gate

  2. OR Gate

  3. NOT Gate

  4. NAND Gate

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

NAND gates can be used as buffers by connecting all inputs together and using the output as the buffered signal.

Multiple choice

Which of the following is a common VLSI design style?

  1. Full-custom design

  2. Semi-custom design

  3. Standard-cell design

  4. Gate-array design

Reveal answer Fill a bubble to check yourself
Correct answer
Explanation

Full-custom design, semi-custom design, standard-cell design, and gate-array design are all common VLSI design styles.

Multiple choice

In digital systems, the concept of zero is crucial for:

  1. Representing the absence of a signal

  2. Performing arithmetic operations

  3. Storing data in memory

  4. All of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice

In binary addition, when adding two 1-bit numbers, what is the result when both bits are 1?

  1. 0 with a carry of 1

  2. 1 with a carry of 0

  3. 0 with a carry of 0

  4. 1 with a carry of 1

Reveal answer Fill a bubble to check yourself
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.

Multiple choice

In binary multiplication, when multiplying two 1-bit numbers, what is the result when both bits are 1?

  1. 0

  2. 1

  3. 10

  4. 11

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In binary multiplication, when multiplying two 1-bit numbers, if both bits are 1, the result is 1.