Confirming your payment

Skip to content

Sign up now and get .

Competency-Based Questions (CBQ) · Question 17 of 40

Competency: Application In a computer's processor, the result of each calculation appears in a 4-bit register as the…

Question 174 marksMedium

Competency: Application

In a computer's processor, the result of each calculation appears in a 4-bit register as the binary digits D C B AD\,C\,B\,A, where DD is the eights digit and AA the ones digit. A "zero flag" ZZ must be 1 when the result is zero (00000000) and 0 for every other result. To check whether two numbers are equal, the processor subtracts one from the other and looks at ZZ. (Hypothetical data.)

(a) Name the single four-input gate that gives ZZ directly from AA, BB, CC and DD, and write ZZ as a Boolean expression.

(b) The processor works out 11−1111 - 11 and 11−711 - 7. Write each result as a 4-bit binary number, give ZZ for each, and say what ZZ tells the processor.

(c) A faulty connection makes the gate read its input from digit DD as 0 all the time. Find the non-zero result for which ZZ would then wrongly be 1, in binary and in decimal.