Module 1 Summary Exercises
Complete the following unsigned Binary Subtraction:
00011101
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): 10111010 + 10110001 ----------
101,101,011
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.
11,101,011
Complete the following unsigned Binary Subtraction: 01011110 - 01001111 ---------- NOTE: Represent answer as an 8-bit value, with no spaces or characters other than 0s and 1s.
1111
How many bits long is a WORD on x86 systems?
16
Convert the following signed SWORD to a decimal value. 0100 1101 0011 1100
19,772
Complete the following unsigned Hexadecimal Subtraction: C6F1 - A735 ------
1FBC
Which list contains the correct hexadecimal translation (in order) of the following unsigned decimal integers? 33, 95, 257
21, 5F, 101
What is the largest signed integer that may be stored in 32 bits?
2^31 - 1
Convert the following signed SWORD to a decimal value. 0111 1001 1111 0110
31,222
How many bits long is a DWORD (doubleword) on x86 systems?
32
Convert the following string into its ASCII hex representation: Computer
43 6F 6D 70 75 74 65 72
Convert the following string into its ASCII hex representation: Computer Don't use 0x or h to represent the hex values. For example, the ASCII hex representation for "1+z" is 31 2B 7A
43 6F 6D 70 75 74 65 72
Convert the following unsigned WORD to a decimal value. 1010 1111 0101 1010
44,890
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
How much memory can be addressed in Protected mode?
4GB
Convert the following unsigned WORD to a decimal value. 1101 0010 0011 0111
53,815
How many bytes long is a QUADWORD on x86 systems?
8
There are ___ general purpose registers.
8
Complete the following Unsigned Hexadecimal Addition (answers should also be in Hexadecimal): 2C25 + 570B ------
8,330
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 + 572B ------
8,342
What unit on a CPU chip is responsible for computing basic addition and subtraction operations?
ALU
Language Hierarchy: Rank the following languages from low level (1) to high level (4). Lvl 2
ARM Assembly
The ___ register holds the 32-bit address of the next instruction to be fed to the instruction execution cycle.
EIP
Language Hierarchy: Rank the following languages from low level (1) to high level (4). Lvl 4 (Highest)
English
(True/False) Assembly Languages are portable.
False
(True/False) The CPU clock cycle length is the only contributing factor to the speed of operations on a computer.
False
(True/False) The Stack Segment register always points to the top of the runtime stack.
False
Changes made to the AL register will not modify the contents of the EAX register.
False
The ASCII code values for alphabetic letters (e.g. 'a') are smaller than for decimal digits (e.g. '1').
False
The CPU clock cycle length is the only contributing factor to the speed of operations on a computer.
False
Please place the following steps of the instruction execution cycle in their proper order. Fetch the instruction at the address in the Instruction Pointer into the Instruction Register. Execute the instruction. If the instruction requires memory access, determine the memory address, and fetch the operand from memory into a CPU register, or send the operand from a CPU register to memory. Increment the Instruction Pointer to point to next instruction. If the output operand is in memory, the control unit uses a write operation to store the data. Decode the instruction in the Instruction Register.
Fetch the instruction at the address in the Instruction Pointer into the Instruction Register. Increment the Instruction Pointer to point to next instruction. Decode the instruction in the Instruction Register. If the instruction requires memory access, determine the memory address, and fetch the operand from memory into a CPU register, or send the operand from a CPU register to memory. Execute the instruction. If the output operand is in memory, the control unit uses a write operation to store the data.
Convert the following ASCII hex representation to a character string: 46 6C 6F 61 74 69 6E 67 Do not add any spaces. For example, the hex 31 2B 7A represents the string: 1+z
Floating
An Assembly Language is defined by the . . .
Instruction Set Architecture (ISA)
Language Hierarchy: Rank the following languages from low level (1) to high level (4). Lvl 1
Machine Code
What would you call an ordered list of organized instructions existing somewhere in memory, and associated with a data structure for storage of data?
Program
Language Hierarchy: Rank the following languages from low level (1) to high level (4). Lvl 3
Python
Convert the following ASCII hex representation to a character string: 53 63 69 65 6E 63 65
Science
lace the steps for a memory read in the correct order. Assert a Read Wait until operation is complete. Move data to its destination. Specify the memory address on the Address Bus via MAR.
Specify the memory address on the Address Bus via MAR. Assert a Read Wait until operation is complete. Move data to its destination.
Correctly match the status flags to their description. The Carry flag : indicates that an operation produced a negative result The Overflow flag : indicates unsigned integer overflow The Sign flag : indicates that the operation produced zero The Zero flag : indicates signed integer overflow The Parity flag: indicates whether or not an even number of 1 bit occurs in the least significant byte of the destination operand, immediately after an arithmetic or boolean instruction has executed
The Carry flag : indicates unsigned integer overflow The Overflow flag : indicates signed integer overflow The Sign flag : indicates that an operation produced a negative result The Zero flag : indicates that the operation produced zero The Parity flag: indicates whether or not an even number of 1 bit occurs in the least significant byte of the destination operand, immediately after an arithmetic or boolean instruction has executed
(True/False) A program that combines object files into an executable program is called a linker .
True
(True/False) A signed integer stores the sign in the most significant bit (MSB) .
True
(True/False) Higher level languages are more likely to be portable than lower level languages.
True
A primary limitation on the speed of internal communication on a machine is the width of the internal bus.
True
Adding 7Fh and 05h in an 8-bit register sets the Overflow flag.
True
In a Von Neumann architecture, each instruction in a program may be individually addressed and accessed.
True
The status flags are implemented as individual bits within the Status Register.
True
A program is considered portable if it . .
can be executed on multiple platforms.
The three types of buses connected to the CPU are:
data, address, control
During which phase of the instruction execution cycle is the instruction pointer incremented?
fetch
Which of the following best describes the relationship from assembly language instructions to machine language instructions?
nearly one to one
The two's complement of an binary value is formed by which process?
reversing (inverting) the bits and adding 1