Module 1 Summary Exercises
Complete the following Unsigned Binary Addition (answers should also be in Binary): 10110011 + 10110001 -----------
1 0110 0100
Convert the following value from signed decimal to 8-bit binary: -33
1101 1111
How many bits long is a WORD on x86 systems?
16
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: Station! Don't use 0x or h to represent the hex values. For example, the ASCII hex representation for "1+z" is 31 2B 7A
35 74 61 74 69 6F 6E 21
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. 2C15 + 573B ------
8350
Convert the following ASCII hex representation to a character string: 41 73 73 65 6D 6C 79 Do not add any spaces. For example, the hex 31 2B 7A represents the string: 1+z
Assembly
What is the range of decimal values for an unsigned DWORD? a) 0 to 4,294,967,295 b) -2,147,483,648 to 2,147,483,647 c) -2,147,484,648 to 2,147,483,648 d) 0 to 4,294,967,296
a) 0 to 4,294,967,295
Which utility program reads an assembly language source file and produces an object file? a) editor b) assembler c) detangler d) compiler e) loader f) linker
b) assembler
What is the largest unsigned integer that may be stored in 24 bits? a) 65,536 b) 1,048,576 c) 16,777,215 d) 32,767
c) 16,777,215
Language Hierarchy: The purpose of a Compiler is to... a) Convert Program Code for one Architecture to Program Code for another Architecture. b) Convert Assembly Language to Machine Code c) Convert High/Low level Program Code to Assembly/Machine Code d) Convert Natural Language to Program Code
c) Convert High/Low level Program Code to Assembly/Machine Code
Which of the following best describes the relationship from assembly language instructions to machine language instructions? a) many to one b) many to many c) nearly one to one d) one to many
c) nearly one to one
The two's complement of a binary value is formed by which process? a) adding 1 and reversing the bits b) changing the highest bit to a 1 c) reversing (inverting) the bits and adding 1 d) adding 2 and reversing the bits
c) reversing (inverting) the bits and adding 1
What mechanism is used to turn Assembly Language code to Machine Code? a) Cross Compiler b) Compiler c) Translator d) Assembler
d) Assembler
Compared to higher-level languages, which of the following are benefits of Assembly Language programming? (Check all that apply) a) Integrated Tools b) Hands-on Code Optimization c) Intuitive Programs d) Direct Manipulation of Memory e) Ease of Use
d) Direct Manipulation of Memory