Questions and CORRECT Answers
What is the largest positive value that may be stored in 20 bits? - CORRECT ANSWER-
Why learn assembly language? - CORRECT ANSWER- Precise control timing
Optimize memory
myBytes BYTE 80h,66h,0A5h
mov al,myBytes
add al,[myBytes+2]
Evaluation of al? - CORRECT ANSWER- 0A5h
array WORD 8000h,6600h,4400h
mov ax,array
add ax,[array+2]
Evaluation of ax? - CORRECT ANSWER- 6600
Unsigned Byte Range - CORRECT ANSWER- 0 to 255
0 to (2^8 - 1)
Unsigned word range - CORRECT ANSWER- 0 to (2^16 - 1)
Unsigned doubleword range - CORRECT ANSWER- 0 to (2^32 - 1)
Signed byte range - CORRECT ANSWER- - 128 to + 127
- 2^7 to (2^7 - 1)
, Signed word range - CORRECT ANSWER- - 2^15 to (2^15 - 1)
Signed doubleword range - CORRECT ANSWER- - 2^31 to (2^31 - 1)
Converting from unsigned Decimal to Hexadecimal - CORRECT ANSWER- Repeatedly
divide the decimal value by 16. Each remainder is a hexadecimal digit.
(Last remainder obtained is the first hexadecimal digit)
Convert Unsigned Decimal to Binary - CORRECT ANSWER- Repeatedly divide the decimal
value by 2. Each remainder is a binary digit.(Last remainder obtained is the first binary
digit)"
Obtaining 2's complement notation - CORRECT ANSWER- Invert bits.
Add 1
Hexadecimal number is positive if: - CORRECT ANSWER- MSB ≤ 7
Hexadecimal number is negative if: - CORRECT ANSWER- MSB ≥ 8
Converting Signed Decimal to Binary - CORRECT ANSWER- 1. Convert absolute value of
the decimal to binary.
2. If the original decimal integer was negative, create the two's complement of the binary
number from the previous step
Translate -4 to binary - CORRECT ANSWER- Binary representation of unsigned 4: 0100
Two's complement of 0100: 1100
decimal -4 = 1100 binary
CPU (Central Processor Unit)
Components: - CORRECT ANSWER- Clock
Control unit (CU)