Exam 1 (100 points) Name: ______________________________ Answer each question in the space provided. Point values are listed next to each question number. You may use your textbook and class notes while completing this exam. You may use a calculator, but you must show a method for finding the answer to each problem independent of the calculator. 1. (30 points) Consider the following hexadecimal string: BA BE BE EF 04 FE ED E1 E1 00 a) (3) Write the string of binary hextets that is equivalent to this string b) (3) If the binary string represents a signed integer, is it positive or negative? Odd or even? c) (8) Suppose the original hex string actually represents two signed integers, each of which occupies 5 bytes. What are the decimal equivalents of the two integers? d) (8) Suppose the original hex string represents two unsigned 5-byte integers. What are their decimal equivalents? e) (8) What are the base-6 equivalents of the two numbers you found in part d? Computer Organization & Assembly Language Programming Sheller coalpSp07Exam1 - work Spring 2007 Page 1 2. (30 points) Perform the following operations on the two bit strings shown below (show result in binary; show process): 01000110 // string A 00100101 // string B a) addition b) subtract B from A c) XOR d) multiplication e) AND f) OR Computer Organization & Assembly Language Programming Sheller coalpSp07Exam1 - work Spring 2007 Page 2 3. (20 points) Find the unsigned binary equivalents (to 10 binary digits) of the following decimal numbers: a) .347209 b) .69 Computer Organization & Assembly Language Programming Sheller coalpSp07Exam1 - work Spring 2007 Page 3 4. (10 points) The EBCDIC encoding system uses the following values for the uppercase letters of the English alphabet: Letter Decimal value A: 193 B: 194 … I: 201 J: K: … R: 209 210 217 S: 226 T: 227 … Z: 233 (I swear I’m not making this up!) a) Write the word FRIDAY in EBCDIC: b) Is there a standard ASCII equivalent (using the decimal values from part a)? If so, write it below; if not, explain why there isn’t: 5. (10 points) Identify the three types of data movement statements in high level languages, and give an example of each one in Java or C++: Computer Organization & Assembly Language Programming Sheller coalpSp07Exam1 - work Spring 2007 Page 4