Spring2013_Exam1A_S1

Which of the following is true about computers a and

• Notes
• 10

This preview shows page 3 - 6 out of 10 pages.

amount of time to operate on two numbers. Which of the following is true about computers A and B? a B can compute all the same problems as A, in the same amount of time. b B can compute all the same problems as A, in the same amount of time, given enough memory. c B can compute all the same problems as A, but might take longer. d A can compute more types of problems than B. v Which of the following are properties of an algorithm? a Each step has to be precisely stated. b The program implementing it has to use a minimum amount of memory. c The procedure should terminate. d a and c. e a and b.

Subscribe to view the full document.

4 vi Which of the following is the fixed point binary representation of ? a 0100.11 b 010.011 c 0110.101 d 0100.101 vii What is the largest positive value that can be represented by an 8- bit two’s complement integer? a 127 b 128 c 255 d 256 viii What is the most negative value that can be represented by a 5- bit two’s complement integer? a -32 b -31 c -16 d -15 ix When using two’s complement notation, which of the following bit pat terns represent the negation of 01101010? a 10010101 b 10010110 c 10010100 d 10110110
5 Problem 2 (4 Points) a Convert the ASCII string “c \$E” to its hexadecimal representation. Only represent the characters within the quotation marks and assume that the string is null terminated. Hint: See attached ASCII to hexadecimal table. (2 Points) b Convert the following binary code into an ASCII string. (2 Points) 0110 1000 0011 0011 0101 1000 0011 1111 0000 0000 Problem 3 (3 Points) Consider the 8-bit binary pattern 1000 1011. What decimal (base 10) value does it represent

Subscribe to view the full document.

• Spring '13
• GuriSohi
• Binary numeral system, Prof. Gurindar Sohi