MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ARCHITECTURE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The condition flag Z is set to 1 to indicate ____
A
The operation has resulted in an error
B
The operation requires an interrupt call
C
The result is zero
D
There is no empty register available
Explanation: 

Detailed explanation-1: -Status flags-reflect the results of computations (add, subtract, multiply, divided) executed by the processor. Zero flag (ZF)-the zero flag is set(1) when the result of an arithmetic operation is zero.

Detailed explanation-2: -Z, bit [30] Zero condition flag. Set to 1 if the result of the last flag-setting instruction was zero, and to 0 otherwise. A result of zero often indicates an equal result from a comparison.

Detailed explanation-3: -Explanation: This condition flag is used to check if the arithmetic operation yields a zero output.

Detailed explanation-4: -Sign-magnitude notation is the simplest and one of the most common methods of representing positive and negative numbers either side of zero, (0). For signed binary numbers the most significant bit (MSB) is used as the sign bit.

Detailed explanation-5: -ADD: This instruction adds 2 values (from 2 registers or from a register and an immediate value) and puts them into a register. Similar format is used for SUB, MULT, DIV, MOD. For eg. “ADD R1 R2 R3; ” will move the value R2+R3 into R1.

There is 1 question to complete.