Professional Documents
Culture Documents
Review Quiz Xem Lại Lần Làm Thử
Review Quiz Xem Lại Lần Làm Thử
Câu hỏi 1
Hoàn thành
Select one:
big-endian
little-endian
level-endian
non-endian
Câu hỏi 2
Hoàn thành
To test one bit in a byte value without destructing the byte, use __________ instruction.
Select one:
TEST
AND
NOT
OR
https://fhqx.hcmute.edu.vn/mod/quiz/review.php?attempt=4508470&cmid=1107883 1/9
10:17 19/05/2023 Review Quiz: Xem lại lần làm thử
Câu hỏi 3
Hoàn thành
A system programmer needs to compute 63250/258+256 (decimal). Instruct him to code in Assembly (number must be in hex)
What the result should be?
Step 1:
MOV AX,F712
Step 2
MOV BX,102
Step 3:
XOR DX,DX
Step 4:
DIV BX
Step 5:
ADD AX,BX
Result:
AX =
01F5
DX = 00F5
Câu hỏi 4
Hoàn thành
A system programmer needs to compute quotient and reminder of the division of -1257 by 2 (decimal). Instruct him to code in Assembly
(number must be in hex).
Step 3: IDIV CX
Step 4: CWD
Result:
AX = FD8C
DX = FFFF
https://fhqx.hcmute.edu.vn/mod/quiz/review.php?attempt=4508470&cmid=1107883 2/9
10:17 19/05/2023 Review Quiz: Xem lại lần làm thử
Câu hỏi 5
Hoàn thành
x = a + 30h;
x = a + 55;
The logic of the above code snippet in assembly is (with missing lines):
01: CMP DL, 0
02: ------------ ; possibly missing code
03: CMP DL, 9
04: ------------ ; possibly missing code
05: ADD DL, 30h
06: ------------ ; possibly missing code
a_label:
08: CMP DL, 0Fh
09: ------------ ; possibly missing code
10: ADD DL, 55
x_label:
12: MOV AL, DL
...
02:
JA a_label
Câu hỏi 6
Hoàn thành
The following sequence of instructions is executed. What is the correct values at watch point?
MOV CL, BH
MOV CH, BL
watch point:
BX =
0x67FE
CX =
0xFE67
https://fhqx.hcmute.edu.vn/mod/quiz/review.php?attempt=4508470&cmid=1107883 3/9
10:17 19/05/2023 Review Quiz: Xem lại lần làm thử
Câu hỏi 7
Hoàn thành
Consider a 4-way set associative mapped cache of size 64 KB with block size 512 bytes. The size of main memory is 4MB.
Find:
1. Number of bits in tag
8
2. Tag directory size
128
bytes
Câu hỏi 8
Hoàn thành
The following sequence of instructions are executed. What is the correct value of CF and OF at watch point?
MOV AX,FFF6h
MOV CX,1000h
IMUL CX
watch point:
OF= set
CF=
set
Câu hỏi 9
Hoàn thành
watch point:
AL = 0x70h
ESI 0x0308h
https://fhqx.hcmute.edu.vn/mod/quiz/review.php?attempt=4508470&cmid=1107883 4/9
10:17 19/05/2023 Review Quiz: Xem lại lần làm thử
Câu hỏi 10
Hoàn thành
MOV edx,dword[esi]
MOV eax,dword[esi+4]
edx =
0x99203E80
eax =
0x991EA2E0
Câu hỏi 11
Hoàn thành
MOV AL, DL
watch point:
...
Choose correct value of AL register at watch point for different value of DL?
DL=8 39h
DL=0FFh 0FFh
DL=10 41h
DL=55h 85h
https://fhqx.hcmute.edu.vn/mod/quiz/review.php?attempt=4508470&cmid=1107883 5/9
10:17 19/05/2023 Review Quiz: Xem lại lần làm thử
Câu hỏi 12
Hoàn thành
0x0ae80120 13 96 D0 E0 D0 E0 A2 1E - 99 80 3E 20 99 00 75 24
esi = 0x0ae80120, edi = 0x0ae80128
Select correct sequence of instructions to subtract words at [edi] from [esi] then store the result at memory location 0x0ae8012a
Step 1:
MOV ax, word[esi]
Step 2:
SUB ax, word[esi]
Step 3:
MOV word[ebx], ax
Step 4:
SUB ax, word[edi]
Câu hỏi 13
Hoàn thành
bx = 0x0202, ax = 0x0103, cx = 3
and flag bit DF = 1
What is the correct value of AX, SI, DI registers after the instruction REP LODSW is executed?
AX =
0x5d10
SI =
0x0202
DI =
0x020a
Câu hỏi 14
Hoàn thành
https://fhqx.hcmute.edu.vn/mod/quiz/review.php?attempt=4508470&cmid=1107883 6/9
10:17 19/05/2023 Review Quiz: Xem lại lần làm thử
Câu hỏi 15
Hoàn thành
The following sequence of instructions are executed. What is the correct value of EAX, EBX, EDX at watch point?
MOV EAX,0x00002000
MOV EBX,0x00100000
MUL EBX
watch point:
EDX = 00100000
EAX =
0x00021000
EBX = 0x00000002
Câu hỏi 16
Hoàn thành
A 512 KB cache memory that organized in 256-bytes blocks, operates along with the main memory of 4GB.
32
12
5. The number of bits used to index every single byte on a cache line:
https://fhqx.hcmute.edu.vn/mod/quiz/review.php?attempt=4508470&cmid=1107883 7/9
10:17 19/05/2023 Review Quiz: Xem lại lần làm thử
Câu hỏi 17
Hoàn thành
Given an assembly code snippet to look up a value (stored in AL) against a region of bytes (buff)
buff db 11,22,33,44,55
................
01: MOV edi, buff
02: ------------ ; possibly missing code
03: MOV al,33
04: MOV ecx,5
a_label:
05: ------------ ; possibly missing code
06: CMP byte [edi], al
07: ------------ ; possibly missing code
08: LOOPNZ a_label
...
05:
empty
02:
JNZ a_label
07:
INC edi
Câu hỏi 18
Hoàn thành
A direct-mapped cache with a cache size of 64KB, block size of 16 bytes, and memory address of 32 bits.
12345
cache index is 0x
6
, and
block offset is 0x
https://fhqx.hcmute.edu.vn/mod/quiz/review.php?attempt=4508470&cmid=1107883 8/9
10:17 19/05/2023 Review Quiz: Xem lại lần làm thử
Câu hỏi 19
Hoàn thành
A set-associative cache with 256KB size and 64-byte blocks is organized into 4-way sets.
1. How many sets does this cache have?
2. How many bits are needed to represent the set index in this cache?
12
3. If a memory address is 32 bits, how many bits are needed for the block offset?
4. How many bits are left for the tag after the set index and block offset are accounted for?
16
Câu hỏi 20
Hoàn thành
In multiplication instruction, when the value of source operand is 12 (decimal), the other operand is loaded in AX. Which registers can be
used to load source operand?
AX
BX
CL
DL
◄ Chapter08
Chuyển tới...
https://fhqx.hcmute.edu.vn/mod/quiz/review.php?attempt=4508470&cmid=1107883 9/9