Đề thi và đáp án Kiến trúc máy tính giữa kỳ 1 năm học 2021-2022 | Trường Đại học Công nghệ, Đại học Quốc gia Hà Nội

Đề thi và đáp án Kiến trúc máy tính giữa kỳ 1 năm học 2021-2022 | Trường Đại học Công nghệ, Đại học Quốc gia Hà Nội. Tài liệu được sưu tầm và biên soạn dưới dạng PDF gồm 08 trang giúp bạn tham khảo, củng cố kiến thức và ôn tập đạt kết quả cao trong kỳ thi sắp tới. Mời bạn đọc đón xem!

Môn:
Thông tin:
8 trang 2 tuần trước

Bình luận

Vui lòng đăng nhập hoặc đăng ký để gửi bình luận.

Đề thi và đáp án Kiến trúc máy tính giữa kỳ 1 năm học 2021-2022 | Trường Đại học Công nghệ, Đại học Quốc gia Hà Nội

Đề thi và đáp án Kiến trúc máy tính giữa kỳ 1 năm học 2021-2022 | Trường Đại học Công nghệ, Đại học Quốc gia Hà Nội. Tài liệu được sưu tầm và biên soạn dưới dạng PDF gồm 08 trang giúp bạn tham khảo, củng cố kiến thức và ôn tập đạt kết quả cao trong kỳ thi sắp tới. Mời bạn đọc đón xem!

17 9 lượt tải Tải xuống
Câu Hỏi 1 Sai
Suppose all registers are 64-bit wide. How many bits are needed to encode the shamt field of R-type
instructions?
a. 4
b. 6
c. 8
d. 16
Câu trả lời đúng là: 6
Câu Hỏi
2
Đúng
Two processors Intel "Skylake" and AMD "Barcelona" have
a. Different ISA, same organization
b. Different ISA, different organization
c. Same ISA, different organization
d. Same ISA, same organization
Câu trả lời đúng là: Same ISA, different organization
Câu Hỏi 3 Đúng
Suppose the binary code representation of the MIPS instruction add $rd,$rs,$rt is
00000000111001010101000000100000. What is the destination register?
a. $7
b. $9
c. $10
d. $5
Câu trả lời đúng là: $10
Câu Hỏi 4 Sai
Suppose the binary code representation of the MIPS instruction lw $rt, imm($rs) is 0x8D090027. What is the
offset of the address?
a. 39
b. 27
c. 9
d. 8
Câu trả lời đúng là: 39
Câu Hỏi
5
Đúng
The exponent field of the single precision floating point representation of 0.125 is
a. 0x01
b. 0x00
c. 0x80
d. 0x7C
Câu trả lời đúng là: 0x7C
Câu Hỏi 6 Sai
Assume that $sp=0x10000004. What value is stored in the address 0x10000004 on a little-endian machine
after pushing the value 0x00112233 to the stack?
a. 0x33
b. 0x11
c. 0x00
d. Not enough information
Câu trả lời đúng là: Not enough information
Câu Hỏi 7 Sai
Assume that $PC=0x10000004. What value is stored in register $ra if the instruction jal 0x10000000 is
executed?
a. Not enough information
b. 0x10000004
c. 0x10000000
d. 0x10000008
Câu trả lời đúng là: 0x10000008
Câu Hỏi 8 Đúng
Suppose a program runs in 120 seconds on a machine, with multiply responsible for 90 seconds of this
time. How much do we have to improve the speed of multiplication if we want the program to run 3 times
faster?
a. 9 times
b. 10 times
c. Impossible
d. 8 times
Câu trả lời đúng là: 9 times
Câu Hỏi 9 Đúng
Assume that registers $s0 and $s1 hold the values 0x000080AB and 0x00007CDE, respectively. What is
the value of $t0 for the assembly instruction "add $ t0, $ s0, $ s1"?
a. 64095
b. 60495
c. 64905
d. 69405
Câu trả lời đúng là: 64905
Câu Hỏi 10 Đúng
Given the following MIPS code accessing a word array of elements in memory with the starting address in
$t0. How many times does the bne instruction actually branch to the label Loop?
a. 8
b. 10
c. 9
d. 11
Câu trả lời đúng là: 9
Slides bài giảng tuần 8
Chuyển tới...
Screen-captured video upload
| 1/8

Preview text:

Câu Hỏi 1 Sai
Suppose al registers are 64-bit wide. How many bits are needed to encode the shamt field of R-type instructions? a. 4 b. 6 c. 8 d. 16 Câu trả lời đúng là: 6 Câu Hỏi 2 Đúng
Two processors Intel "Skylake" and AMD "Barcelona" have
a. Different ISA, same organization
b. Different ISA, different organization
c. Same ISA, different organization d. Same ISA, same organization
Câu trả lời đúng là: Same ISA, different organization Câu Hỏi 3 Đúng
Suppose the binary code representation of the MIPS instruction add $rd,$rs,$rt is
00000000111001010101000000100000. What is the destination register? a. $7 b. $9 c. $10 d. $5
Câu trả lời đúng là: $10 Câu Hỏi 4 Sai
Suppose the binary code representation of the MIPS instruction lw $rt, imm($rs) is 0x8D090027. What is the offset of the address? a. 39 b. 27 c. 9 d. 8
Câu trả lời đúng là: 39 Câu Hỏi 5 Đúng
The exponent field of the single precision floating point representation of 0.125 is a. 0x01 b. 0x00 c. 0x80 d. 0x7C
Câu trả lời đúng là: 0x7C Câu Hỏi 6 Sai
Assume that $sp=0x10000004. What value is stored in the address 0x10000004 on a little-endian machine
after pushing the value 0x00112233 to the stack? a. 0x33 b. 0x11 c. 0x00 d. Not enough information
Câu trả lời đúng là: Not enough information Câu Hỏi 7 Sai
Assume that $PC=0x10000004. What value is stored in register $ra if the instruction jal 0x10000000 is executed? a. Not enough information b. 0x10000004 c. 0x10000000 d. 0x10000008
Câu trả lời đúng là: 0x10000008 Câu Hỏi 8 Đúng
Suppose a program runs in 120 seconds on a machine, with multiply responsible for 90 seconds of this
time. How much do we have to improve the speed of multiplication if we want the program to run 3 times faster? a. 9 times b. 10 times c. Impossible d. 8 times
Câu trả lời đúng là: 9 times Câu Hỏi 9 Đúng
Assume that registers $s0 and $s1 hold the values 0x000080AB and 0x00007CDE, respectively. What is
the value of $t0 for the assembly instruction "add $ t0, $ s0, $ s1"? a. 64095 b. 60495 c. 64905 d. 69405
Câu trả lời đúng là: 64905 Câu Hỏi 10 Đúng
Given the fol owing MIPS code accessing a word array of elements in memory with the starting address in
$t0. How many times does the bne instruction actual y branch to the label Loop? a. 8 b. 10 c. 9 d. 11 Câu trả lời đúng là: 9
◄ Slides bài giảng tuần 8 Chuyển tới...
Screen-captured video upload ►