Quiz #7

(Last Mod: 27 November 2010 21:38:42 )

ECE-1021 Home


Name:                                                             CODE:                 Section:           Date:                  

ASCII CHART

  0 1 2 3 4 5 6 7 8 9 A B C D E F
00 NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI
10 DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US
20 SP ! " # $ % & ' ( ) * + , - . /
30 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
40 @ A B C D E F G H I J K L M N O
50 P Q R S T U V W X Y Z [ \ ] ^ _
60 ` a b c d e f g h i j k l m n o
70 p q r s t u v w x y z { | } ~ DEL

MEMORY MAP

  0 1 2 3 4 5 6 7 8 9 A B C D E F
00                                
10                                
20                                
30                                
40                                
50                                
60                                
70                                

1) Given that the variable k is a two-byte unsigned integer stored at memory location 0x42 in Little Endian format, write the values that would be in the relevant memory locations if k is set equal to 2004.

2) After writing the value of k to memory, the string "To be or not to be, that is the question." is stored at memory location 0x0A. If the value of k is then read and printed out as a decimal integer, what value will be printed?