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
-
Q will flip from 0 to 1
-
Q will flip from 0 to 1 & then back to 0
-
Q will flip from 1 to 0
-
None of these
A
Correct answer
Explanation
In an RS flip-flop with both inputs initially at 0 (hold state), applying a momentary 1 to the Set (S) input causes the Q output to become 1 and remain at 1 even after S returns to 0. The flip-flop 'remembers' this state. Option A correctly describes Q flipping from 0 to 1. The other options are incorrect: the output doesn't flip back automatically, doesn't go from 1 to 0, and the behavior is well-defined.
-
NAND gate
-
NOR gate
-
AND gate
-
OR gate
D
Correct answer
Explanation
In positive logic, high voltage (1) represents TRUE and low voltage (0) represents FALSE. In negative logic, this is inverted: high voltage (1) represents FALSE and low voltage (0) represents TRUE. An AND gate in positive logic (Y = A AND B) becomes an OR gate in negative logic because the voltage levels that indicate TRUE are swapped. By De Morgan's laws, NOT(NOT(A) AND NOT(B)) = A OR B, confirming this equivalence.
-
change its state at each clock pulse
-
go to state 1 and stay there
-
go to state 0 & stay there
-
retain its previous state
A
Correct answer
Explanation
With J=1 and K=Q, the flip-flop toggles between states: if Q=0, then J=1,K=0 causes Q→1; if Q=1, then J=1,K=1 causes Q→0. This creates a toggle action at every clock pulse.
-
JK flip flop is faster than SR flip flop
-
JK flip flop has a feed back path
-
JK flip flop accepts both inputs as 1
-
JK flip flop does not require an external clock
-
interface input devices
-
interface output devices
-
interface memory
-
interface DMA
B
Correct answer
Explanation
Output port latches hold data steady for external devices while the CPU continues other tasks. This prevents data from changing during the peripheral device's read operation. Input ports may also use latches, but output latching is more critical for timing.
-
to tell the time of the day
-
to tell how much time has elapsed since the system was turned on
-
to carry serial data signals
-
to synchronize events in various parts of a screen
D
Correct answer
Explanation
The clock signal in sequential logic circuits provides timing synchronization to coordinate state changes across different parts of the circuit. While 'screen' is oddly specific (typically would say 'circuit' or 'system'), this refers to display timing signals in display controllers.
-
is a 2 bit memory
-
is a 1 bit memory
-
is a four state device
-
has nothing to do with memory
B
Correct answer
Explanation
A flip-flop is a bistable multivibrator that can store one bit of binary information (0 or 1). It has two stable states, making it a fundamental 1-bit memory element in digital systems.
-
counters
-
shift registers
-
transfer registers
-
all of the above
D
Correct answer
Explanation
Flip-flops are fundamental building blocks used extensively in counters, shift registers, and transfer registers. Counters track sequences, shift registers move data serially, and transfer registers temporarily hold data for transfers - all using flip-flops.
-
relaxation
-
memory
-
sequential
-
combinational
D
Correct answer
Explanation
An AND gate is a combinational circuit because its output depends only on the current inputs, with no memory of previous states. Sequential circuits (like flip-flops) have memory and depend on clock cycles.
-
1 to 11 gates
-
12 to 99 gates
-
100 to 10 gates
-
more than 10 gates
D
Correct answer
Explanation
VLSI (Very Large Scale Integration) technology contains thousands to millions of transistors on a single chip. Option C is malformed (100 to 10 makes no sense). Option D, while vague, is the only logically consistent choice.
-
about a second
-
about a 100th of second
-
a few billionth second
-
a few milli second
C
Correct answer
Explanation
Digital gates operate at nanosecond speeds (billionths of a second) due to fast switching times of transistors. This is orders of magnitude faster than milliseconds or hundredths of a second.
-
decoder
-
multiplexer
-
encoder
-
demultiplexer
-
decoder
-
encoder
-
multiplexer
-
code converter
A
Correct answer
Explanation
A decoder is a logic circuit that converts coded information (like BCD) into a more recognizable or usable form (like decimal). In the context of BCD to decimal conversion, a decoder takes binary-coded decimal input and activates the corresponding decimal output line.