Module 1 Quiz Questions Flashcards
The linker combines object files into an executable file.
True
Which utility program reads an assembly language source file and produces an object file?
assembler
A program is considered portable if it . . .
can be executed on multiple platforms
Which of the following best describes the relationship from assembly language instructions to machine language instructions?
nearly one to one
What is the range of decimal values for a signed BYTE?
-128 to 127
What is the range of decimal values for an unsigned DWORD?
0 to 4,294,967,295
How many bytes long is a QUADWORD on x86 systems?
8
The two’s complement of a binary value is formed by which process?
reversing (inverting) the bits and adding 1
The ASCII code values for alphabetic letters (e.g. ‘a’) are smaller than for decimal digits (e.g. ‘1’).
False
Convert the following ASCII hex representation to a character string: 41 77 65 73 6F 6D 65
Do not add any spaces. For example, the hex 31 2B 7A represents the string: 1+z
Awesome
Convert the following string into its ASCII hex representation: Magical
Don’t use 0x or h to represent the hex values. For example, the ASCII hex representation for “1+z” is 31 2B 7A
4D 61 67 69 63 61 6C
Convert the following value from signed decimal to 8-bit binary: -33
NOTE: Canvas may add a decimal point and thousands place commas, for example 11001100 may appear as 11,001,100.0 … Please ignore these.
11011111
Which of the following binary values is equivalent to hexadecimal 7CBE?
0111 1100 1011 1110
Complete the following Unsigned Binary Addition (answers should also be in Binary):
NOTE: Canvas may add thousands place commas (for example 11001100 may appear as 11,001,100) … Please ignore these.
10110011 \+ 10100001 ----------
101,010,100
Complete the following Unsigned Hexadecimal Addition (answers should also be in Hexadecimal):
NOTE: Canvas may add thousands place commas (for example 9C4B may appear as 9,C4B) … Please ignore these.
2C17 \+ 575B ------
8372
Complete the following unsigned Binary Subtraction:
01110111 - 01100110 ---------- NOTE: Represent answer as an 8-bit value, with no spaces or characters other than 0s and 1s.
00010001
Complete the following unsigned Hexadecimal Subtraction:
6A6F - 1F89 ------ NOTE: Represent answer as a 16-bit hex (four character) value, with no spaces or characters other than 0-9, A-F.
4AE6
Convert the following signed SWORD to a decimal value.
1111 0101 0001 0100
-2796
Convert the following unsigned WORD to a decimal value.
1100 1101 0011 1100
52540
A register is a container for data which resides on the CPU chip.
register
A primary limitation on the speed of internal communication on a machine is the width of the internal bus.
True
What component’s primary duty is synchronizing processes inside a computer?
System Clock
What unit on a CPU chip is responsible for computing basic addition and subtraction operations?
ALU
If you wanted to find out whether an 8-bit integer contained an even number of 1 bits, which status flag would be useful?
parity
In the IA-32 architecture, which of the following are valid 16-bit register references?
CX
ESI
AH
SS
BL
SP
CX, SS, SP
In the IA-32 architecture, which of the following are valid 8-bit register references?
AX
EL
SH
EAX
DH
AL
DH
AL
Changes made to the AL register will not modify the contents of the EAX register
false
Match the datatype to its use/description.
BYTE
WORD
SWORD
DWORD
SDWORD
REAL4
REAL8
BYTE : 8-BIT UNSIGNED INTEGER
WORD: 16-BIT UNSIGNED INTEGER
SWORD: 16-BIT SIGNED INTEGER
DWORD: 32-BIT UNSIGNED INTEGER
SDWORD: 32-BIT SIGNED INTEGER
REAL4: 32-BIT (4-BYTE) IEEE SHORT REAL
REAL8: 64-BIT (8-BYTE) IEEE LONG REAL