Module 1 Quiz Questions Flashcards
Language hierarchy: rank the following languages from low level (1) to high level (4)
Python, Machine Code, English, Arm Assembly
Level 4 - English
Level 3 - Python
Level 2 - Arm assembly
Level 1 - Machine Code
True / False: 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 rewritten in a different programming language without losing its meaning
- can be executed on multiple platforms
- can be quickly copied from conventional ram into high-speed ram
can be executed on multiple platforms
Which of the following best describes the relationship from assembly language instructions to machine language instructions:
- many to many
- many to one
- nearly one to one
- one to many
nearly one to one
What is the range of decimal values for a signed BYTE?
- -128 to 128
- -128 to 127
- -127 to 127
- -127 to 128
-128 to 127
What is the range of decimal values for an unsigned DWORD?
- -2,147,483,648 to 2,147,483,647
- -2,147,483,648 to 2,147,483,648
- 0 to 4,294,967,295
- 0 to 4,294,967,296
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.
11,011,111
Which of the following binary values is equivalent to hexadecimal 7CBE?
0111 1101 1011 1110
0111 1100 1011 1110
0111 1100 1011 1110
0111 1011 1011 1100
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
8,372
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
-2,796
Convert the following unsigned WORD to a decimal value.
1100 1101 0011 1100
52,540
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?
- Memory Bus
- System Clock
- Instruction Register
- I/O Bus
System Clock
What unit on a CPU chip is responsible for computing basic addition and subtraction operations?
- ALU
- I/O
- Control Unit
- FPU
ALU
Match the Instruction Execution steps to the correct order and description.
- Step 1
- Step 2
Step 3
Step 4
Step 5
Step 6
- The control unit fetches the next instruction from the instruction queue
- The control unit increments the instruction pointer (IP, also known as the instruction counter)
- The control unit decodes the instructions function to determine what the instruction will do
- if the instruction uses an input operand located in memory, the control unit uses an input operation to retrieve the operand and copy it into internal registers
- The ALU executes the instruction using the named registers and internal registers as operands
- if the output operand is in memory, the control unit uses a write operation to store the data
If you wanted to find out whether an 8-bit integer contained an even number of 1 bits, which status flag would be useful
- carry
- parity
- sign
- overflow
parity
In the IA-32 architecture, which of the following are valid 16-bit register references
ESI
AH
CX
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