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
  1. I and II only

  2. II and III only

  3. III only

  4. All the three

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

Case 1 is here of data dependency, this can't be safe with single ALU so read after write. Case 2 Conditional jumps are always hazardous they create conditional dependency in pipeline Case 3 this is write after read problem or concurrency dependency so hazardous All the three are hazardous.

Multiple choice
  1. mask $\leftarrow$ 0 ×l << pos
  2. musk $\leftarrow$ 0 × ffffffff >> pos
  3. mask $\leftarrow$pos
  4. masdk $\leftarrow$0×f
Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Multiple choice
  1. the number of 0 bits in A0

  2. the number of 1 bits in A0

  3. A0

  4. 8

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

Here value of B is incremented by 1 only if carry flag is 1, carry is filled using right rotation, so B will store the no. of 1s in A0.

Multiple choice
  1. RRC A, #1

  2. NOP ; no operation

  3. LRC A, #1 ; left rotate A through carry flag by one bit

  4. ADD A, #1

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

In the end of program execution to check whether both initial and final value of register A is A0, we need to right rotate register A through carry by one bit.

Multiple choice
  1. 7

  2. 8

  3. 10

  4. 14

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

Multiple choice
  1. Does not require use of signal decoders

  2. Results in larger sized microinstructions than vertical microprogramming

  3. Uses one bit for each control signal

  4. All of the above

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

In horizontal microprogramming the instruction size is not large, & no decoding is required. But 1 bit is used for all control signals.

Multiple choice
  1. 3

  2. 4

  3. 5

  4. 6

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

Multiple choice
  1. 2

  2. 3

  3. 5

  4. 6

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

Multiple choice
  1. 1

  2. 2

  3. 3

  4. 4

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

Due to delays s1= 2 & s2=4 the transistions would occur at time1, 2 & 4.

Time Input (A) Output (B)
0 1 0
I 1 1 0 Transition
II 2 1 0 Transition
III 4 0 1 Transition

So total 3 transistions

Multiple choice
  1. $ c_{out}\left ( \overline{a_{n-1}\oplus b_{n-1}} \right )$
  2. $ a_{n-1}b_{n-1}\overline{c_{n-1}}+\overline{a_{n-1}b_{n-1}}c_{n-1}$
  3. $ c_{out}\oplus c_{n-1}$
  4. $ a_{n-1}\oplus b_{n-1}\oplus c_{n-1}$
Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Binary adder generates C out only if

Multiple choice
  1. $ \overline{w}xz,wx\overline{y},x\overline{y}z,xyz,wyz$
  2. $ wxy, \overline{w}xz,wyz$
  3. $ wx\overline{y} \overline{z}, xz, w\overline{x}yz$
  4. $ wx\overline{y}, wyz, wxz, \overline{w}xz, x\overline{y}z, xyz$
Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation