module 1 - cs271
The two's complement of an binary value is formed by which process?
reversing (inverting) the bits and adding 1
Parity flag
set if the least-significant byte in the result contains an even number of 1 bits.
Carry Flag
set when an unsigned arithmetic operation generates a carry (or borrow) out of the most significant bit of the result
What is the range of decimal values for a signed BYTE?
-128 to 127
Convert the following signed SWORD to a decimal value. 1110 1011 0001 1110
-5,346
Which of the following binary values is equivalent to hexadecimal 7CBE?
0111 1100 1011 1110
Complete the following unsigned Binary Subtraction: 11101001 - 11010111
10010
Complete the following Unsigned Binary Addition (answers should also be in Binary): 10110010 + 10100001
101,010,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. 10110011 + 10100001
101,010,100
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
What is the largest unsigned integer that may be stored in 24 bits?
16,777,215
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
How many bits long is a DWORD (doubleword) on x86 systems?
32
Convert the following string into its ASCII hex representation: AwesomeDon't use 0x or h to represent the hex values. For example, the ASCII hex representation for "1+z" is 31 2B 7A
417765736F6D65
Convert the following unsigned WORD to a decimal value. 1011 1110 0100 1011
48,715
Convert the following string into its ASCII hex representation: ScienceDon't use 0x or h to represent the hex values. For example, the ASCII hex representation for "1+z" is 31 2B 7A
53 63 69 65 6E 63 65
How many bytes long is a QUADWORD on x86 systems?
8
There are 8 general purpose registers.
8
Complete the following Unsigned Hexadecimal Addition (answers should also be in Hexadecimal): 2C26 + 573B
8,361
When transferring instructions and data between the Main Memory Unit and the CPU, the memory location where the data is stored must be placed on the Address Bus.
Address
Match the datatype to its use/description.
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
Which segment register points to the beginning of the code segment?
CS
Language Hierarchy: The purpose of a Compiler is to...
Convert High/Low level Program Code to Assembly/Machine Code
When transferring instructions and data between the Main Memory Unit and the CPU, they will be placed on the ____ Bus.
Data
Compared to higher-level languages, which of the following are benefits of Assembly Language programming? (Check all that apply)
Direct Manipulation of Memory Ease of Use Hands-on Code Optimization
The ___ register holds the 32-bit address of the next instruction to be fed to the instruction execution cycle.
EIP
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)
Convert the following ASCII hex representation to a character string: 49 6E 74 65 67 65 72 Do not add any spaces. For example, the hex 31 2B 7A represents the string: 1+z
Integer
What component is responsible for communication among the various internal CPU components?
Internal Bus
Language Hierarchy: Rank the following languages from low level (1) to high level (4). Level 4 (Highest Level): English
Level 3: Python Level 2: ARM Assembly Level 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
Please place the following steps of the instruction execution cycle in their proper order.
Step 1:Fetch the instruction at the address in the Instruction Pointer into the Instruction Register. Step 2:Increment the Instruction Pointer to point to next instruction. Step 3:Decode the instruction in the Instruction Register. Step 4: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. Step 5:Execute the instruction. Step 6:If the output operand is in memory, the control unit uses a write operation to store the data.
What component's primary duty is synchronizing processes inside a computer?
System Clock
Which utility program reads an assembly language source file and produces an object file?
assembler
Which flag is set when an unsigned value is too large to fit into a destination operand?
carry
(True/False) Assembly Languages are portable.
false
(True/False)If an integer's sign bit is 1, the integer is positive.
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 ASCII code values for alphabetic letters (e.g. 'a') are smaller than for decimal digits (e.g. '1').
false
The Stack Segment register always points to the top of the runtime stack.
false
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
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
Overflow Flag
set when the result of a signed arithmetic operation is too large or too small to fit into the destination
Sign flag
set when the result of an arithmetic or logical operation generates a negative result.
Zero flag
set when the result of an arithmetic or logical operation generates a result of zero.
(True/False) Higher level languages are more likely to be portable than lower level languages.
true
(True/False)Adding 7Fh and 05h in an 8-bit register sets the Overflow flag.
true