Bai Thi KTMT k16
Bai Thi KTMT k16
Bai Thi KTMT k16
Chung)
Bắt đầu vào lúc Monday, 28 May 2018, 1:10 PM
State Finished
Kết thúc lúc Monday, 28 May 2018, 2:14 PM
Thời gian thực 1 giờ 4 phút
hiện
DL=55h 85h
DL=0FFh 41h
DL=10 38h
DL=8 0FFh
intersegment mode
Interrupt
Memory
DMA
Câu hỏi 5 Which could be correct ones for the destination operand in a data movement
Hoàn thành instruction?
register
memory location
intersegment jump
far jump
Answer: 4000
Câu hỏi 8 Given a code snippet:
Hoàn thành int n = 10;
Đạt điểm 1,00 do {
n--;
} while (n > 0);
Which ones are the equivalent logic sequence of instructions in Assembly
mov cx, 10
a_label:
.....
dec cx
cmp cx,0
jz a_label
mov cx, 10
a_label:
.....
dec cx
loop a_label
mov cx, 10
a_label:
dec cx
cmp cx, 0
jz e_label
jmp a_label
e_label:
Câu hỏi 9 The following sequence of instructions are executed. What is the correct
Hoàn thành value of AX, CX, DX at watch point?
CX
FFFF
=
AX
FFD0
=
DX 002F
Câu hỏi 10 Write mask byte (in hex) to set higher 4 bits in a byte value with OR instruction (LSB
Không trả lời is the 1st bit).
decrements by 4
decrement by 1
increment by 2
Câu hỏi 12 Given an assembly code copying the memory buffer Buff1 to Buff2:
Không trả lời PUSH DS
Đạt điểm 1,00 POP ES
LEA SI, Buff1
LEA DI, Buff2
MOV CX,20
;--- Start of block
cp_loop:
MOV AL, Byte Ptr [SI]
MOV Byte Ptr ES:[DI], AL
INC SI
INC DI
LOOP cp_loop
; ---End of block
Choose equivalent string operations in place of block
STD
cp_loop:
MOVSB
LOOP cp_loop
CLD
cp_loop:
REP MOVSB
LOOP cp_loop
CLD
REP MOVSB
Câu hỏi 13 the instruction that is used as prefix to an instruction to execute it repeatedly
Hoàn thành until the CX register becomes zero is
SCAS
CMPS
REP
Câu hỏi 14 Write mask byte (in hex) to clear all the lower 7 bits of a byte value with AND
Hoàn thành instruction.
watch point
Chọn...
#1:
watch point
Chọn...
#2:
watch point
Chọn...
#3:
Câu hỏi 17 The instruction that subtracts 1 from the contents of the specified
Hoàn thành register/memory location is
SUB
SBB
INC
Câu hỏi 18 Memory dump at 1D20:0200 shown as below:
Không trả lời 1D20:0200 00 20 10 5D 55 47 00 90 - 00 10 20 30 40 50 60 70
Đạt điểm 1,00 Given value of registers:
DS = 1D20, ES = 1D20, DI = 20A
The following sequence of instructions are executed:
MOV SI,208h
MOV AX,0040h
MOV CX,000Ah
CLD
REPNZ SCASB
watch point:
.....
What is the correct value of AX, SI, DI registers at watch point?
DI
Chọn...
=
AX
Chọn...
=
SI
Chọn...
=
Câu hỏi 19 What is the meaning of Amdahl's law in processor performance evaluation?
Hoàn thành
Select one:
Đạt điểm 1,00
the cost reduce when moving from single-core to multicore processor
Câu hỏi 20 Which are the correct actions for LODSW string operation if DF is reset (=0)
Hoàn thành
Select one or more:
Đạt điểm 0,50
decrease DI by 2
increase SI by 2
Câu hỏi 21 When many devices of different transmission speed connect to the same bus,
Không trả lời the overall system performance suffers. How did the design engineers resolved
this:
Đạt điểm 1,00
Select one:
PCI Express bus
Multiple-Bus hierarchies
PCI bus
comparing
dividing
subtracting
Câu hỏi 23 To balance the super speed of CPU with the slow response of memory, which
Hoàn thành of the following measures have been made by engineers in system design?
Câu hỏi 24 The following sequence of instructions are executed. What is the correct
Hoàn thành value of AX, DX at watch point?
AX = FFBE
DX
0000
=
Câu hỏi 25 In the RCR instruction, the contents of the destination operand undergoes function as
Hoàn thành
Select one:
Đạt điểm 0,50
carry flag is pushed into LSB then MSB is pushed into carry flag
overflow flag is pushed into MSB then LSB is pushed into carry flag
carry flag is pushed into MSB then LSB is pushed into carry flag
auxiliary flag is pushed into LSB then MSB is pushed into carry flag
Câu hỏi 26 Which could be correct ones for the source operand in an instruction?
Hoàn thành
Select one or more:
Đạt điểm 0,50
immediate data
memory location
indirect data
register
Câu hỏi 27 Convert the 32-bit floating point number A3358000 (in hex) to decimal.
Hoàn thành Note:
Đạt điểm 1,00 Result with exponent should be written like (e.g): 1.2345678x10^-13
or 1.2345678x10^13 (no space between digits/characters)
Answer: -9.83913471531×10^-18
Câu hỏi 28 Select correct match for register values at watch points:
Hoàn thành MOV AX, 152D
Đạt điểm 1,00 ADD AX, 003F
watch point #1:
ADD AH, 10
watch point #2:
......
watch point
AH = 25
#2:
watch point
AL = 6C
#1:
Câu hỏi 29 Which are the correct actions for SCASW string operation if DF is set (=1)
Hoàn thành
Select one or more:
Đạt điểm 0,50
decrease DI by 2
compare the value in AX register with 16-bit value at the memory location
pointed by ES:[DI] and set/clear flag bits accordingly
increase DI by 2
compare the value in AX register with 16-bit value at the memory location
pointed by DS:[SI] and set/clear flag bits accordingly
Câu hỏi 30 What is the correct value of SI, AL (in hex) at watch point:
Hoàn thành 01: MOV SI, 300h
Đạt điểm 1,00 02: MOV AL, 10h
03: MOV CX, 7
04: Loop_label:
05: MOV [SI], AL
06: ADD AL,10h
07: INC SI
08: LOOP Loop_label
watch point:
SI 80h
AL
80h
=
Câu hỏi 31 Select the correct sequence of instructions to compute -1024/128 (all values
Hoàn thành are in hex).
Step 4: IDIV CL
Câu hỏi 32 Select correct match for AL and carry flag at watch point #1:
Hoàn thành MOV BL, 8C
Đạt điểm 1,00 MOV AL, 7E
ADD AL, BL
watch point #1:
......
AL 0A
Carry
set
flag
Câu hỏi 33 Given a flowchart of an algorithm:
Hoàn thành
mov dl,10
cmp al,bl
jnz n_label
add dl,10
mov dh,dl
jmp e_label
n_label:
mov cl,1
shl dl,cl
e_label:
mov dh,dl
mov dl,10
cmp al,bl
jnz n_label
add dl,10
jmp e_label
n_label:
mov cl,1
shr dl,cl
e_label:
mov dh,dl
mov dl,10
cmp al,bl
jz n_label
mov cl,1
shl dl,cl
jmp e_label
n_label:
add dl,10
e_label:
mov dh,dl
Câu hỏi 34 After executing the POP EAX instruction, the stack pointer
Hoàn thành
Select one:
Đạt điểm 0,50
decrements by 4
decrements by 2
increments by 4
increment by 1
Câu hỏi 35 Sign-extend number BF (8-bit binary) to 16-bit. Write result in hex
Hoàn thành
MOV AX, SI
Câu hỏi 37 The following sequence of instructions are executed. What is the correct
Hoàn thành value of flag bits at watch point?
Carry flag
set
(CF) =
Interconnections
Control Unit
Instruction Register
Câu hỏi 39 Consider a magnetic disk drive with 8 surfaces, 512 tracks per surface, and 64
Hoàn thành sectors per track. Sector size is 1 kB. What is the disk capacity
Spatial
be exploited by moving data between cache and memory more efficient
locality
Select one:
cmp ax,bx
jl a_label
sub ax,bx
jmp x_label
a_label:
sub bx,ax
x_label:
cmp ax,bx
jbe a_label
sub ax,bx
jmp x_label
a_label:
sub bx,ax
x_label:
cmp ax,bx
ja a_label
sub ax,bx
jmp x_label
a_label:
sub bx,ax
x_label:
cmp ax,bx
jge a_label
sub ax,bx
jmp x_label
a_label:
sub bx,ax
x_label:
MOV
LEA
DAS