CSE 230 Module 8 Questions with Correct Answers (Grade A+)
Question 1: Which of the following will copy the contents of register t1 to register t0?
Answer: move $t0, $t1
Question 2: What is the ASCII value of a space (' ') in hexadecimal?
Answer: 0x20
Question 3: What is the ASCII value of a period ('.') in decimal?
Answer: 46
Question 4: In decimal, the ASCII encoding of an upper case 'A' is? and the ASCII encoding of a lower
case 'a' is?
Answer: 65 97
Question 5: In decimal, the ASCII encoding of an upper case 'Z' is? and the ASCII encoding of a lower
case 'z' is?
Answer: 90 122
Question 6: Suppose $t4 contains the value,
33. Which value can $t5 contain so that $t0 has a value of 1 after the following instruction is executed? slt $t0,
$t5, $t4
Answer: Any value less than 33 slt rs, t5<t4
Question 7: What does the following instruction do? push $t7
Answer: It decrements $sp by 4, then copies the value of $t7 to the previous address of $sp
Question 8: Suppose $sp contains 0x10FFFFFC, $t0 contains 128, and $t1 contains
256. Fill in what the values in the table will be after running the following lines of code. push $t0push $t1
Answer: 0x10FFFFF8: 256 0x10FFFFFC: 128
Page 1
Question 1: Which of the following will copy the contents of register t1 to register t0?
Answer: move $t0, $t1
Question 2: What is the ASCII value of a space (' ') in hexadecimal?
Answer: 0x20
Question 3: What is the ASCII value of a period ('.') in decimal?
Answer: 46
Question 4: In decimal, the ASCII encoding of an upper case 'A' is? and the ASCII encoding of a lower
case 'a' is?
Answer: 65 97
Question 5: In decimal, the ASCII encoding of an upper case 'Z' is? and the ASCII encoding of a lower
case 'z' is?
Answer: 90 122
Question 6: Suppose $t4 contains the value,
33. Which value can $t5 contain so that $t0 has a value of 1 after the following instruction is executed? slt $t0,
$t5, $t4
Answer: Any value less than 33 slt rs, t5<t4
Question 7: What does the following instruction do? push $t7
Answer: It decrements $sp by 4, then copies the value of $t7 to the previous address of $sp
Question 8: Suppose $sp contains 0x10FFFFFC, $t0 contains 128, and $t1 contains
256. Fill in what the values in the table will be after running the following lines of code. push $t0push $t1
Answer: 0x10FFFFF8: 256 0x10FFFFFC: 128
Page 1