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
-
AND Logic
-
NAND Logic
-
OR Logic
-
NOT Logic
-
Resolution
B
Correct answer
Explanation
Here, the output is false only when both the inputs are true.
-
Serial In, Parallel Out Shift Register
-
Shift Register
-
Johnson Counter
-
Parallel In, Parallel Out Shift Register
-
Step Recovery
D
Correct answer
Explanation
The mode control, which may be multiple inputs, controls parallel loading vs shifting.
-
OR Logic
-
NOT Logic
-
Ex-OR Logic
-
AND Logic
-
Step Recovery
C
Correct answer
Explanation
The output is true only when any one of the inputs were true and output is false if both inputs are at the same logic.
-
NOR Logic
-
OR Logic
-
NOT Logic
-
AND Logic
-
Resolution
A
Correct answer
Explanation
The output is true only when both the inputs are false.
-
Register Indirect Branch Addressing Mode
-
Branch Instruction Type Addressing Mode
-
Direct Addressing Mode
-
Instruction
-
Intersegment Indirect Addressing Mode
B
Correct answer
Explanation
These instructions can specify the address of the next instruction to be executed, if it is not the one immediately following the branch , in two ways in 8085 processor.
-
NOT Logic
-
AND Logic
-
Ex-NOR Logic
-
OR Logic
-
ADC
C
Correct answer
Explanation
The outputs is true only when both the inputs were either true or false.
-
Both convert digital signals to analog signals.
-
A demodulator accepts the modulated sine wave only.
-
A coder accepts the modulated sine wave only.
-
All of the above.
-
None of the above
D
Correct answer
Explanation
Yes, all the three are false statements.
-
T2g4, eg0
-
T2g3, eg1
-
T2g2, eg2
-
T2g0, eg4
-
None of these
B
Correct answer
Explanation
If ∆0 < P, the fourth electron will go to higher energy eg orbital. Thus, this option is correct.
-
input unit
-
output unit
-
control unit
-
ALU
D
Correct answer
Explanation
The accumulator is a register in the Arithmetic Logic Unit (ALU) where intermediate arithmetic and logic results are stored. The ALU performs mathematical and logical operations, and the accumulator is central to this process. Input, output, and control units are separate components of the computer architecture.
-
units
-
hertz
-
pulses
-
seconds
B
Correct answer
Explanation
CPU clock speed measures how many instruction cycles the processor can execute per second, measured in Hertz (Hz). Modern processors operate in gigahertz (GHz) range, meaning billions of cycles per second, which determines how quickly the CPU can process instructions.
-
mega flops and tera flops
-
giga flops and tera flops
-
giant flops and tera flops
-
both (1) and (2)
D
Correct answer
Explanation
FLOPS (Floating Point Operations Per Second) measures computer performance in powers of 1000. Both megaFLOPS (10^6 operations/sec) and gigaFLOPS (10^9 operations/sec) are standard units, making option D correct. TeraFLOPS (10^12) is also valid but the question asks which pair is correct, and A-B are indeed real FLOPS types.
-
combinational logic circuits
-
sequential logic circuits
-
both (1) and (2)
-
none of the above
A
Correct answer
Explanation
Parallel adders use combinational logic - they compute sums instantly based solely on current inputs without any memory elements. All full-adder circuits operate simultaneously on all bit positions, hence 'parallel'. Sequential circuits require memory and clock signals, which parallel adders do not use. They are purely feedforward logic networks.
-
S = JQ, R = K + JQ'
-
J = S, K = R
-
J = S + R' Q, K = S- (R' + Q' )
-
S = JQ' , R = KQ
D
Correct answer
Explanation
When constructing a JK flip-flop from an SR flip-flop, we need to prevent the invalid state (S=1, R=1) and enable toggling (J=1, K=1). The correct mapping is S = JQ' and R = KQ. When Q=0, S=J and R=0, so setting J=1 sets Q to 1. When Q=1, S=0 and R=K, so setting K=1 resets Q to 0. When J=K=1 and Q=0, the SR inputs become (1,0) setting Q to 1; when Q=1, they become (0,1) resetting Q to 0 - thus toggling.
-
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.