Professional Documents
Culture Documents
Bo On KTMT 2 de Thi
Bo On KTMT 2 de Thi
BỘ ÔN KTMT 2 - đề thi
Kiến trúc máy tính _ hợp ngữ (Trường Đại học Sư phạm Kỹ Thuật Thành phố Hồ Chí
Minh)
DL=55h 85h
DL=0FFh 41h
DL=10 38h
DL=8 0FFh
Câu hỏi 3 if the location to which the control is to be transferred lies in a segment other
Hoàn thành than the current one, then the jump instruction is called
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
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).
Câu hỏi 11 After executing PUSH EAX instruction, the stack pointer
Hoàn thành
Select one:
Đạt điểm 0,50
increment by 1
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.
Câu hỏi 15 Convert -89.2345 to IEEE 32-bit floating point format (1 sign+ 8 exponent + 23
Không trả lời mantissa) in hex
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
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
Câu hỏi 22 the instruction, CMP to compare source and destination operands by
Hoàn thành __________
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
41BE
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).
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
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?
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
Câu hỏi 40 What best describe the Spatial and Temporal Locality?
Hoàn thành
Tempor
Đạt điểm 1,00
al be exploited by keeping recently used instruction and data in cache memory and by exploiting a cache hierarchy
locality
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
DL=10 38h
DL=8 41h
DL=55h 55h
DL=0FFh 0FFh
Question 2 The following sequence of instructions are executed. What is the correct value of CF and
Complete OF at watch point?
OF= set
CF= undefined
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 2/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
immediate data
memory location
Question 4 Write mask byte (in hex) to clear bit 2nd, 3rd, 5th of a byte value with AND instruction (LSB is 1st
Complete bit).
Question 5 if the location to which the control is to be transferred lies in a segment other than the
Complete current one, then the jump instruction is call
intersegment mode
intrasegment mode
Question 6 Convert the 32-bit floating point number 44363800 (in hex) to decimal.
Complete
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 3/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Question 8 In multiplication instruction, when the source operand is 16 bit, how can the result be taken?
Complete
Select one:
Marked out of 0.50
from AX:DX pair
from AX
from EAX
DX = 203E
AX = 8099
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 4/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Head, Track, Cylinder are key parameters for access data on hard disk
Question 11 Which are correct action for SCASW string operation if DF is set (=1)
Complete
Select one or more:
Marked out of 0.50
compare value in AL register with memory location pointed by DS:[SI]
decrease DI by 2
increase DI by 2
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 5/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
SBB
ADC
ADD
Question 14 In computer, how does the processor serve multiple interrupt request from devices?
Complete
Select one:
Marked out of 1.00
Each device are assigned an interrupt priority, the device with lower priority will be
served.
Each device are assigned an interrupt priority, the device with higher priority will be
served.
Question 15 The following sequence of instructions are executed. What is the correct value of flag bits at
Complete watch point?
Question 16 To test one bit in a byte value without destructing the byte, use __________ instruction.
Complete
Select one:
Marked out of 0.50
AND
OR
NOT
TEST
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 6/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Question 18 Convert 0.1015625 to IEEE 32-bit floating point format (1 sign+ 8 exponent + 23 mantissa)
Complete
Marked out of 1.20 Answer: Thay thuong tinh cho em 7d qua mon, em cam on!
Question 19 The following sequence of instructions are executed. What is the correct value of flag bits at
Complete watch point?
OF = set
CF = set
Marked out of 1.00 SRAM Faster access time, cost more per bit, smaller size
DRAM Slower access time, cheaper cost per bit, can manufacture with larger size
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 7/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
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
jnz n_label
add dl,10
jmp e_label
n_label:
mov cl,1
shl dl,cl
e_label:
mov dh,dl
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 8/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Question 22 The following sequence of instructions are executed. What is the correct value of flag bits at
Complete watch point?
Question 23 Which are correct action for STOSB string operation if DF is reset (=0)
Complete
Select one or more:
Marked out of 0.50
decrease DI by 1
increase DI by 1
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 9/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Monitor
CPU
Memory
Bus
Question 25 Compute the physical address of the next instruction will be execute if instruction pointer is
Not answered 091D and code segment located at 1FAF
Answer:
Question 26 Which set of registers are valid for addressing a stack memory location?
Complete
Select one or more:
Marked out of 1.00
SS:BP
SS:BX
DS:SI
SS:SP
Question 27 The instruction that is used for finding out the codes in case of code conversion problems is
Complete
Select one:
Marked out of 0.50
XOR
JCXZ
XLAT
XCHG
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 10/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
NOT
AND
XOR
Question 29 The following sequence of instructions are executed. What is the correct value of flag bits at
Complete watch point?
The value of SP register is 1D50. What is the value of SP follows the execution of PUSH SI
Answer: 90
Question 31 Enter debug command to fill 256 bytes in data segment starting from 100 with value 0D
Complete
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 11/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
decrease DI by 1
mov cx, 10
a_label:
.....
dec cx
loop a_label
mov cx, 10
a_label:
.....
dec cx
cmp cx,0
jz a_label
mov cx, 10
a_label:
.....
loop a_label
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 12/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Branch prediction
Pipelining
Question 35 In multiplication instruction, when the source operand is 8 bit, _________ will be multiplied
Complete with source.
BX
AL
AX
[BX+DI]
[DX+SI]
[SP+DI]
AH = 5Dh
AL = 10h
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 13/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Select one:
cmp ax,bx
jbe a_label
sub ax,bx
jmp x_label
a_label:
sub bx,ax
x_label:
cmp ax,bx
jb 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
jnbe a_label
sub ax,bx
jmp x_label
a_label:
sub bx,ax
x_label:
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 14/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
direct
register
index
What is the value of AX register after instruction MOV AX, [1D4B] executed
Answer: 2D
MOV AX, SI
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 15/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
AX = 0200
DX 020F
CX = 0010
Control
Data storage
Interrupt
Data processing
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105 16/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Question 45 Hereafter is instruction sequence to compute the sum of 8 bytes starting at memory address
Complete 200. Two lines of code are possibly missing. Choose correct one to fill in?
05: CWD
ABOUT US
The HCMC University of Technology and Education will become a top center of training, research, creativity, innovation
and entrepreneurship in Vietnam, on a par with regional and worldwide prestigious universities.
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39105
Read More » 17/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Dashboard ► Học kỳ 2 năm 2016 - 2017 ► Lớp Chất lượng cao ► CAAL240180_16_2_8506 ► General ►
Question 1 Convert the 32-bit floating point number 44363C00 (in hex) to decimal.
Complete
Question 2 The instruction that subtracts 1 from the contents of the specified register/memory location
Complete is
DEC
SBB
INC
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 1/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
DI = 0202h
AX = 5040h
SI = 5547h
Question 4 Which are correct action for SCASW string operation if DF is reset (=0)
Complete
Select one or more:
Marked out of 0.50
compare value in AL register with memory location pointed by DS:[SI]
decrease DI by 2
increase DI by 2
Question 5 Which are correct about the Pointer registers of IA-32 processors:
Complete
Select one or more:
Marked out of 1.50
Base Pointer (BP): The 16 bit pointer refers to stack memory
Instruction Pointer (IP): the 16 bit register points to the next instruction to be execute
Instruction Pointer (EIP): the 32 bit register points to the next instruction to be execute
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 2/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Bus
Monitor
Memory
I/O Equipments
CPU
Head, Track, Sector are key parameters for access data on hard disk
LDS
LEA
LES
Question 9 Enter debug command to fill 250 bytes in the memory segment FED5 in computer memory
Not answered starting from 100 with value AD
Answer:
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 3/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
EAX = 00000002
EDX = 00000000
EBX = 00021000
Question 11 Convert 39887.5625 to IEEE 32-bit floating point format (1 sign+ 8 exponent + 23 mantissa) in hex
Not answered
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 4/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Question 14 The following sequence of instructions are executed. What is the correct value of flag bits at
Complete watch point?
Question 15 In computer, how does the processor serve multiple interrupt request from devices?
Complete
Select one:
Marked out of 1.00
Device with higher priority will use interrupt enable flag
Each device are assigned an interrupt priority, the device with higher priority will be
served.
Each device are assigned an interrupt priority, the device with lower priority will be
served.
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 5/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
far jump
near jump
intrasegment mode
Question 17 In multiplication instruction, the result is taken from AX means the source operand is
Complete ______ bit
16
SI = 020Ch
DI = 4030h
AX = 020Bh
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 6/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
SI 308h
AL = 70h
Question 20 Physical address of a memory location is 5FE2E. This memory address located by DI
Not answered register which now has value of 993E. Compute the memory address of data segment
register
Marked out of 1.00
Answer:
Data movement
Data processing
Control
Interrupt
Data storage
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 7/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Select one:
cmp ax,bx
jbe a_label
sub ax,bx
jmp x_label
a_label:
sub bx,ax
x_label:
cmp ax,bx
jl 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:
cmp ax,bx
ja a_label
sub ax,bx
jmp x_label
a_label:
sub bx,ax
x_label:
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 8/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
CLD
cp_loop:
REP MOVSB
LOOP cp_loop
CLD
REP MOVSB
STD
cp_loop:
MOVSB
LOOP cp_loop
increment by 2
decrement by 2
decrement by 1
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 9/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
EDX = 99007524
EAX = 203E8099
Answer:
[BX][SI]
[BP][SI]
[DX][DI]
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 10/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
DL=0FFh 11h
DL=10 01h
DL=17h 01h
DL=0Ah 28h
What is the value of AX register after instruction MOV AX, 1D49 executed
Answer:
Question 30 To set one or more bits in a byte value, use __________ instruction.
Complete
Select one:
Marked out of 0.50
NOT
XOR
AND
OR
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 11/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Marked out of 1.00 DRAM Slow access time, cheaper cost per bit, can only manufacture at larger size
SRAM Faster access time, cost more per bit, smaller size
Instruction Register
Interconnections
Control Unit
Registers
Question 33 Select correct match for AL and carry flag at watch point #1:
Complete MOV BL, 8C
Marked out of 1.00 MOV AL, 7E
ADD AL, BL
watch point #1:
......
AL set
Carry flag 0A
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 12/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
04: empty
09: empty
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 13/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 14/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
05: INC DI
07: DEC DI
02: Empty
Question 37 In multiplication instruction, when the value of source operand is 12 (decimal), the other
Complete operand is loaded in AX. Which registers can be used to load source operand?
BX
CL
AX
DL
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 15/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
AX= FFF6
DX= 6000
Question 39 the instruction, CMP to compare source and destination operands by __________
Complete
Select one:
Marked out of 0.50
comparing
subtracting
dividing
adding
Question 40 To test one bit in a byte value which can be destructive. use __________ instruction.
Complete
Select one:
Marked out of 0.50
TEST
AND
OR
NOT
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 16/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
decrease DI by 2
Question 43 The following sequence of instructions are executed. What is the correct value of flag bits at
Complete watch point?
OF = reset
CF = reset
Question 44 The following sequence of instructions are executed. What is the correct value of AX, DX at
Complete watch point?
AX = FF00
DX = FFBE
Question 45 Write mask byte (in hex) to clear the lower 4 bit of a byte value with AND instruction.
Not answered
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39095 17/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Dashboard ► Học kỳ 2 năm 2016 - 2017 ► Lớp Chất lượng cao ► CAAL240180_16_2_8506 ► General ►
Question 1 The following sequence of instructions are executed. What is the correct value of flag bits at
Complete watch point?
OF = reset
CF = reset
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 1/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
from EAX
from AX
DL=10 Choose...
DL=8 Choose...
DL=55h Choose...
DL=0FFh Choose...
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 2/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
05: CWD
Question 5 In multiplication instruction, when the source operand is 8 bit, _________ will be multiplied
Complete with source.
BX
AL
[DX+SI]
[SP+DI]
[BX+SI]
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 3/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
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
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
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 4/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
What is the value of AX register after instruction MOV AX, [1D4B] executed
Answer: 2D
Question 9 The following sequence of instructions are executed. What is the correct value of AX, CX,
Complete DX at watch point?
AX = 020F
DX 0000
CX = 00FF
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 5/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
SS:SP
SS:BP
SS:BX
Question 11 In computer, how does the processor serve multiple interrupt request from devices?
Complete
Select one:
Marked out of 1.00
Each device are assigned an interrupt priority, the device with lower priority will be
served.
Each device are assigned an interrupt priority, the device with higher priority will be
served.
AX = 203E
DX = 8099
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 6/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Control
Interrupt
Data processing
Data storage
Question 14 The following sequence of instructions are executed. What is the correct value of flag bits at
Complete watch point?
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 7/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
mov cx, 10
a_label:
.....
loop a_label
mov cx, 10
a_label:
.....
dec cx
cmp cx,0
jz a_label
mov cx, 10
a_label:
.....
dec cx
loop a_label
Question 16 Write mask byte (in hex) to clear bit 2nd, 3rd, 5th of a byte value with AND instruction (LSB is 1st
Not answered bit).
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 8/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
The value of SP register is 1D50. What is the value of SP follows the execution of PUSH SI
Answer: 90
Question 18 To clear one or more bits in a byte value, use __________ instruction.
Complete
Select one:
Marked out of 0.50
AND
XOR
OR
NOT
Question 19 The instruction, MOV AX, 0005h belongs to which addressing mode?
Complete
Select one:
Marked out of 0.50
register
direct
index
Immediate
Question 20 Which are correct about the data registers of IA-32 processors:
Complete
Select one or more:
Marked out of 1.00
Lower halves of the 16-registers an be used as 8-bit data registers:
AH,AL,BH,BL,CH,CL,DH,DL
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 9/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Memory
I/O Equipments
Bus
CPU
Question 22 The following sequence of instructions are executed. What is the correct value of flag bits at
Complete watch point?
Question 23 Enter debug command to fill 256 bytes in data segment starting from 100 with value 0D
Complete
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 10/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
increase DI by 1
Question 25 For better speed, in CPU design, engineers make use of the following techniques:
Complete
Select one or more:
Marked out of 1.00
Pipelining
Branch prediction
Speculative execution
Question 26 The following sequence of instructions are executed. What is the correct value of CF and
Complete OF at watch point?
CF= reset
OF= reset
Question 27 Which are correct action for SCASW string operation if DF is set (=1)
Complete
Select one or more:
Marked out of 0.50
decrease DI by 2
increase DI by 2
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 11/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Question 30 Compute the physical address of the next instruction will be execute if instruction pointer is
Complete 091D and code segment located at 1FAF
Answer: 2040D
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 12/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Marked out of 1.00 DRAM Slower access time, cheaper cost per bit, can manufacture with larger size
SRAM Faster access time, cost more per bit, smaller size
Question 32 Convert the 32-bit floating point number 44363800 (in hex) to decimal.
Complete
Question 33 The following sequence of instructions are executed. What is the correct value of flag bits at
Complete watch point?
Question 34 Which could be correct ones for the destination operand in a data movement instruction?
Complete
Select one or more:
Marked out of 0.50
memory location
immediate data
register
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 13/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
AL = 10h
AH = 01h
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 14/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Select one:
cmp ax,bx
jnbe a_label
sub ax,bx
jmp x_label
a_label:
sub bx,ax
x_label:
cmp ax,bx
jb 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:
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 15/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Question 39 if the location to which the control is to be transferred lies in a segment other than the
Complete current one, then the jump instruction is call
intersegment mode
intrasegment mode
ADC
DAS
SBB
Question 41 Convert 0.1015625 to IEEE 32-bit floating point format (1 sign+ 8 exponent + 23 mantissa)
Not answered
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 16/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
XCHG
XLAT
XOR
Head, Track, Sector are key parameters for access data on hard disk
Question 44 Which are correct action for LODSB string operation if DF is reset (=0)
Complete
Select one or more:
Marked out of 0.50
increase SI by 1
decrease DI by 1
Question 45 To test one bit in a byte value without destructing the byte, use __________ instruction.
Complete
Select one:
Marked out of 0.50
AND
TEST
NOT
OR
http://exam.hcmute.edu.vn/mod/quiz/review.php?attempt=39098 17/18
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
Step 2 Decode
Step 4 Execution
Question 2 Which one best describe cache hit and cache miss?
Complete
Cache
Marked out of
miss the number of memory accesses that CPU must retrieve from the main memory per the total number of memory accesses
1.00
ratio
Cache
hit the number of memory accesses that the CPU can retrieve from the cache per the total number of memory accesses
ratio
Question 3 For cache write policies, which are often used for writehit and writemiss
Complete
Writemiss Writeallocate
Marked out of DRAM Slower access time, cheaper cost per bit, can manufacture with larger size
1.00
SRAM Faster access time, cost more per bit, smaller size
Question 5 Identify the correct sequence to update a page onto a flash memory?
Complete
Marked out of Step 3 the entire block is being read from flash into RAM then request data in page is update
1.00
Step 2 The entire block from RAM then is written back to the flash memory
Marked out of contains the carry of 0 or 1 from the leftmost bit after an arithmetic operation CF
1.00
determine the direction for moving or comparing data between memory areas DF
The number of transistors that could be put on a single chip was triple every year nowadays.
Likely triple after 2000
The number of transistors that could be put on a single chip was doubling every year except 1970s
Question 10 For better speed, in CPU design, engineers make use of the following techniques:
Complete
Select one or more:
Marked out of
1.00 Branch prediction
Pipelining
Speculative execution
Question 11 To balance the super speed of CPU with the slow response of memory, which of the following measures have been made by engineers in system design?
Complete
Select one or more:
Marked out of
1.00 To move data directly by DMA
Make wider data bus path
Make use of both onchip and offchip cache memory
Question 14 In computer, how does the processor serve multiple interrupt request from devices?
Complete
Select one:
Marked out of
1.00 The processor can not process multiple interrupt requests
Each device are assigned an interrupt priority, the device with higher priority will be served.
Question 15 Bus is a shared transmission medium, multiple devices connect to it but only one at a time can successfully transmit. Which component in computer
Complete facilitates this operation?
Marked out of
Select one:
1.00
Bus Arbiter
Programmed I/O
Direct Memory Access (DMA)
Bus master
Question 16 When many devices of different transmission speed connect to the same bus, the overall system performance suffers. How did the design engineers
Complete resolved this:
Marked out of
Select one:
1.00
PCI Express bus
PCI bus
Split system bus into local bus and memory bus
MultipleBus hierarchies
d. Head, Track, Cylinder are key parameters for access data on hard disk
Allow SSD to manage occupied pages and remove them automatically for later use
Question 22 Which set of registers are valid for addressing a memory location?
Complete
Select one or more:
Marked out of
1.00 DS:SI
DS:BX
SS:DI
CS:IP
640M
Question 26 Which are correct about the data registers of IA32 processors:
Complete
Select one or more:
Marked out of
1.00 Lower halves of the 16registers an be used as 8bit data registers: AH,AL,BH,BL,CH,CL,DH,DL
complete 32bit registers: EAX, EBX, ECX, EDX
Lower halves of the 32registers an be used as 4 16bit data registers: AX,BX,CX,DX
Higher halves of the 32bit registers can be used as 16bit registers: EAH,EAL,EBH,EBL,ECH,ECL,EDH,EDL
Question 27 Which are correct about 32 bit index registers of IA32 processors:
Complete
Select one or more:
Marked out of
1.50 EDI: 32 bit pointer to destination memory in data movement instructions
ESH,EDH: 16 bit pointers to higher memory above 1M
DI: 16 bit pointer to destination memory in data movement instructions
SI: 16 bit pointer to source memory in data movement instructions
Marked out of
1.00
The value of DX register follows the execution of MOV DX, [1D4D] is 127B. What is the endian type of this computer system
Select one:
littleendian
levelendian
bigendian
nonendian
Question 30
Part of memory as shown in figure
Complete
Marked out of
1.00
The value of BX register follows the execution of MOV BX, [1D49] is F57F. What is the endian type of this computer system
Select one:
levelendian
bigendian
littleendian
nonendian
Question 31 The value in CS is 1FD0h what is the location of next instruction from 00000h if Instruction pointer is 3CD4h
Complete
Spatial
be exploited by using larger cache blocks and by incorporating prefetching mechanisms into the cache control logic
locality
Question 34 What can be concluded from the following chart of processor trends:
Complete
Marked out of
1.00
Select one:
The multicore processors and level off clock speed help to make heat dissipation of CPU chip less
The number of transistors in chips produce more heat dissipation
Heat dissipation in processor chip is increasing year after year since 1970
The processor speed keeps increasing after 2003
Question 35 To evaluate processor performance, the following indicators and formulas are used:
Complete
Marked out of
1.00
Which of the following system attributes affects Ic (the number of instructions of a program)
Compiler technology
Question 36 To evaluate processor performance, the following indicators and formulas are used:
Complete
Marked out of
Which of the following system attributes affects cycle time
1.00
databus size
size
Address bus size
cost
Question 38 A memory chip has 12 address pins, determine the maximum memory words of this chip?
Complete
Select one:
Marked out of
1.00 2048K
2048
4000
4096
Question 39 Which of the following best describe the memory chip with pinout as shown below:
Complete
Marked out of
1.00
Select one:
DRAM 64Kx4bit
SRAM 256Kx1bit
DRAM 16Kx4bit
SDRAM 64Kx4bit
Marked out of
1.00
Note:
DQ: Data pinout
Select one:
DRAM 2Kx8bit
SRAM 1Kx16bit
SRAM 2Kx8bit
DRAM 1Kx16bit
Question 41 The three key characteristics of memory are: capacity, access time and cost. Which of the following relationships hold for a variety of memory
Complete technologies?
Marked out of
Select one or more:
1.00
Faster access time, greater cost per bit
Higher capacity, higher access time
Greater capacity, smaller cost per bit
Question 42 A SRAM memory chip labeled 32x8bit. Which of the following is correct pinout regarding address and data lines?
Complete
Select one:
Marked out of
1.00 32 address pins, 3 data pins
32 address pins, 4 data pins
5 address pins, 3 data pins
15 address pins, 8 data pins
Question 43 In the interconnection system, the number of address lines are governs by
Complete
Select one:
Marked out of
1.00 I/O Module
CPU
data bus line
Memory size
Question 44 For memory hierarchy below, which relationship hold when moving downward
Complete
Marked out of
1.00
Marked out of
1.00
What is the value of AX register after instruction MOV AX, [1D4B] executed
Answer: 5A2D
Marked out of
1.00
Answer: 125A
Marked out of
1.00
The value of SP register is 1D48. What is the value of SI follows the execution of POP SI
Answer: 1D48
Marked out of
1.00
The value of SP register is 1D50. What is the value of SP follows the execution of PUSH SI
Answer: 1D4F
Question 50 Consider two different machines, with two different instruction sets, both of which have a clock rate of 200 MHz. The following measurements are recorded
Complete on the two machines running a given set of benchmark programs
Marked out of
3.00
Determine the effective, CPI, MIPS rate and execution time for each machine.
CPI_b 1.92
CPI_a 2.22
MIPs_b 104
MIPs_a 90
Marked out of RAID 1 Mirror volume 2 x 2T HDDs are needed, no data lost when the primary storage fails
2.00
Spanned Volume 2T HDD + more HDDs to extend storage, no fault tolerance, data lost when one HDD fails
RAID 0 Striped volume 2 x 1T HDDs are needed, enhance data transfer, no fault tolerance, data lost when one HDD fails
Question 52 Consider a 32bit microprocessor whose bus cycle is the same duration as that of a 16bit microprocessor. Assume that, on average, 30% of the operands
Complete and instructions are 32 bits long, 40% are 16 bits long, and 30% are only 8 bits long. Calculate the improvement achieved when fetching instructions and
operands with the 32bit microprocessor?
Marked out of
1.00
Select one:
10%
15%
17%
23%
Question 53 Consider a magnetic disk drive with 8 surfaces, 512 tracks per surface, and 64 sectors per track. Sector size is 1 kB, the average seek time is 10.2 ms and
Complete the drive rotates at 3600 rpm. What is average access time. Given: Rotational delay = 1/(2r), where r is the rotational speed in revolutions per second
Marked out of
1.00 Answer: 16.3 ms
5/31/2019 Bài Thi Cuối Kỳ Môn Kiến Trúc Máy Tính và Hợp Ngữ
Question 1 In multiplication instruction, the upper half of the result is nonzero implies which state of Carry flag and
Complete Overflow flag?
Marked out of
Select one or more:
0.50
OF=1
CF=1
OF=0
CF=0
Question 3 For better speed, in CPU design, engineers make use of the following techniques:
Complete
Select one or more:
Marked out of
1.00 Pipelining
Branch prediction
Faster CPU internal bus
Speculative execution
https://lms.hcmute.edu.vn/mod/quiz/review.php?attempt=1165657&cmid=406329 1/12
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
5/31/2019 Bài Thi Cuối Kỳ Môn Kiến Trúc Máy Tính và Hợp Ngữ
DL=0Ah 01h
DL=0FFh 11h
DL=10 01h
DL=17h 11h
Question 5 Consider a 16-bit microprocessor, with a 16-bit external data bus, driven by an 10-MHz input clock.
Complete Assume that this microprocessor has a bus cycle whose minimum duration equals four input clock cycles.
What is the maximum data transfer rate across the bus that this microprocessor can sustain?
Marked out of
1.00
Select one:
4 MB/s
1 MB/s
5 MB/s
10 MB/s
Question 6 Select correct definition of seek time, rotational delay, access time, transfer time for hard drives with
Complete moveable-head system:
Marked out of
1.00 rotational delay time for the sector in the request track to reach the head
seek time time for the head to settle at the request track
Question 7 Which are the correct actions for LODSW string operation if DF is reset (=0)
Complete
Select one or more:
Marked out of
0.50 decrease DI by 2
Load 16-bit value at memory location pointed by ES:[DI] into AX
Load 16-bit value at memory location pointed by DS:[SI] into AX
increase SI by 2
https://lms.hcmute.edu.vn/mod/quiz/review.php?attempt=1165657&cmid=406329 2/12
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
5/31/2019 Bài Thi Cuối Kỳ Môn Kiến Trúc Máy Tính và Hợp Ngữ
Question 8 In computer organization, the CPU transfer rate is much higher than that of memory. It is easy to match
Complete performance of these components by:
Marked out of
Select one:
1.00
increase the bus speed
producing faster memory module
Introducing cache memory
increase I/O speed
Question 9 For memory hierarchy below, which relationship hold when moving downward
Complete
Marked out of
1.00
https://lms.hcmute.edu.vn/mod/quiz/review.php?attempt=1165657&cmid=406329 3/12
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
5/31/2019 Bài Thi Cuối Kỳ Môn Kiến Trúc Máy Tính và Hợp Ngữ
Question 12 The principle of cache memory relies on key features: locality of reference which involves spatial and
Complete temporal locality. Match the definition to keywords on the left
Marked out of
Temporal
1.00 the tendency for a processor to access memory locations that have been used recently
locality
Spatial the tendency of execution to involve a number of memory locations that are clustered
locality
System interconnection
Interrupt
Central processing unit
Memory
https://lms.hcmute.edu.vn/mod/quiz/review.php?attempt=1165657&cmid=406329 4/12
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
5/31/2019 Bài Thi Cuối Kỳ Môn Kiến Trúc Máy Tính và Hợp Ngữ
Question 16 A memory chip has 12 address pins, determine the maximum memory words of this chip?
Complete
Select one:
Marked out of
1.00 4096
2048
2048K
4000
Question 17 Consider a magnetic disk drive with 8 surfaces, 512 tracks per surface, and 64 sectors per track. Sector
Complete size is 1 kB. What is the disk capacity
Marked out of
1.00 Answer: 262144 KB
Marked out of SRAM Faster access time, cost more per bit, smaller size
1.00
DRAM Slower access time, cheaper cost per bit, can manufacture with larger size
Question 19 The following sequence of instructions are executed. What is the correct value of AX, CX, DX at watch
Complete point?
DX 0000
AX = 0200
CX = 0010
https://lms.hcmute.edu.vn/mod/quiz/review.php?attempt=1165657&cmid=406329 5/12
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
5/31/2019 Bài Thi Cuối Kỳ Môn Kiến Trúc Máy Tính và Hợp Ngữ
Question 22 What is the correct value of SI, AL (in hex) at watch point:
Complete 01: MOV SI, 300h
Marked out of 02: MOV AL, 10h
1.00 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 307h
AL = 80h
Question 23 To evaluate processor performance, the following indicators and formulas are used:
Complete
Marked out of
1.00
https://lms.hcmute.edu.vn/mod/quiz/review.php?attempt=1165657&cmid=406329 6/12
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
5/31/2019 Bài Thi Cuối Kỳ Môn Kiến Trúc Máy Tính và Hợp Ngữ
Question 25 In multiplication instruction, when the source operand is 8 bit, _________ will be multiplied with source.
Complete
Select one:
Marked out of
0.50 AX
AL
Whatever general purpose register
BX
Question 26 A system programmer needs to compute 449/2+358/4 (decimal). Instruct him to code in debug (number
Complete must be in hex) with the least number of instruction counts.
Marked out of
1.50
Step 5:
MOV AX,01BC
Question 27 Convert 0.1015625 to IEEE 32-bit floating point format (1 sign+ 8 exponent + 23 mantissa)
Complete
Question 28 The instruction that loads the AH register with the lower byte of the flag register is
Complete
Select one:
Marked out of
0.50 LAHF
PUSHF
AH
SAHF
https://lms.hcmute.edu.vn/mod/quiz/review.php?attempt=1165657&cmid=406329 7/12
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
5/31/2019 Bài Thi Cuối Kỳ Môn Kiến Trúc Máy Tính và Hợp Ngữ
Question 29 The following sequence of instructions are executed. What is the correct value of flag bits at watch point?
Complete MOV AL, 0F
Marked out of ADD AL, F1
1.00
watch point:
Question 30 Which are correct about 32 bit index registers of IA-32 processors:
Complete
Select one or more:
Marked out of
1.50 ESI: 32 bit pointer to source memory in data movement instructions
ESH,EDH: 16 bit pointers to higher memory above 1M
SI: 16 bit pointer to source memory in data movement instructions
EDI: 32 bit pointer to destination memory in data movement instructions
Question 31 Select the correct sequence of instructions to compute -1024/128 (all values are in hex).
Complete
Step 3: CWD
Step 4: IDIV CX
Question 32
Complete
Marked out of
1.50
Answer: 25.80645161
https://lms.hcmute.edu.vn/mod/quiz/review.php?attempt=1165657&cmid=406329 8/12
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
5/31/2019 Bài Thi Cuối Kỳ Môn Kiến Trúc Máy Tính và Hợp Ngữ
Step 1 Execution
Step 3 Decode
Question 34 Convert the 32-bit floating point number C4361000 (in hex) to decimal.
Complete
Question 35 Write mask byte (in hex) to clear bit 2nd, 3rd, 5th of a byte value with AND instruction (LSB is
Complete 1st bit).
Marked out of
0.50 Answer: E9
64M
Question 37 Write mask byte (in hex) to set bit 6th, 4th of a byte value with OR instruction (LSB is the 1st
Complete bit).
Marked out of
0.50 Answer: 28
Question 38 the instruction, CMP to compare source and destination operands by __________
Complete
Select one:
Marked out of
0.50 subtracting
adding
dividing
comparing
https://lms.hcmute.edu.vn/mod/quiz/review.php?attempt=1165657&cmid=406329 9/12
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
5/31/2019 Bài Thi Cuối Kỳ Môn Kiến Trúc Máy Tính và Hợp Ngữ
Question 39
Complete
Marked out of
1.00
Answer: 0.003875
Marked out of
1.00
What is the value of AX register after instruction MOV AX, [1D4B] executed
Answer: 5A2D
Level 6 Applications
https://lms.hcmute.edu.vn/mod/quiz/review.php?attempt=1165657&cmid=406329 10/12
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
5/31/2019 Bài Thi Cuối Kỳ Môn Kiến Trúc Máy Tính và Hợp Ngữ
Marked out of
1.00
The value of SP register is 1D50. What is the value of SP follows the execution of PUSH SI
Answer: 1D48
Marked out of
1.00
Note:
DQ: Data pinout
Select one:
DRAM 2Kx8-bit
SRAM 1Kx16-bit
SRAM 2Kx8-bit
DRAM 1Kx16-bit
Answer: 12.0
RAID5
At least 3 x 2T HDDs, fault-tolerance, no data lost, no down-time
Volume
RAID 1 -
Mirror 2 x 2T HDDs are needed, no data lost when the primary storage fails
volume
Spanned
2T HDD + more HDDs to extend storage, no fault tolerance, data lost when one HDD fails
Volume
https://lms.hcmute.edu.vn/mod/quiz/review.php?attempt=1165657&cmid=406329 11/12
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
NHÀ CỦA TÔI CÁC KHOÁ HỌC CỦA TÔI HỌC KỲ 2 NĂM HỌC 20162017
CÁC LỚP HỌC CẬP NHẬT SAU KT_KTMT 26 MARCH 1 APRIL BÀI TẬP ÔN
Đặt cờ
Answer: 5,75
Câu hỏi 2 A system programmer needs to divide 6247 by 300 (decimal). Instruct him to code in debug
Đúng (number must be in hex) and the result should be?
Step 2: CDW
Step 4: IDIV BX
Result:
AX = FFEC
DX = FF09
Câu hỏi 3 Write mask byte (in hex) to clear the lower 4 bit of a byte value with AND instruction.
Đúng
Đặt cờ
Câu hỏi 4 To isolate one or more bits in a byte value, use __________ instruction.
Đúng
Select one:
Đạt điểm 0,50
trên 0,50 OR
Đặt cờ NOT
AND
XOR
Câu hỏi 5 EAX now stored a 32bit IP address of a host. The network ID (netID) is 20 bit and can be
Đúng extracted from IP byte anding with a 32bit mask. Write correct instruction to extract netID from
EAX register.
Đạt điểm 0,25
trên 0,25 Note: Immediate value must be written in hex
Đặt cờ
Câu hỏi 6 The following sequence of instructions are executed. What is the correct values at watch point?
Đúng MOV AX, 67FE
Đạt điểm 1,00 MOV BX, AX
trên 1,00
MOV CL, BH
Đặt cờ
MOV CH, BL
watch point:
CX = FE67
BX = 67FE
Câu hỏi 7 The following sequence of instructions are executed. What is the correct value of flag bits at watch
Đúng point?
Câu hỏi 8 Physical address of the stack pointer is 2DA82, stack segment located at 1DAE. Computer the
Đúng value of SP register?
Đặt cờ
6E 156
A9 251
Câu hỏi 10 Enter debug command to fill 256 bytes in data segment starting from 100 with value 0D
Đúng
Đặt cờ
Đặt cờ
Answer: 11,5
Câu hỏi 12 Match the correct answer for binary operations on the left
Đúng
Đặt cờ
1100111 111 1100000
Đặt cờ
01101110 6E
11100101 E5
11100111 E7
Câu hỏi 14 The following sequence of instructions are executed. What is the correct value of CF and OF at
Đúng watch point?
CF= reset
OF= reset
Câu hỏi 15 To test one bit in a byte value without destructing the byte, use __________ instruction.
Đúng
Select one:
Đạt điểm 0,50
trên 0,50 NOT
Đặt cờ AND
Downloaded by ??ng D??ng (duongdangnt@gmail.com)
lOMoARcPSD|30860100
TEST
OR
DX = D096
CX = D0E0
Câu hỏi 17 Select correct match for register values at watch points:
Đúng MOV AX, 152D
Đạt điểm 1,00 ADD AX, 003F
trên 1,00
watch point #1:
Đặt cờ
ADD AH, 10
watch point #2:
......
Câu hỏi 18 A memory location located in extra segment which now has value of 564F. This memory managed
Đúng by ES:SI registerpair. SI now points to 905F. Compute the physical address of this memory
location
Đạt điểm 1,00
trên 1,00
Câu hỏi 19 Select correct match for AL and carry flag at watch point #1:
Đúng MOV BL, 8C
Đạt điểm 1,00 MOV AL, 7E
trên 1,00
ADD AL, BL
Đặt cờ
watch point #1:
......
AL 0A
Câu hỏi 20 Convert the 32bit floating point number C4361000 (in hex) to decimal.
Đúng
Đặt cờ
Câu hỏi 21 Which of the following instructions are not legal addressing?
Đúng
Select one or more:
Đạt điểm 1,00
trên 1,00 MOV AX, [DI]
Đặt cờ MOV AX, [BX+SP]
MOV AX, [SP+1]
Câu hỏi 22 Compute the physical address of stack top if stack pointer is FFAE and stack segment located at
Đúng 1DAE
Đặt cờ
Câu hỏi 24 The following sequence of instructions are executed. What is the correct value of AX, CX, DX at
Đúng watch point?
CX = FFFF
AX = FFD0
DX 002F
Finish review
1.6. HÖ thèng vµo/ra cña m¸y tÝnh kh«ng bao gåm ®ång thêi c¸c thiÕt bÞ sau:
a. §Üa tõ, Loa, §Üa CD-ROM
b. Mµn h×nh, RAM, M¸y in
c. CPU, Chuét, M¸y quÐt ¶nh
d. ROM, RAM, C¸c thanh ghi
1.7. Trong m¸y tÝnh, cã c¸c lo¹i bus liªn kÕt hÖ thèng nh sau:
a. ChØ dÉn, Chøc n¨ng, §iÒu khiÓn
b. §iÒu khiÓn, D÷ liÖu, §Þa chØ
c. D÷ liÖu, Phô thuéc, §iÒu khiÓn
d. D÷ liÖu, §iÒu khiÓn, Phô trî
Trang 1/53
1.9. Bé ®Õm ch¬ng tr×nh cña m¸y tÝnh kh«ng ph¶i lµ:
a. Thanh ghi chøa ®Þa chØ lÖnh
b. Thanh ghi chøa lÖnh s¾p thùc hiÖn
c. Thanh ghi chøa ®Þa chØ lÖnh s¾p thùc hiÖn
d. Thanh ghi
1.12. Khi Bé xö lý ®ang thùc hiÖn ch¬ng tr×nh, nÕu cã ng¾t (kh«ng bÞ cÊm) göi ®Õn, th×
nã:
a. Thùc hiÖn xong ch¬ng tr×nh råi thùc hiÖn ng¾t
b. Tõ chèi ng¾t, kh«ng phôc vô
c. Phôc vô ng¾t ngay, sau ®ã thùc hiÖn ch¬ng tr×nh
d. Thùc hiÖn xong lÖnh hiÖn t¹i, råi phôc vô ng¾t, cuèi cïng quay l¹i thùc hiÖn tiÕp
ch¬ng tr×nh.
1.13. M¸y tÝnh Von Newmann lµ m¸y tÝnh:
a. ChØ cã 01 bé xö lý, thùc hiÖn c¸c lÖnh tuÇn tù
b. Cã thÓ thùc hiÖn nhiÒu lÖnh cïng mét lóc (song song)
c. Thùc hiÖn theo ch¬ng tr×nh n»m s½n bªn trong bé nhí
d. C¶ a vµ c
1.15. §èi víi c¸c tÝn hiÖu ®iÒu khiÓn, ph¸t biÓu nµo sau ®©y lµ sai:
Trang 2/53
1.21. Trong c¸c giai ®o¹n ph¸t triÓn cña m¸y tÝnh, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. ThÕ hÖ thø nhÊt dïng transistor
b. ThÕ hÖ thø ba dïng transistor
c. ThÕ hÖ thø nhÊt dïng ®Ìn ®iÖn tö ch©n kh«ng
d. ThÕ hÖ thø t dïng vi m¹ch SSI vµ MSI
1.22. Trong c¸c giai ®o¹n ph¸t triÓn cña m¸y tÝnh, ph¸t biÓu nµo sau ®©y lµ sai:
a. ThÕ hÖ thø hai dïng transistor
b. ThÕ hÖ thø ba dïng transistor
c. ThÕ hÖ thø nhÊt dïng ®Ìn ®iÖn tö ch©n kh«ng
d. ThÕ hÖ thø t dïng vi m¹nh
Trang 3/53
1.23. Theo luËt Moore, sè lîng transistor sÏ t¨ng gÊp ®«i sau mçi:
a. 22 th¸ng b. 20 th¸ng
c. 18 th¸ng d. 16 th¸ng
Trang 4/53
1.32. Víi tÝn hiÖu ®iÒu khiÓn MEMR, ph¸t biÓu nµo sau ®©y lµ sai:
a. Lµ tÝn hiÖu do CPU ph¸t ra
b. Lµ tÝn hiÖu ®iÒu khiÓn truy nhËp bé nhí
c. Lµ tÝn hiÖu ®iÒu khiÓn ghi
d. Lµ tÝn hiÖu ®iÒu khiÓn ®äc
1.33. Víi tÝn hiÖu ®iÒu khiÓn MEMW, ph¸t biÓu nµo sau ®©y lµ sai:
a. Lµ tÝn hiÖu ®îc ph¸t ra bëi CPU
b. Lµ tÝn hiÖu do bªn ngoµi göi ®Õn CPU
c. Kh«ng ph¶i lµ tÝn hiÖu truy nhËp cæng vµo/ra
d. Lµ tÝn hiÖu ®iÒu khiÓn ghi
1.34. Víi tÝn hiÖu ®iÒu khiÓn IOR, ph¸t biÓu nµo sau ®©y lµ sai:
a. Lµ tÝn hiÖu ®iÒu khiÓn truy nhËp cæng vµo/ra
b. Lµ tÝn hiÖu ®iÒu khiÓn do CPU ph¸t ra
c. Lµ tÝn hiÖu ®iÒu khiÓn ®äc
d. Lµ tÝn hiÖu ®iÒu khiÓn truy nhËp CPU
1.35. Víi tÝn hiÖu ®iÒu khiÓn IOW, ph¸t biÓu nµo sau ®©y lµ sai:
a. Lµ tÝn hiÖu tõ bªn ngoµi xin ng¾t cæng vµo/ra
b. Lµ tÝn hiÖu ®iÒu khiÓn do CPU ph¸t ra
c. Lµ tÝn hiÖu ®iÒu khiÓn ®îc göi ®Õn cæng vµo/ra
d. Lµ tÝn hiÖu ®iÒu khiÓn ghi d÷ liÖu
1.36. Víi tÝn hiÖu ®iÒu khiÓn INTR, ph¸t biÓu nµo sau ®©y lµ sai:
a. Lµ tÝn hiÖu ®iÒu khiÓn tõ bªn ngoµi göi ®Õn CPU
b. Lµ tÝn hiÖu ®iÒu khiÓn do CPU ph¸t ra
c. Lµ tÝn hiÖu yªu cÇu ng¾t
d. Lµ tÝn hiÖu ng¾t ch¾n ®îc
1.37. Víi tÝn hiÖu ®iÒu khiÓn INTA, ph¸t biÓu nµo sau ®©y lµ sai:
a. Lµ tÝn hiÖu chÊp nhËn ng¾t
b. Lµ tÝn hiÖu ®iÒu khiÓn do CPU ph¸t ra
c. Lµ tÝn hiÖu ®iÒu khiÓn ghi cæng vµo/ra
d. Lµ tÝn hiÖu ®iÒu khiÓn xö lý ng¾t
1.38. Víi tÝn hiÖu ®iÒu khiÓn NMI, ph¸t biÓu nµo sau ®©y lµ sai:
a. Lµ tÝn hiÖu tõ bªn ngoµi göi ®Õn CPU
b. Lµ tÝn hiÖu ng¾t ch¾n ®îc
c. Lµ tÝn hiÖu ng¾t kh«ng ch¾n ®îc
d. CPU kh«ng thÓ tõ chèi tÝn hiÖu nµy
1.39. Víi tÝn hiÖu ®iÒu khiÓn HOLD, ph¸t biÓu nµo sau ®©y lµ sai:
a. Lµ tÝn hiÖu do CPU ph¸t ra
Trang 5/53
1.40. Víi tÝn hiÖu ®iÒu khiÓn HLDA, ph¸t biÓu nµo sau ®©y lµ sai:
a. Lµ tÝn hiÖu tr¶ lêi cña CPU
b. Lµ tÝn hiÖu ®ång ý nhêng bus
c. Lµ tÝn hiÖu tõ bªn ngoµi göi ®Õn CPU xin ng¾t
d. Kh«ng ph¶i lµ tÝn hiÖu xin ng¾t tõ bªn ngoµi
1.41. Theo c¸ch ph©n lo¹i truyÒn thèng, cã c¸c lo¹i m¸y tÝnh sau ®©y:
a. Bé vi ®iÒu khiÓn, m¸y tÝnh c¸ nh©n, m¸y tÝnh lín, siªu m¸y tÝnh, m¸y vi tÝnh
b. M¸y tÝnh x¸ch tay, m¸y tÝnh lín, m¸y tÝnh ®Ó bµn, m¸y vi tÝnh, siªu m¸y tÝnh
c. M¸y tÝnh x¸ch tay, m¸y tÝnh mini, m¸y tÝnh lín, siªu m¸y tÝnh, m¸y chñ
d. Bé vi ®iÒu khiÓn, m¸y vi tÝnh, m¸y tÝnh mini, m¸y tÝnh lín, siªu m¸y tÝnh
1.42. Theo c¸ch ph©n lo¹i hiÖn ®¹i, cã c¸c lo¹i m¸y tÝnh sau ®©y:
a. M¸y tÝnh ®Ó bµn, m¸y tÝnh lín, m¸y tÝnh nhóng
b. M¸y tÝnh ®Ó bµn, m¸y chñ, m¸y tÝnh nhóng
c. M¸y chñ, m¸y tÝnh mini, m¸y tÝnh lín
d. M¸y tÝnh mini, m¸y tÝnh nhóng, siªu m¸y tÝnh
2.1. §èi víi sè nguyªn kh«ng dÊu, 8 bit, gi¸ trÞ biÓu diÔn sè 261 lµ:
a. 1001 0001 b. 1010
1011
c. 1000 0111 d. Kh«ng
biÓu diÔn ®îc
2.2. §èi víi sè nguyªn kh«ng dÊu, 8 bit, gi¸ trÞ biÓu diÔn sè 132 lµ:
a. 1001 0001 b. 1000
0100
c. 1000 0111 d. Kh«ng
biÓu diÔn ®îc
2.3. §èi víi sè nguyªn cã dÊu, 8 bit, gi¸ trÞ biÓu diÔn sè 129 lµ:
a. 1001 0001 b. 1010
1011
c. 1000 0111 d. Kh«ng
biÓu diÔn ®îc
Trang 6/53
2.4. §èi víi sè nguyªn cã dÊu, 8 bit, gi¸ trÞ biÓu diÔn sè 124 lµ:
a. 0111 1100 b. 0101
1011
c. 0100 0111 d. Kh«ng
biÓu diÔn ®îc
2.5. D¶i biÔu diÔn sè nguyªn kh«ng dÊu, n bit trong m¸y tÝnh lµ:
a. 0 -> 2.n b. 0 -> 2.n -
1
c. 0 -> 2n - 1 d. 0 -> 2n
2.6. D¶i biÔu diÔn sè nguyªn cã dÊu, n bit trong m¸y tÝnh lµ:
a. - 2(n - 1) -> 2 (n - 1) b. - 2.n - 1 -> 2.n +1
n-1 n-1
c. - 2 - 1-> 2 - 1 d. - 2n - 1 -> 2n -1 - 1
Start
§óng
Q0 = 1?
Sai
C,A:=A+M
DÞch ph¶i C, A, Q
Dec(Bé ®Õm)
Sai §óng
Bé ®Õm = 0? End
Trang 7/53
Start
= 10 = 01
Q0, Q-1
= 11
A := A - M = 00 A := A + M
Sai §óng
Bé ®Õm = 0? End
2.9. §èi víi sè nguyªn cã dÊu, 8 bit, dïng ph¬ng ph¸p “DÊu vµ ®é lín”, gi¸ trÞ
biÓu diÔn sè - 60 lµ:
a. 0000 1101 b. 0000 1010
c. 1011 1100 d.
1100 1101
2.10. §èi víi sè nguyªn cã dÊu, 8 bit, dïng ph¬ng ph¸p “DÊu vµ ®é lín”, gi¸ trÞ
biÓu diÔn sè - 256 lµ:
a. 1100 1110 b.
1010 1110
c. 1100 1100 d.
Kh«ng thÓ biÓu diÔn
2.11. §èi víi sè nguyªn cã dÊu, 8 bit, dïng ph¬ng ph¸p “M· bï 2”, gi¸ trÞ biÓu
diÔn sè 101 lµ:
a. 0110 0101 b.
0000 1100
c. 0000 1110 d.
0100 1010
Trang 8/53
2.12. §èi víi sè nguyªn cã dÊu, 8 bit, dïng ph¬ng ph¸p “M· bï 2”, gi¸ trÞ biÓu
diÔn sè - 29 lµ:
a. 1000 0000 b.
1110 0011
c. 1111 0000 d.
1000 1111
2.13. Cã biÓu diÔn “1110 0010” ®èi víi sè nguyªn cã dÊu, 8 bit, dïng ph¬ng ph¸p
“DÊu vµ ®é lín”, gi¸ trÞ cña nã lµ:
a. 136
b. 30
c. - 30
d. - 136
2.14. Cã biÓu diÔn “1100 1000” ®èi víi sè nguyªn cã dÊu, 8 bit, dïng ph¬ng ph¸p
“M· bï 2”, gi¸ trÞ cña nã lµ:
a. Kh«ng tån t¹i b. - 56
c. 56
d. 200
A Q Q-1 M
0000 0011 0 1001 Gi¸ trÞ khëi t¹o
0111 0011 0 1001 A A - M
0011 1001 1 1001 SHR A, Q, Q-1
0001 1100 1 1001 SHR A, Q, Q-1
1010 1100 1 1001 A A + M
1101 0110 0 1001 SHR A, Q, Q-1
1110 1011 1 1001 SHR A, Q, Q-1
a. 3 9 = 27 c. (-7) 3 = -21
b. 15 9 = 135 d. 5 27 = 135
Trang 9/53
2.16. Cã biÔu diÔn “0000 0000 0010 0101” (dïng m· bï 2, cã dÊu), gi¸ trÞ cña
chóng lµ:
a. -37 b. 37
c. - 21 d. 21
2.17. B¶ng díi ®©y m« t¶ qu¸ tr×nh thùc hiÖn phÐp tÝnh:
A Q M = 0011
1111 0101 Khëi t¹o gi¸ trÞ (sè chia vµ bÞ chia kh¸c dÊu)
1110 1010 DÞch tr¸i 1 bit A, Q
0001 M kh¸c dÊu A A := A + M
1110 1010 A kh¸c dÊu sau khi céng Q0 = 0 vµ phôc håi A
1101 0100 DÞch tr¸i 1 bit A, Q
0000 M kh¸c dÊu A A := A + M
1101 0100 A kh¸c dÊu sau khi céng Q0 = 0 vµ phôc håi A
1010 1000 DÞch tr¸i 1 bit A, Q
1101 M kh¸c dÊu A A := A + M
1101 1001 A cïng dÊu sau khi céng Q0 = 1
1011 0010 DÞch tr¸i 1 bit A, Q
1110 M kh¸c dÊu A A := A + M
1110 0011 A cïng dÊu sau khi céng Q0=1.
a. 245 : 3 = 81, d 2 b. 59 : 15 = 3, d 14
c. 11 : 3 = 3, d 2 d. (-11) : 3 = (-3), d (-2)
2.18. S¬ ®å díi ®©y lµ thuËt to¸n thùc hiÖn:
Bé ®Õm := n
Start M chøa sè chia (n bit)
A,Q chøa sè bÞ chia (2n bit)
§óng Sai
M, A cïng dÊu?
A := A - M A := A + M
Q0 = 1 Q0 = 0; A := B
Dec(Bé ®Õm)
Sai §óng
Bé ®Õm = 0? End
Trang 10/53
2.19. B¶ng díi ®©y m« t¶ qu¸ tr×nh thùc hiÖn phÐp tÝnh:
C A Q M
0 0000 1011 1100 Gi¸ trÞ khëi t¹o
0 1100 1011 1100 C, A A+M
0 0110 0101 1100 SHR C, A, Q
1 0010 0101 1100 C, A A+M
0 1001 0010 1100 SHR C, A, Q
0 0100 1001 1100 SHR C, A, Q
1 0000 1001 1100 C, A A+M
0 1000 0100 1100 SHR C, A, Q
a. 4 19 = 76 c. -4 31 = -124
b. 11 12 = 132 d. 6 22 = 132
2.20. §èi víi c¸c sè 8 bit, kh«ng dÊu. H·y cho biÕt kÕt qu¶ khi thùc hiÖn phÐp
céng: 0100 0111 + 0101 1111:
a. 146 b.
166
c. 176 d.
156
2.21. §èi víi c¸c sè kh«ng dÊu, phÐp céng trªn m¸y tÝnh cho kÕt qu¶ sai khi:
a. Céng hai sè d¬ng, cho kÕt qu¶ ©m
b. Céng hai sè ©m, cho kÕt qu¶ d¬ng
c. Cã nhí ra khái bit cao nhÊt
d. C¶ a vµ b
2.22. §èi víi c¸c sè cã dÊu, phÐp céng trªn m¸y tÝnh cho kÕt qu¶ sai khi:
a. Céng hai sè d¬ng, cho kÕt qu¶ ©m
b. Céng hai sè ©m, cho kÕt qu¶ d¬ng
c. Cã nhí ra khái bit cao nhÊt
d. C¶ a vµ b
2.23. §èi víi sè cã dÊu, ph¸t biÓu nµo sau ®©y lµ sai:
a. Céng hai sè cïng dÊu, tæng lu«n ®óng
b. Céng hai sè kh¸c dÊu, tæng lu«n ®óng
c. Céng hai sè cïng dÊu, nÕu tæng cã cïng dÊu th× tæng ®óng
d. Céng hai sè cïng dÊu, nÕu tæng kh¸c dÊu th× tæng sai
2.24. §èi víi sè kh«ng dÊu, ph¸t biÓu nµo sau ®©y lµ ®óng:
Trang 11/53
2.25. §èi víi sè kh«ng dÊu, 8 bit, xÐt phÐp céng: 240 + 27. Ph¸t biÓu nµo sau ®©y
lµ ®óng:
a. Tæng lµ 267
b. Tæng lµ 11
c. Kh«ng cho kÕt qu¶, v× trµn sè
d. C¶ a vµ b ®Òu sai
2.26. §èi víi sè cã dÊu, 8 bit, xÐt phÐp céng: (-39) + (-42). Ph¸t biÓu nµo sau ®©y
lµ ®óng:
a. Kh«ng cho kÕt qu¶, v× trµn sè
b. Kh«ng cho kÕt qu¶, v× cã nhí ra khái bit cao nhÊt
c. Tæng lµ -81
d. Tæng lµ 81
2.27. §èi víi sè cã dÊu, 8 bit, xÐt phÐp céng: (-73) + (-86). Ph¸t biÓu nµo sau ®©y
lµ ®óng:
a. Kh«ng cho kÕt qu¶, v× trµn sè
b. Kh«ng cho kÕt qu¶, v× cã nhí ra khái bit cao nhÊt
c. Tæng lµ 97
d. Tæng lµ -159
2.28. §èi víi sè cã dÊu, 8 bit, xÐt phÐp céng: 91 + 63. Ph¸t biÓu nµo sau ®©y lµ
®óng:
a. Kh«ng cho kÕt qu¶, v× trµn sè
b. KÕt qu¶ sai, v× cã nhí ra khái bit cao nhÊt
c. Tæng lµ 154
d. Tæng lµ -102
2.29. Mét sè thùc X bÊt kú, cã thÓ biÓu diÔn díi d¹ng tæng qu¸t nh sau:
a. X = (-1).S . M . RE
b. X = (-1)S . M . R.E
c. X = (-1)S . M . RE
d. X = (-1)S . M . R.E
2.30. Cho hai sè thùc X1 vµ X2 biÓu diÔn díi d¹ng tæng qu¸t. BiÓu diÔn nµo sau
®©y lµ ®óng ®èi víi phÐp nh©n (X1 . X2):
a. X1 . X2 = (-1)S1. S2 . (M1.M2) . RE1 . E2
b. X1 . X2 = (-1)S1 S2 . (M1.M2) . RE1 . E2
c. X1 . X2 = (-1)S1+ S2 . (M1.M2) . RE1 + E2
Trang 12/53
2.31. . Cho hai sè thùc X1 vµ X2 biÓu diÔn díi d¹ng tæng qu¸t. BiÓu diÔn nµo sau
®©y lµ ®óng ®èi víi phÐp chia (X1 / X2):
a. X1 . X2 = (-1)S1/ S2 . (M1/M2) . RE1 - E2
b. X1 . X2 = (-1)S1 S2 . (M1/M2) . RE1 - E2
c. X1 . X2 = (-1)S1 S2 . (M1/M2) . RE1 + E2
d. X1 . X2 = (-1)S1/ S2 . (M1/M2) . RE1 + E2
2.32. §èi víi chuÈn IEEE 754/85 vÒ biÓu diÔn sè thùc, ph¸t biÓu nµo sau ®©y lµ
sai:
a. Cã tÊt c¶ 3 d¹ng biÓu diÔn
b. C¸c d¹ng biÓu diÔn ®Òu dïng c¬ sè 2
c. C¸c d¹ng biÓu diÔn ®Òu dïng c¬ sè 10
d. Cã mét d¹ng dïng 64 bit ®Ó biÓu diÔn
2.33. §èi víi chuÈn IEEE 754/85 vÒ biÓu diÔn sè thùc, cã c¸c d¹ng sau:
a. Single, Double, Real
b. Single, Double-Extended, Comp
c. Single, Double-Extended, Double
d. Double-Extended, Comp, Double
2.34. Trong chuÈn IEEE 754/85, d¹ng ®¬n (single) cã ®é dµi:
a. 16 bit b.
128 bit
c. 32 bit d. 64
bit
2.36. Trong chuÈn IEEE 754/85, d¹ng kÐp më réng (double-extended) cã ®é dµi:
a. 128 bit b. 80
bit
c. 32 bit d. 64
bit
2.37. §èi víi d¹ng ®¬n (trong chuÈn IEEE 754/85), c¸c bit dµnh cho c¸c trêng (S
+ E + M) lµ:
a. 1 + 9 + 22 b. 1 + 8 +
23
Trang 13/53
c. 1 + 10 + 21 d. 1 + 11 +
20
2.38. §èi víi d¹ng kÐp (trong chuÈn IEEE 754/85), c¸c bit dµnh cho c¸c trêng (S
+ E + M) lµ:
a. 1 + 10 + 52 b. 1 + 11 +
64
c. 1 + 11 + 52 d. 1 + 15 +
48
2.39. §èi víi d¹ng kÐp më réng (trong chuÈn IEEE 754/85), c¸c bit dµnh cho c¸c
trêng (S + E + M) lµ:
a. 1 + 15 + 64 b. 1 + 17 +
62
c. 1 + 10 + 64 d. 1 + 14 +
65
2.40. D¹ng biÓu diÔn IEEE 754/85 cña sè thùc 73,625 lµ:
a. 42 39 40 00 H b. 42 93 40 00 H
c. 24 93 40 00 H d. 42 39 04 00 H
2.41. D¹ng biÓu diÔn IEEE 754/85 cña sè thùc - 53,125 lµ:
a. 2C E0 A0 00 H b. C2 00 A0 00 H
c. C2 54 80 00H d. C2 00 80 00 H
2.42. D¹ng biÓu diÔn IEEE 754/85 cña sè thùc 101,25 lµ:
a. 42 CA 80 00 H b. 42 CA 00 00 H
c. 24 AC 00 00 H d. 24 00 80 00 H
2.43. D¹ng biÓu diÔn IEEE 754/85 cña sè thùc - 119,5 lµ:
a. 2C 00 00 00 H b. 2C EF 00 00 H
c. C2 E0 00 00 H d. C2 EF 00 00 H
2.44. Cho biÓu diÔn díi d¹ng IEEE 754/85 nh sau: C2 82 80 00 H. Gi¸ trÞ thËp
ph©n cña nã lµ:
a. - 65,25 b. - 56,25
c. - 65,52 d. - 56,52
2.45. Cho biÓu diÔn díi d¹ng IEEE 754/85 nh sau: C2 BF 00 00 H. Gi¸ trÞ thËp
ph©n cña nã lµ:
a.- 95,25 b. - 95,5
c. - 59,5 d. - 59,25
2.46. Cho biÓu diÔn díi d¹ng IEEE 754/85 nh sau: 42 15 00 00 H. Gi¸ trÞ thËp
ph©n cña nã lµ:
a. 37,52 b. 73,25
c. 37,25 d. 73,52
Trang 14/53
2.47. Cho biÓu diÔn díi d¹ng IEEE 754/85 nh sau: 42 22 80 00 H. Gi¸ trÞ thËp
ph©n cña nã lµ:
a. - 40,25 b. 40,25
c. - 40,625 d. 40,625
2.48. Víi bé m· Unicode ®Ó m· ho¸ ký tù, ph¸t biÓu nµo sau ®©y lµ sai:
a. Lµ bé m· 16 bit
b. Lµ bé m· ®a ng«n ng÷
c. ChØ m· ho¸ ®îc 256 ký tù
d. Cã hç trî c¸c ký tù tiÕng ViÖt
2.49. Víi bé m· ASCII ®Ó m· ho¸ ký tù, ph¸t biÓu nµo sau ®©y lµ sai:
a. Do ANSI thiÕt kÕ
b. Lµ bé m· 8 bit
c. Cã chøa c¸c ký tù ®iÒu khiÓn truyÒn tin
d. Kh«ng hç trî c¸c ký tù ®iÒu khiÓn m¸y in
2.51. Theo chuÈn IEEE 754/85, sè thùc X biÓu diÔn d¹ng ®¬n (single) lµ:
a. X = (-1).S . 1,M . RE
b. X = (-1)S . 1,M . R.(E - 127)
c. X = (-1)S . 1,M . RE - 127
d. X = (-1)S . 1,M. ER - 127
2.52. Theo chuÈn IEEE 754/85, sè thùc X biÓu diÔn d¹ng kÐp (double) lµ:
a. X = (-1).S . 1,M . RE
b. X = (-1)S . 1,M . R.(E - 1023)
c. X = (-1)S . 1,M. ER - 1023
d. X = (-1)S . 1,M . RE - 1023
2.53. Theo chuÈn IEEE 754/85, sè thùc X biÓu diÔn d¹ng kÐp më réng (double-
extended) lµ:
a. X = (-1)S . 1,M . RE - 16383
b. X = (-1).S . 1,M . RE
c. X = (-1)S . 1,M . R.(E - 16383)
d. X = (-1)S . 1,M. ER - 16383
2.54. D¹ng biÓu diÔn IEEE 754/85 cña sè thùc 31/64 lµ:
a. E3 F8 00 00 H b. 3E F8 00 00 H
Trang 15/53
c. 3E 8F 00 00 H d. E3 8F 00 00 H
2.55. D¹ng biÓu diÔn IEEE 754/85 cña sè thùc - 79/32 lµ:
a. C0 1E 00 00 H b. 0C 1E 00 00 H
c. C0 E1 00 00 H d. 0C E1 00 00 H
2.56. Cho sè thùc 81,25. Gi¸ trÞ cña nã ë hÖ nhÞ ph©n lµ:
a. 100101,10 b.
1010001,01
c. 100011,101 d.
100010,011
2.57. Cho sè thùc 99,3125. Gi¸ trÞ cña nã ë hÖ nhÞ ph©n lµ:
a. 111011,1010 b.
111011,0011
c. 111010,0101 d. 1100011,0101
2.58. Cho sè thùc 51/32. Gi¸ trÞ cña nã ë hÖ nhÞ ph©n lµ:
a. 1,01011 b. 1,
01110
c. 1,10011 d. 1,00111
2.59. Cho sè thùc 33/128. Gi¸ trÞ cña nã ë hÖ nhÞ ph©n lµ:
a. 0,0100001 b.
0,1010101
c. 0,1001100 d.
0,0100011
Ch¬ng 3. Bé xö lý
Trang 16/53
3.3. XÐt c¸c c«ng ®o¹n cña bé xö lý, thø tù nµo lµ ®óng:
a. Gi¶i m· lÖnh -> nhËn d÷ liÖu -> xö lý d÷ liÖu -> ghi d÷ liÖu -> nhËn
lÖnh
b. NhËn lÖnh -> gi¶i m· lÖnh -> nhËn d÷ liÖu -> xö lý d÷ liÖu -> ghi d÷
liÖu
c. NhËn lÖnh -> nhËn d÷ liÖu -> gi¶i m· lÖnh -> xö lý d÷ liÖu -> ghi d÷
liÖu
d. NhËn d÷ liÖu -> xö lý d÷ liÖu -> nhËn lÖnh -> gi¶i m· lÖnh -> ghi d÷
liÖu
3.4. Víi c«ng ®o¹n nhËn lÖnh cña CPU, thø tù thùc hiÖn lµ:
a. Bé ®Õm ch¬ng tr×nh -> Bé nhí -> thanh ghi lÖnh
b. Bé nhí -> Bé ®Õm ch¬ng tr×nh -> thanh ghi lÖnh
c. Bé nhí -> thanh ghi lÖnh -> bé ®Õm ch¬ng tr×nh
d. Bé ®Õm ch¬ng tr×nh -> thanh ghi lÖnh -> bé nhí
3.5. Víi c«ng ®o¹n gi¶i m· lÖnh cña CPU, thø tù thùc hiÖn lµ:
a. Thanh ghi lÖnh -> gi¶i m· -> khèi ®iÒu khiÓn -> tÝn hiÖu ®iÒu khiÓn
b. Thanh ghi lÖnh -> khèi ®iÒu khiÓn -> tÝn hiÖu ®iÒu khiÓn -> gi¶i m·
c. Khèi ®iÒu khiÓn -> thanh ghi lÖnh -> gi¶i m· -> tÝn hiÖu ®iÒu khiÓn
d. Thanh ghi lÖnh -> khèi ®iÒu khiÓn -> gi¶i m· -> tÝn hiÖu ®iÒu khiÓn
3.6. Víi c«ng ®o¹n nhËn d÷ liÖu cña CPU, thø tù thùc hiÖn lµ:
a. §Þa chØ -> tËp thanh ghi -> ng¨n nhí
b. §Þa chØ -> ng¨n nhí -> tËp thanh ghi
c. TËp thanh ghi -> ®Þa chØ -> ng¨n nhí
d. Ng¨n nhí -> tËp thanh ghi -> ®Þa chØ
3.7. Víi c«ng ®o¹n xö lý d÷ liÖu cña CPU, thø tù thùc hiÖn lµ:
a. Thùc hiÖn phÐp to¸n -> ALU -> thanh ghi d÷ liÖu
b. Thùc hiÖn phÐp to¸n -> thanh ghi d÷ liÖu -> ALU
c. ALU -> thùc hiÖn phÐp to¸n -> thanh ghi d÷ liÖu
d. ALU -> thanh ghi d÷ liÖu -> thùc hiÖn phÐp to¸n
3.8. Víi c«ng ®o¹n ghi d÷ liÖu cña CPU, thø tù thùc hiÖn lµ:
a. §Þa chØ -> tËp thanh ghi -> ng¨n nhí
b. §Þa chØ -> ng¨n nhí -> tËp thanh ghi
c. TËp thanh ghi -> ®Þa chØ -> ng¨n nhí
d. TËp thanh ghi -> ng¨n nhí -> ®Þa chØ
Trang 17/53
b. Bé nhí
c. ThiÕt bÞ ngo¹i vi
d. CPU
3.11. §èi víi nhiÖm vô cña khèi ®iÒu khiÓn (trong CPU), ph¸t biÓu nµo sau
®©y lµ sai:
a. §iÒu khiÓn nhËn lÖnh tiÕp theo tõ bé nhí, ®a vµo thanh ghi lÖnh
b. T¨ng néi dung cña PC ®Ó trá vµo lÖnh tiÕp theo
c. VËn chuyÓn lÖnh tõ thanh ghi ra bé nhí
d. Ph¸t ra c¸c tÝn hiÖu ®iÒu khiÓn thùc hiÖn lÖnh
3.12. §èi víi khèi ®iÒu khiÓn (trong CPU), ph¸t biÓu nµo sau ®©y lµ sai:
a. §iÒu khiÓn c¸c tÝn hiÖu bªn trong vµ bªn ngoµi bé xö lý
b. §iÒu khiÓn c¸c thanh ghi vµ ALU
c. §iÒu khiÓn bé nhí vµ modul vµo ra
d. ChØ ®iÒu khiÓn c¸c thanh ghi vµ ALU
3.13. §èi víi khèi ALU (trong CPU), ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Thùc hiÖn c¸c phÐp to¸n sè häc
b. Thùc hiÖn c¸c phÐp to¸n logic
c. C¶ a vµ b
d. Kh«ng thùc hiÖn phÐp quay bit
3.14. §èi víi c¸c thanh ghi (trong CPU), ph¸t biÓu nµo sau ®©y lµ sai:
a. Chøa c¸c th«ng tin t¹m thêi
b. Lµ møc ®Çu tiªn cña hÖ thèng nhí
c. N»m trong bé xö lý
d. Ngêi lËp tr×nh cã thÓ thay ®æi néi dung cña mäi thanh ghi
3.15. §èi víi c¸c thanh ghi ®Þa chØ (trong CPU), ph¸t biÓu nµo sau ®©y lµ
®óng:
a. Cã tÊt c¶ 2 lo¹i
b. Cã Ýt nhÊt 3 lo¹i
c. Cã nhiÒu h¬n 4 lo¹i
d. ChØ cã 1 lo¹i
3.16. §èi víi c¸c thanh ghi ®Þa chØ (trong CPU), ph¸t biÓu nµo sau ®©y lµ sai:
Trang 18/53
3.17. §èi víi ng¨n xÕp (stack), ph¸t biÓu nµo sau ®©y lµ sai:
a. Lµ vïng nhí cã cÊu tróc FIFO
b. Lµ vïng nhí cã cÊu tróc LIFO
c. Con trá ng¨n xÕp lu«n trá vµo ®Ønh ng¨n xÕp
d. Khi cÊt thªm th«ng tin vµo ng¨n xÕp, con trá ng¨n xÕp gi¶m
3.19. §èi víi khèi ®iÒu khiÓn trong CPU, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. TiÕp nhËn tÝn hiÖu tõ CPU ®Õn
b. Kh«ng tiÕp nhËn tÝn hiÖu tõ TBNV
c. Gi¶i m· lÖnh ®îc chuyÓn tõ thanh ghi tr¹ng th¸i ®Õn
d. Gi¶i m· lÖnh ®îc chuyÓn tõ thanh ghi lÖnh ®Õn
3.20. XÐt c¸c tÝn hiÖu ®iÒu khiÓn bªn trong CPU, ph¸t biÓu nµo sau ®©y lµ
®óng:
a. §iÒu khiÓn chuyÓn d÷ liÖu tõ bé nhí ra TBNV
b. §iÓu khiÓn chuyÓn d÷ liÖu tõ thanh ghi vµo ALU
c. §iÒu khiÓn chuyÓn d÷ liÖu tõ ALU ra bé nhí
d. §iÒu khiÓn chuyÓn d÷ liÖu tõ CPU vµo ALU
3.21. XÐt c¸c tÝn hiÖu ®iÒu khiÓn bªn trong CPU, ph¸t biÓu nµo sau ®©y lµ sai:
a. §iÒu khiÓn chuyÓn d÷ liÖu tõ CPU ra thanh ghi
b. §iÒu khiÓn chuyÓn d÷ liÖu tõ thanh ghi vµo ALU
c. §iÒu khiÓn chuyÓn d÷ liÖu tõ ALU ra thanh ghi
d. §iÒu khiÓn ALU thùc hiÖn lÖnh
3.22. XÐt c¸c tÝn hiÖu ®iÒu khiÓn tõ CPU ra bus hÖ thèng, ph¸t biÓu nµo sau
®©y lµ ®óng:
a. §iÒu khiÓn ®äc d÷ liÖu tõ ALU
b. §iÒu khiÓn ®äc/ghi ng¨n nhí
c. §iÒu khiÓn chuyÓn d÷ liÖu tõ ALU vµo thanh ghi
Trang 19/53
3.23. XÐt c¸c tÝn hiÖu ®iÒu khiÓn tõ CPU ra bus hÖ thèng, ph¸t biÓu nµo sau
®©y lµ sai:
a. §iÒu khiÓn ®äc/ghi cæng vµo/ra
b. §iÒu khiÓn ®äc/ghi ng¨n nhí
c. §iÒu khiÓn ghi d÷ liÖu vµo c¸c thanh ghi
d. Xö lý c¸c tÝn hiÖu tõ bªn ngoµi göi ®Õn
3.24. XÐt c¸c tÝn hiÖu ®iÒu khiÓn tõ bus hÖ thèng ®Õn CPU, ph¸t biÓu nµo sau
®©y lµ ®óng:
a. TÝn hiÖu ®iÒu khiÓn ghi ng¨n nhí
b. TÝn hiÖu ®iÒu khiÓn ®äc ng¨n nhí
c. TÝn hiÖu xin ng¾t
d. TÝn hiÖu chÊp nhËn ng¾t
3.25. XÐt c¸c tÝn hiÖu ®iÒu khiÓn tõ bus hÖ thèng ®Õn CPU, ph¸t biÓu nµo sau
®©y lµ sai:
a. TÝn hiÖu xin nhêng bus
b. Kh«ng ph¶i lµ tÝn hiÖu ®iÒu khiÓn ®äc ng¨n nhí
c. TÝn hiÖu xin ng¾t
d. TÝn hiÖu tr¶ lêi ®ång ý nhêng bus
3.26. §èi víi khèi ALU (trong CPU), ph¸t biÓu nµo sau ®©y lµ sai:
a. Thùc hiÖn phÐp dÞch bit
b. Thùc hiÖn phÐp so s¸nh hai ®¹i lîng
c. Thùc hiÖn phÐp lÊy c¨n bËc hai
d. Thùc hiÖn phÐp céng vµ trõ
3.27. §èi víi c¸c thanh ghi (trong CPU), ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Cã lo¹i thanh ghi kh«ng lËp tr×nh ®îc
b. Mäi thanh ghi ®Òu cã thÓ lËp tr×nh ®îc
c. Chøa lÖnh võa ®îc xö lý xong
d. Chøa tr¹ng th¸i cña c¸c TBNV
3.28. §èi víi thanh ghi tr¹ng th¸i (trong CPU), ph¸t biÓu nµo sau ®©y lµ
®óng:
a. Kh«ng chøa c¸c cê phÐp to¸n
b. ChØ chøa c¸c cê phÐp to¸n
c. Chøa c¸c cê ®iÒu khiÓn
d. Kh«ng chøa c¸c cê ®iÒu khiÓn
3.29. §èi víi cê carry (CF), ph¸t biÓu nµo sau ®©y lµ ®óng:
Trang 20/53
a. §îc thiÕt lËp khi phÐp to¸n cã nhí ra khái bit cao nhÊt
b. §îc thiÕt lËp khi phÐp to¸n kh«ng nhí ra khái bit cao nhÊt
c. Kh«ng ®îc thiÕt lËp khi phÐp to¸n cã nhí ra khái bit cao nhÊt
d. §©y lµ cê b¸o trµn ®èi víi sè cã dÊu
3.30. §èi víi cê carry (CF), ph¸t biÓu nµo sau ®©y lµ sai:
a. §îc thiÕt lËp khi phÐp to¸n cã nhí ra khái bit cao nhÊt
b. Kh«ng ®îc thiÕt lËp khi phÐp to¸n kh«ng nhí ra khái bit cao nhÊt
c. §©y lµ cê b¸o trµn ®èi víi sè kh«ng dÊu
d. §©y lµ cê b¸o trµn ®èi víi sè cã dÊu
3.31. §èi víi cê overflow (OF), ph¸t biÓu nµo sau ®©y lµ ®óng:
a. §îc thiÕt lËp khi céng hai sè kh¸c dÊu cho kÕt qu¶ ©m
b. §îc thiÕt lËp khi céng hai sè cïng dÊu cho kÕt qu¶ kh¸c dÊu
c. §îc thiÕt lËp khi céng hai sè cïng dÊu cho kÕt qu¶ cïng dÊu
d. §©y lµ cê b¸o trµn ®èi víi sè kh«ng dÊu
3.32. §èi víi cê overflow (OF), ph¸t biÓu nµo sau ®©y lµ sai:
a. Kh«ng ®îc thiÕt lËp khi céng hai sè kh¸c dÊu cho kÕt qu¶ ©m
b. §îc thiÕt lËp khi céng hai sè cïng dÊu cho kÕt qu¶ kh¸c dÊu
c. §îc thiÕt lËp khi céng hai sè cïng dÊu cho kÕt qu¶ cïng dÊu
d. §©y lµ cê b¸o trµn ®èi víi sè cã dÊu
4.2. Mode ®Þa chØ tøc th× lµ mode kh«ng cã ®Æc ®iÓm sau:
a. To¸n h¹ng lµ mét phÇn cña lÖnh
b. To¸n h¹ng n»m ngay trong trêng ®Þa chØ
c. To¸n h¹ng cã thÓ lµ to¸n h¹ng nguån hoÆc ®Ých
d. To¸n h¹ng chØ cã thÓ lµ to¸n h¹ng nguån
4.3. Cho lÖnh assembly: ADD BX, 10. To¸n h¹ng nguån thuéc:
a. Mode ®Þa chØ trùc tiÕp
b. Mode ®Þa chØ gi¸n tiÕp
Trang 21/53
4.4. Cho lÖnh assembly: SUB 100, CX. To¸n h¹ng nguån thuéc:
a. Mode ®Þa chØ trùc tiÕp
b. Kh«ng tån t¹i lÖnh
c. Mode ®Þa chØ h»ng sè
d. Mode ®Þa chØ tøc th×
4.5. Mode ®Þa chØ trùc tiÕp lµ mode mµ to¸n h¹ng lµ:
a. Mét ng¨n nhí cã ®Þa chØ ®îc chØ ra trong lÖnh
b. Mét ng¨n nhí cã ®Þa chØ ë ng¨n nhí kh¸c
c. Mét thanh ghi
d. Mét ng¨n nhí cã ®Þa chØ n»m trong mét thanh ghi
4.6. Cho lÖnh assembly: MOV DX, [20]. To¸n h¹ng nguån thuéc:
a. Mode ®Þa chØ trùc tiÕp
b. Kh«ng tån t¹i lÖnh
c. Mode ®Þa chØ h»ng sè
d. Mode ®Þa chØ tøc th×
4.7. Cho lÖnh assembly: SUB BX, [30]. To¸n h¹ng nguån thuéc:
a. Kh«ng tån t¹i lÖnh
b. Mode ®Þa chØ gi¸n tiÕp
b. Mode ®Þa chØ tøc th×
d. Mode ®Þa chØ trùc tiÕp
4.8. Mode ®Þa chØ gi¸n tiÕp lµ mode mµ to¸n h¹ng lµ:
a. Mét ng¨n nhí cã ®Þa chØ ®îc chØ ra trong lÖnh
b. Mét ng¨n nhí cã ®Þa chØ n»m trong ng¨n nhí kh¸c
c. Mét thanh ghi cã ®Þa chØ n»m trong mét ng¨n nhí
d. Mét ng¨n nhí cã ®Þa chØ n»m trong mét thanh ghi
4.9. Mode ®Þa chØ thanh ghi lµ mode mµ to¸n h¹ng lµ:
a. Néi dung cña ng¨n nhí cã ®Þa chØ ®îc chØ ra trong lÖnh
b. Néi dung cña ng¨n nhí cã ®Þa chØ n»m trong ng¨n nhí kh¸c
c. Néi dung cña thanh ghi
d. Néi dung cña ng¨n nhí cã ®Þa chØ n»m trong mét thanh ghi
4.10. Cho lÖnh assembly: ADD AX, CX. Mode ®Þa chØ cña to¸n nguån lµ:
a. Tøc th×
b. Trùc tiÕp
c. Gi¸n tiÕp qua thanh ghi
d. Thanh ghi
4.11. Cho lÖnh assembly: SUB CX, [90]. Ph¸t biÓu nµo sau ®©y lµ sai:
Trang 22/53
4.12. §èi víi mode ®Þa chØ gi¸n tiÕp qua thanh ghi, ph¸t biÓu nµo sau ®©y lµ sai:
a. To¸n h¹ng lµ mét thanh ghi cã ®Þa chØ n»m trong mét ng¨n nhí
b. To¸n h¹ng lµ mét ng¨n nhí cã ®Þa chØ n»m trong mét thanh ghi
c. To¸n h¹ng lµ néi dung mét ng¨n nhí
d. Thanh ghi tham gia gäi lµ thanh ghi con trá
4.13. Cho lÖnh assembly: MOV DX, [BP]. Mode ®Þa chØ cña to¸n h¹ng nguån lµ:
a. Thanh ghi
b. Gi¸n tiÕp
c. Gi¸n tiÕp qua thanh ghi
d. Trùc tiÕp
4.14. §èi víi mode ®Þa chØ dÞch chuyÓn, ph¸t biÓu nµo sau ®©y lµ sai:
a. Lµ sù kÕt hîp: mode gi¸n tiÕp qua thanh ghi vµ mode tøc th×
b. Cã sù tham gia cña mode ®Þa chØ trùc tiÕp
c. §Þa chØ to¸n h¹ng gåm: néi dung thanh ghi + h»ng sè
d. Cã sù tham gia cña mode ®Þa chØ gi¸n tiÕp qua thanh ghi
4.15. Cho lÖnh assembly: SUB AX, [CX] + 50. Mode ®Þa chØ cña to¸n h¹ng nguån
lµ:
a. DÞch chuyÓn
b. Kh«ng tån t¹i
c. Thanh ghi
d. Gi¸n tiÕp qua thanh ghi
4.17. Cho lÖnh assembly: POP BX. Ph¸t biÓu nµo sau ®©y lµ ®óng:
a. §©y lµ mode ®Þa chØ thanh ghi
b. §©y lµ mode ®Þa chØ gi¸n tiÕp qua thanh ghi
c. §©y lµ mode ®Þa ng¨n xÕp
d. C¶ a vµ b ®Òu ®óng
Trang 23/53
4.19. §èi víi mode ®Þa chØ trùc tiÕp, ph¸t biÓu nµo sau ®©y lµ sai:
a. To¸n h¹ng lµ néi dung cña ng¨n nhí cã ®Þa chØ ®îc chØ ra trong lÖnh
b. To¸n h¹ng lµ néi dung cña ng¨n nhí
c. §Ó t×m ®îc to¸n h¹ng, ph¶i biÕt ®Þa chØ ng¨n nhí
d. §Ó t×m ®îc to¸n h¹ng, ph¶i biÕt ®Þa chØ thanh ghi
4.20. §èi víi mode ®Þa chØ gi¸n tiÕp, ph¸t biÓu nµo sau ®©y lµ sai:
a. To¸n h¹ng lµ néi dung cña ng¨n nhí
b. To¸n h¹ng lµ néi dung cña thanh ghi
c. Cã thÓ gi¸n tiÕp nhiÒu lÇn
d. Tèc ®é xö lý chËm
4.21. §èi víi mode ®Þa chØ thanh ghi, ph¸t biÓu nµo sau ®©y lµ sai:
a. To¸n h¹ng lµ néi dung ng¨n nhí cã ®Þa chØ n»m trong thanh ghi
b. To¸n h¹ng lµ néi dung cña thanh ghi
c. Kh«ng tham chiÕu bé nhí
d. C¶ b vµ c ®Òu ®óng
4.22. §èi víi mode ®Þa chØ gi¸n tiÕp qua thanh ghi, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. To¸n h¹ng lµ mét thanh ghi cã ®Þa chØ n»m trong mét ng¨n nhí
b. To¸n h¹ng lµ mét ng¨n nhí cã ®Þa chØ n»m trong mét thanh ghi
c. To¸n h¹ng kh«ng ph¶i lµ néi dung mét ng¨n nhí
d. Thanh ghi tham gia gäi lµ bé ®Õm ch¬ng tr×nh
4.23. §èi víi mode ®Þa chØ dÞch chuyÓn, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Lµ sù kÕt hîp: mode gi¸n tiÕp qua thanh ghi vµ mode trùc tiÕp
b. Cã sù tham gia cña mode ®Þa chØ tøc th×
c. §Þa chØ to¸n h¹ng kh«ng ph¶i lµ: néi dung thanh ghi + h»ng sè
d. Cã sù tham gia cña mode ®Þa chØ thanh ghi
4.24. §èi víi mode ®Þa chØ ng¨n xÕp, ph¸t biÓu nµo sau ®©y lµ sai:
a. To¸n h¹ng ®îc ngÇm hiÓu
b. To¸n h¹ng lµ ng¨n nhí ®Ønh ng¨n xÕp
c. C¶ vµ b ®Òu sai
d. C¶ a vµ b ®Òu ®óng
4.25. §èi víi lÖnh m· m¸y, ph¸t biÓu nµo sau ®©y lµ sai:
a. Cã 2 thµnh phÇn: m· lÖnh vµ c¸c to¸n h¹ng
b. M· lÖnh cho biÕt thao t¸c cÇn thùc hiÖn
c. To¸n h¹ng cho biÕt thao t¸c cÇn thùc hiÖn
d. To¸n h¹ng cho biÕt n¬i chøa d÷ liÖu cÇn t¸c ®éng
Trang 24/53
4.26. Trong mét lÖnh m· m¸y, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Cã thÓ cã nhiÒu m· lÖnh
b. Kh«ng tån t¹i lÖnh kh«ng cã to¸n h¹ng
c. To¸n h¹ng lµ duy nhÊt
d. Cã thÓ cã nhiÒu to¸n h¹ng
4.27. §èi víi lÖnh m· m¸y, sè lîng to¸n h¹ng cã thÓ lµ:
a. 1, 2, 3 to¸n h¹ng
b. 0, 1, 2, to¸n h¹ng
c. 2, 3, 4 to¸n h¹ng
d. C¶ a vµ b ®Òu ®óng
4.28. §èi víi lÖnh m· m¸y, to¸n h¹ng kh«ng thÓ lµ:
a. Mét h»ng sè
b. Néi dung cña thanh ghi
c. Néi dung cña ng¨n nhí
d. Néi dung cña thanh ghi cã ®Þa chØ n»m trong mét ng¨n nhí
LÖnh
To¸n h¹ng
a. Trùc tiÕp
b. Tøc th×
c. Gi¸n tiÕp qua thanh ghi
d. Kh«ng tån t¹i
Trang 25/53
LÖnh
M· lÖnh §Þa chØ
Bé nhí
§Þa chØ cña t/h¹ng
To¸n h¹ng
LÖnh
M· lÖnh Tªn thanh ghi
TËp thanh ghi
To¸n h¹ng
a. Gi¸n tiÕp
b. Thanh ghi
c. Kh«ng tån t¹i
d. Gi¸n tiÕp qua thanh ghi
Trang 26/53
LÖnh
M· lÖnh Tªn thanh ghi
Bé nhí
TËp thanh ghi
a. Tøc th×
b. DÞch chuyÓn
c. Gi¸n tiÕp qua thanh ghi
d. Kh«ng tån t¹i
LÖnh
M· lÖnh Register R Address A
Bé nhí
TËp thanh ghi +
To¸n h¹ng
Trang 27/53
LÖnh
M· lÖnh §Þa chØ
TËp thanh ghi
§Þa chØ cña t/h¹ng
To¸n h¹ng
LÖnh
M· lÖnh Tªn thanh ghi
TËp thanh ghi
Bé nhí
Trang 28/53
LÖnh
M· lÖnh Register R Address A
TËp thanh ghi
Bé nhí +
To¸n h¹ng
a. DÞch chuyÓn
b. Gi¸n tiÕp qua thanh ghi
c. Trùc tiÕp
d. Kh«ng tån t¹i
4.37. Cho lÖnh assembly: ADD CX, 20. Ph¸t biÓu nµo sau ®©y lµ ®óng:
a. To¸n h¹ng nguån thuéc mode ®Þa chØ tøc th×
b. To¸n h¹ng nguån thuéc mode ®Þa chØ trùc tiÕp
c. To¸n h¹ng ®Ých thuéc mode ®Þa chØ gi¸n tiÕp qua thanh ghi
d. To¸n h¹ng ®Ých kh«ng thuéc mode ®Þa chØ thanh ghi
4.38. Cho lÖnh assembly: SUB CX, 70. Ph¸t biÓu nµo sau ®©y lµ sai:
a. To¸n h¹ng nguån thuéc mode ®Þa chØ tøc th×
b. To¸n h¹ng nguån kh«ng thuéc mode ®Þa chØ trùc tiÕp
c. To¸n h¹ng ®Ých kh«ng thuéc mode ®Þa chØ thanh ghi
d. To¸n h¹ng ®Ých kh«ng thuéc mode ®Þa chØ gi¸n tiÕp
4.39. Cho lÖnh assembly: ADD DX, [40]. Ph¸t biÓu nµo sau ®©y lµ ®óng:
a. To¸n h¹ng nguån thuéc mode ®Þa chØ tøc th×
b. To¸n h¹ng nguån kh«ng thuéc mode ®Þa chØ trùc tiÕp
c. To¸n h¹ng ®Ých kh«ng thuéc mode ®Þa chØ thanh ghi
d. To¸n h¹ng ®Ých thuéc mode ®Þa chØ thanh ghi
4.40. Cho lÖnh assembly: MOV BX, [80]. Ph¸t biÓu nµo sau ®©y lµ sai:
a. To¸n h¹ng nguån thuéc mode ®Þa chØ thanh ghi
b. To¸n h¹ng nguån thuéc mode ®Þa chØ trùc tiÕp
c. To¸n h¹ng ®Ých kh«ng thuéc mode ®Þa chØ dÞch chuyÓn
d. To¸n h¹ng ®Ých kh«ng thuéc mode ®Þa chØ trùc tiÕp
4.41. Cho lÖnh assembly: SUB AX, [BX]. Ph¸t biÓu nµo sau ®©y lµ sai:
a. To¸n h¹ng nguån thuéc mode ®Þa chØ thanh ghi
b. To¸n h¹ng nguån thuéc mode ®Þa chØ gi¸n tiÕp qua thanh ghi
Trang 29/53
c. To¸n h¹ng ®Ých kh«ng thuéc mode ®Þa chØ dÞch chuyÓn
d. To¸n h¹ng ®Ých kh«ng thuéc mode ®Þa chØ gi¸n tiÕp
4.42. Cho lÖnh assembly: ADD AX, [BP]. Ph¸t biÓu nµo sau ®©y lµ ®óng:
a. To¸n h¹ng nguån thuéc mode ®Þa chØ thanh ghi
b. To¸n h¹ng nguån thuéc mode ®Þa chØ gi¸n tiÕp qua thanh ghi
c. To¸n h¹ng ®Ých kh«ng thuéc mode ®Þa chØ thanh ghi
d. To¸n h¹ng ®Ých thuéc mode ®Þa chØ gi¸n tiÕp qua thanh ghi
4.43. Cho lÖnh assembly: MOV AX, [BX]+50. Ph¸t biÓu nµo sau ®©y lµ sai:
a. To¸n h¹ng nguån thuéc mode ®Þa chØ dÞch chuyÓn
b. To¸n h¹ng ®Ých kh«ng thuéc mode ®Þa chØ dÞch chuyÓn
c. To¸n h¹ng nguån thuéc mode ®Þa chØ tøc th×
d. To¸n h¹ng ®Ých kh«ng thuéc mode ®Þa chØ gi¸n tiÕp
4.44. Cho lÖnh assembly: ADD DX, [SI]+30. Ph¸t biÓu nµo sau ®©y lµ ®óng:
a. To¸n h¹ng nguån thuéc mode ®Þa chØ dÞch chuyÓn
b. To¸n h¹ng ®Ých thuéc mode ®Þa chØ trùc tiÕp
c. To¸n h¹ng nguån thuéc mode ®Þa chØ tøc th×
d. To¸n h¹ng ®Ých thuéc mode ®Þa chØ gi¸n tiÕp
4.45. Cho lÖnh assembly: POP DX. Ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Kh«ng cã to¸n h¹ng nguån
b. To¸n h¹ng ®Ých thuéc mode ®Þa chØ trùc tiÕp
c. To¸n h¹ng ®Ých ®îc ngÇm hiÓu
d. To¸n h¹ng nguån ®îc ngÇm hiÓu
4.46. Cho lÖnh assembly: PUSH AX. Ph¸t biÓu nµo sau ®©y lµ sai:
a. Kh«ng cã to¸n h¹ng nguån
b. To¸n h¹ng ®Ých ®îc ngÇm hiÓu
c. To¸n h¹ng nguån thuéc mode ®Þa chØ thanh ghi
d. To¸n h¹ng ®Ých thuéc mode ®Þa chØ stack
Trang 30/53
5.1. §èi víi bé nhí ROM, ph¸t biÓu nµo sau ®©y lµ sai:
a. Cã tÊt c¶ 5 lo¹i ROM
b. Lµ lo¹i bé nhí kh¶ biÕn
c. Lµ n¬i chøa c¸c ch¬ng tr×nh hÖ thèng (BIOS)
d. Lµ n¬i chøa c¸c vi ch¬ng tr×nh
5.2. §èi víi bé nhí ROM, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Cã thÓ dïng ®iÖn ®Ó xo¸ PROM
b. PROM lµ lo¹i ROM cã thÓ xo¸ vµ ghi l¹i nhiÒu lÇn
c. EPROM lµ lo¹i ROM cã thÓ xo¸ vµ ghi l¹i nhiÒu lÇn
d. Cã thÓ dïng ®iÖn ®Ó xo¸ EPROM
5.3. §èi víi bé nhí RAM, ph¸t biÓu nµo sau ®©y lµ sai:
a. Lµ lo¹i bé nhí kh«ng kh¶ biÕn
b. Lµ n¬i lu gi÷ th«ng tin t¹m thêi
Trang 31/53
5.4. §èi víi bé nhí RAM, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Lµ lo¹i bé nhí kh«ng kh¶ biÕn
b. RAM lµ viÕt t¾t cña: Read Access Memory
c. SRAM ®îc chÕ t¹o tõ c¸c tô ®iÖn
d. Lµ n¬i lu gi÷ th«ng tin mµ m¸y tÝnh ®ang xö lý
5.5. §èi víi bé nhí ROM, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. §îc chÕ t¹o tõ m¹ch lËt
b. §îc chÕ t¹o tõ transistor
c. §îc chÕ t¹o tõ diode
d. C¶ b vµ c
5.6. §èi víi bé nhí RAM, ph¸t biÓu nµo sau ®©y lµ sai:
a. DRAM ®îc chÕ t¹o tõ m¹ch lËt
b. DRAM ®îc chÕ t¹o tõ tô ®iÖn
c. SRAM ®îc chÕ t¹o tõ m¹ch lËt
d. SRAM kh«ng cÇn ph¶i lµm t¬i
5.7. Cho chip nhí SRAM cã dung lîng 64K x 4 bit, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. C¸c ®êng ®Þa chØ lµ: A0 -> A15
b. C¸c ®êng ®Þa chØ lµ: D0 -> D15
c. C¸c ®êng d÷ liÖu lµ: A0 -> A3
d. C¸c ®êng d÷ liÖu lµ: D1 -> D8
5.8. Cho chip nhí SRAM cã dung lîng 16K x 8 bit, ph¸t biÓu nµo sau ®©y lµ sai:
a. Cã 14 ®êng ®Þa chØ
b. Cã 8 ®êng d÷ liÖu
c. C¸c ®êng ®Þa chØ lµ: A0 -> A13
d. C¸c ®êng ®Þa chØ lµ: A0 -> A14
5.9. Cho chip nhí SRAM cã c¸c tÝn hiÖu: A0 -> A13, D0 -> D15 , RD, WE. Ph¸t biÓu nµo sau ®©y
lµ sai:
a. Dung lîng cña chip lµ: 16K x 16 bit
b. WE lµ tÝn hiÖu ®iÒu khiÓn ghi d÷ liÖu
c. RD lµ tÝn hiÖu ®iÒu khiÓn ghi d÷ liÖu
d. RD lµ tÝn hiÖu ®iÒu khiÓn ®äc d÷ liÖu
5.10. Cho chip nhí DRAM cã c¸c tÝn hiÖu: A0 -> A7, D0 -> D7 , RD, WE. Ph¸t biÓu nµo sau ®©y
lµ ®óng:
a. Dung lîng cña chip lµ: 64K x 8 bit
b. Dung lîng cña chip lµ: 8K x 8 bit
c. RD lµ tÝn hiÖu ®iÒu khiÓn ghi d÷ liÖu
d. WE lµ tÝn hiÖu ®iÒu khiÓn ®äc d÷ liÖu
Trang 32/53
5.12. §èi víi hÖ thèng nhí m¸y tÝnh, cã thÓ cã c¸c ®¬n vÞ truyÒn nh sau:
a. Theo tõ nhí
b. Theo khèi nhí
c. C¶ a vµ b ®Òu ®óng
d. C¶ a vµ b ®Òu sai
5.13. XÐt vÒ c¸c ph¬ng ph¸p truy nhËp trong hÖ thèng nhí, ph¸t biÓu nµo sau ®©y lµ sai:
a. Truy nhËp tuÇn tù ®èi víi bé nhí cache
b. Truy nhËp liªn kÕt ®èi víi bé nhí cache
c. Truy nhËp ngÉu nhiªn ®èi víi bé nhí trong
d. Truy nhËp trùc tiÕp ®èi víi ®Üa tõ
5.14. §èi víi hÖ thèng nhí, cã c¸c kiÓu vËt lý nh sau:
a. Bé nhí tõ, RAM, bé nhí cache
b. Bé nhí b¸n dÉn, bé nhí tõ, bé nhí cache
c. Bé nhí b¸n dÉn, bé nhí tõ, bé nhí quang
d. Bé nhí quang, bé nhí cache, bé nhí tõ
5.15. §èi víi hÖ thèng nhí m¸y tÝnh, ph¸t biÓu nµo sau ®©y kh«ng ph¶i lµ ®Æc trng vËt lý:
a. Bé nhí kh¶ biÕn
b. Bé nhí kh«ng kh¶ biÕn
c. Bé nhí xo¸ ®îc
d. Bé nhí chØ ®äc
5.16. XÐt s¬ ®å ph©n cÊp hÖ thèng nhí, ph¸t biÓu nµo sau ®©y lµ sai:
a. Møc thanh ghi lµ møc trao ®æi nhanh nhÊt
b. Møc thanh ghi lµ møc trao ®æi chËm nhÊt
c. Møc cache ®îc chia thµnh hai møc
d. Møc cache lµ møc gÇn thanh ghi nhÊt
5.17. XÐt s¬ ®å ph©n cÊp hÖ thèng nhí, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Tõ bé nhí cache ®Õn bé nhí ngoµi, tèc ®é nhanh dÇn
b. Tõ thanh ghi ®Õn bé xö lý, tèc ®é t¨ng dÇn
c. Tõ bé nhí ngoµi ®Õn thanh ghi, dung lîng gi¶m dÇn
d. Tõ bé nhí trong ®Õn bé nhí cache, tÇn suÊt truy nhËp gi¶m dÇn
5.18. Cho chip nhí nh h×nh vÏ, ®©y lµ ký hiÖu cña:
A0 -> A11
Chip
D0 -> D7
nhí
CS
RD WR
a. SRAM 4K x 8 bit
Trang 33/53
b. DRAM 4 K x 8 bit
c. SRAM 2K x 8 bit
d. DRAM 2 K x 8 bit
5.19. Cho chip nhí nh h×nh vÏ, ®©y lµ ký hiÖu cña:
A0 -> A12
RAS Chip
D0 -> D15
CAS nhí
CS
a. SRAM 8K x 16 bit
RD WR
b. DRAM 8K x 16 bit
c. SRAM 64M x 16 bit
d. DRAM 64M x 16 bit
5.20. §èi víi bé nhí chÝnh (BNC) m¸y tÝnh, ph¸t biÓu nµo sau ®©y lµ sai:
a. Chøa c¸c ch¬ng tr×nh vµ d÷ liÖu díi d¹ng th viÖn
b. VÒ nguyªn t¾c, ngêi lËp tr×nh cã thÓ can thiÖp vµo toµn bé BNC
c. ViÖc qu¶n lý logic BNC tuú thuéc vµo tõng hÖ ®iÒu hµnh
d. §îc ®¸nh ®Þa chØ trùc tiÕp bëi bé xö lý
5.21. §èi víi bé nhí chÝnh (BNC) m¸y tÝnh, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. ViÖc ®¸nh ®Þa chØ cho BNC tuú thuéc vµo tõng hÖ ®iÒu hµnh
b. BNC do bé xö lý ®¸nh ®Þa chØ trùc tiÕp
c. Cã nh÷ng lo¹i m¸y tÝnh kh«ng cã BNC
d. C¸c ng¨n nhí kh«ng tæ chøc theo byte
5.22. §èi víi bé nhí cache, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Cache cã thÓ ®îc ®Æt trªn cïng chip víi CPU
b. Bé nhí chÝnh cã tèc ®é nhanh h¬n cache
c. Bé nhí cache ®îc ®Æt gi÷a bé nhí chÝnh vµ bé nhí ngoµi
d. Cache kh«ng ®îc ®Æt trªn cïng chip víi CPU
5.23. §èi víi bé nhí cache, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Bé nhí ngoµi nhËn c¶ khèi d÷ liÖu tõ cache
b. TruyÒn d÷ liÖu gi÷a CPU vµ cache theo ®¬n vÞ khèi nhí
c. TruyÒn d÷ liÖu gi÷a CPU vµ cache theo ®¬n vÞ tõ nhí
d. Khi cÇn, CPU nhËn d÷ liÖu trùc tiÕp tõ bé nhí chÝnh
5.24. Khi CPU truy nhËp cache, cã hai kh¶ n¨ng sau:
a. Trît cache, tróng cache
Trang 34/53
5.26. Trong sù trao ®æi gi÷a cache vµ bé nhí chÝnh, ph¸t biÓu nµo sau ®©y lµ sai:
a. Bé nhí chÝnh chia thµnh c¸c block nhí
b. Cache chia thµnh c¸c line nhí
c. Bé nhí chÝnh chia thµnh c¸c line nhí
d. KÝch thíc line b»ng kÝch thíc block
5.27. XÐt bé nhí cache, mçi line ®îc g¾n thªm Tag lµ ®Ó:
a. X¸c ®Þnh block nµo cña bé nhí chÝnh ®ang ë trong line
b. X¸c ®Þnh cache cã dung lîng bao nhiªu
c. X¸c ®Þnh line cã dung lîng bao nhiªu
d. X¸c ®Þnh cache cã bao nhiªu line
5.28. XÐt bé nhí cache, cã c¸c kü thuËt ¸nh x¹ ®Þa chØ sau ®©y:
a. Trùc tiÕp, liªn kÕt hoµn toµn, liªn kÕt tËp hîp
b. Liªn kÕt hoµn toµn, liªn kÕt phô thuéc, gi¸n tiÕp
c. Liªn kÕt tËp hîp, liªn kÕt phÇn tö, gi¸n tiÕp
d. Trùc tiÕp, liªn kÕt phÇn tö, liªn kÕt gi¸n ®o¹n
5.29. Trong kü thuËt ¸nh x¹ liªn kÕt hoµn toµn, c¸c trêng ®Þa chØ lµ:
a. Tag + Word + Line
b. Tag + Word
c. Tag + Line + Word
d. Tag + Line
5.30. Trong kü thuËt ¸nh x¹ trùc tiÕp, c¸c trêng ®Þa chØ lµ:
a. Tag + Word + Line
b. Tag + Word
c. Tag + Line + Word
d. Tag + Line
5.31. Trong kü thuËt ¸nh x¹ liªn kÕt tËp hîp, c¸c trêng ®Þa chØ lµ:
a. Tag + Word + Set
b. Tag + Word
c. Tag + Set + Word
d. Tag + Set
5.32. Cho m¸y tÝnh cã dung lîng bé nhí chÝnh: 128MB, cache: 64KB, line: 8 byte, ®é dµi ng¨n
nhí: 1 byte. Trong trêng hîp kü thuËt ¸nh x¹ trùc tiÕp, d¹ng ®Þa chØ do bé xö lý ph¸t ra ®Ó truy
nhËp cache lµ:
a. 12 + 10 + 5 b. 13 + 10 + 4
c. 14 + 11 + 2 d. 14 + 10 + 3
Trang 35/53
5.33. Cho m¸y tÝnh cã dung lîng bé nhí chÝnh: 256MB, cache: 128KB, line: 16 byte, ®é dµi
ng¨n nhí: 2 byte. Trong trêng hîp kü thuËt ¸nh x¹ trùc tiÕp, d¹ng ®Þa chØ do bé xö lý ph¸t ra ®Ó
truy nhËp cache lµ:
a. 11 + 13 + 3 b. 11 + 14 + 2
c. 12 + 13 + 4 d. 12 + 12 + 3
5.34. Cho m¸y tÝnh cã dung lîng bé nhí chÝnh: 512MB, cache: 128KB, line: 64 byte, ®é dµi
ng¨n nhí: 4 byte. Trong trêng hîp kü thuËt ¸nh x¹ trùc tiÕp, d¹ng ®Þa chØ do bé xö lý ph¸t ra ®Ó
truy nhËp cache lµ:
a. 11 + 11 + 5 b. 12 + 11 + 4
c. 12 + 12 + 3 d. 11 + 12 + 4
5.35. Cho m¸y tÝnh cã dung lîng bé nhí chÝnh: 256MB, cache: 64KB, line: 16 byte, ®é dµi
ng¨n nhí: 4 byte. Trong trêng hîp kü thuËt ¸nh x¹ liªn kÕt hoµn toµn, d¹ng ®Þa chØ do bé xö lý
ph¸t ra ®Ó truy nhËp cache lµ:
a. 13 + 11 + 2 b. 12 + 12 + 2
c. 24 + 4 d. 24 + 2
5.36. Cho m¸y tÝnh cã dung lîng bé nhí chÝnh: 256MB, cache: 128KB, line: 32 byte, ®é dµi
ng¨n nhí: 4 byte. Trong trêng hîp kü thuËt ¸nh x¹ liªn kÕt hoµn toµn, d¹ng ®Þa chØ do bé xö lý
ph¸t ra ®Ó truy nhËp cache lµ:
a. 13 + 11 + 2 b. 14 + 10 + 2
c. 23 + 3 d. 24 + 2
5.37. Cho m¸y tÝnh cã dung lîng bé nhí chÝnh: 128MB, cache: 64KB, line: 16 byte, ®é dµi
ng¨n nhí: 1 byte, set: 4 line. Trong trêng hîp kü thuËt ¸nh x¹ liªn kÕt tËp hîp, d¹ng ®Þa chØ do
bé xö lý ph¸t ra ®Ó truy nhËp cache lµ:
a. 13 + 10 + 4 b. 13 + 9 + 5
c. 14 + 9 + 4 d. 14 + 10 + 4
5.38. Cho m¸y tÝnh cã dung lîng bé nhí chÝnh: 512MB, cache: 128KB, line: 32 byte, ®é dµi
ng¨n nhí: 2 byte, set: 4 line. Trong trêng hîp kü thuËt ¸nh x¹ liªn kÕt tËp hîp, d¹ng ®Þa chØ do
bé xö lý ph¸t ra ®Ó truy nhËp cache lµ:
a. 12 + 12 + 4 b. 13 + 11 + 4
c. 14 + 10 + 4 d. 13 + 9 + 6
5.39. Cho m¸y tÝnh cã dung lîng bé nhí chÝnh: 256MB, cache: 128KB, line: 128 byte, ®é dµi
ng¨n nhí: 4 byte, set: 8 line. Trong trêng hîp kü thuËt ¸nh x¹ liªn kÕt tËp hîp, d¹ng ®Þa chØ do
bé xö lý ph¸t ra ®Ó truy nhËp cache lµ:
a. 13 + 8 + 5 b. 13 + 7 + 6
c. 14 + 7 + 5 d. 14 + 8 + 6
5.40. XÐt kü thuËt ¸nh x¹ trùc tiÕp khi truy nhËp cache, thø tù t×m block trong cache ®îc thùc
hiÖn dùa theo c¸c trêng trong ®Þa chØ do CPU ph¸t ra nh sau:
a. Line -> Tag -> Word
b. Line -> Word -> Tag
c. Tag -> Line -> Word
d. Tag -> Word -> Line
5.41. §èi víi bé nhí cache, xÐt kü thuËt ¸nh x¹ liªn kÕt tËp hîp, thø tù t×m block trong cache
®îc thùc hiÖn dùa theo c¸c gi¸ trÞ trong ®Þa chØ do CPU ph¸t ra nh sau:
a. Word -> Set -> Tag
Trang 36/53
5.42. XÐt c¸c thuËt to¸n thay thÕ d÷ liÖu trong cache, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Kh«ng cã thuËt to¸n
b. ¸nh x¹ trùc tiÕp kh«ng cã thuËt to¸n thay thÕ
c. Hai ¸nh x¹ liªn kÕt (hoµn toµn vµ tËp hîp) cã 4 thuËt to¸n
d. C¶ b vµ c ®Òu ®óng
5.43. §èi víi bé nhí cache, c¸c thuËt to¸n thay thÕ d÷ liÖu lµ:
a. NgÉu nhiªn, FIFO, LRU, LFU
b. NgÉu nhiªn, LIFO, LRU, LFU
c. NgÉu nhiªn, FIFO, LFU, LTU
d. NgÉu nhiªn, LIFO, LTU, LVU
5.44. §èi víi c¸c ph¬ng ph¸p ghi d÷ liÖu vµo cache, ph¸t biÓu nµo sau ®©y lµ sai:
a. Write through: ghi ®ång thêi vµo c¶ cache vµ bé nhí chÝnh
b. Write back: chØ ghi vµo cache, khi block t¬ng øng bÞ thay thÕ th× míi ghi vµo bé nhí
chÝnh
c. C¶ a vµ b ®Òu sai
d. C¶ a vµ b ®Òu ®óng
5.45. §èi víi c¸c ph¬ng ph¸p ghi d÷ liÖu vµo cache, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Write back: ghi ®ång thêi vµo c¶ cache vµ bé nhí chÝnh
b. Write through: chØ ghi vµo cache, khi block t¬ng øng bÞ thay thÕ th× míi ghi vµo bé
nhí chÝnh
c. C¶ a vµ b ®Òu kh«ng ®óng
d. C¶ a vµ b ®Òu ®óng
5.46. §èi víi c¸c thuËt to¸n (TT) thay thÕ d÷ liÖu trong cache, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. FIFO lµ TT thay ®i block míi nhÊt trong c¸c block hiÖn nay
b. LRU lµ TT thay ®i block cã tÇn suÊt truy nhËp Ýt nhÊt
c. LFU lµ TT thay ®i block truy nhËp gÇn ®©y Ýt nhÊt
d. TÊt c¶ ®Òu sai
5.47. §èi víi c¸c thuËt to¸n (TT) thay thÕ d÷ liÖu trong cache, ph¸t biÓu nµo sau ®©y lµ sai:
a. FIFO lµ TT thay ®i block cò nhÊt trong c¸c block hiÖn nay
b. FIFO lµ TT thay ®i block cã tÇn suÊt truy nhËp Ýt nhÊt
c. LRU lµ TT thay ®i block truy nhËp gÇn ®©y Ýt nhÊt
d. Random lµ TT thay ®i block ngÉu nhiªn
5.48. §èi víi c¸c thuËt to¸n (TT) thay thÕ d÷ liÖu trong cache, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. LIFO lµ TT thay ®i block cò nhÊt trong c¸c block hiÖn nay
b. LTU lµ TT thay ®i block cã tÇn suÊt truy nhËp Ýt nhÊt
c. LVU lµ TT thay ®i block truy nhËp gÇn ®©y Ýt nhÊt
d. TÊt c¶ ®Òu sai
5.49. §èi víi c¸c thuËt to¸n (TT) thay thÕ d÷ liÖu trong cache, ph¸t biÓu nµo sau ®©y lµ sai:
a. TT Random cho tØ lÖ cache hit thÊp nhÊt
b. TT LRU cho tØ lÖ cache hit cao nhÊt
c. TT FIFO cho tØ lÖ cache hit cao nhÊt
Trang 37/53
A0 -> A12
Chip Chip
D4 -> D7
nhí nhí D0 -> D3
RD
WR
CS
Chip Chip
D8 -> D15
nhí nhí D0 -> D7
RD
WR
CS
a. 32K x 8 bit ®Ó cã modul nhí 32K x 16 bit
b. 16K x 8 bit ®Ó cã modul nhí 32K x 8 bit
c. 32K x 4 bit ®Ó cã modul nhí 32K x 8 bit
d. 16K x 16 bit ®Ó cã modul nhí 32K x 16 bit
Trang 38/53
A0 -> A13
RD
WR
a.
CS
A0 -> A11
D6 -> D7
Chip Chip Chip Chip D4 -> D5
nhí nhí nhí nhí D2 -> D3
D0 -> D1
RD
WR
CS
Trang 39/53
A0 -> A10
Chip nhí
A11 A Y0
D0 -> D3
G Y1
CS Chip nhí
RD WR
a. 2K x 4 bit ®Ó cã modul nhí 4K x 4 bit
b. 2K x 4 bit ®Ó cã modul nhí 4K x 8 bit
c. 2K x 4 bit ®Ó cã modul nhí 2K x 8 bit
d. 4K x 4 bit ®Ó cã modul nhí 8K x 4 bit
Chip nhí
A15 A Y0
D0 -> D7
G Y1
CS Chip nhí
RD WR
a. 32K x 8 bit ®Ó cã modul nhí 32K x 16 bit
b. 16K x 8 bit ®Ó cã modul nhí 32K x 8 bit
c. 32K x 8 bit ®Ó cã modul nhí 64K x 16 bit
d. 32K x 8 bit ®Ó cã modul nhí 64K x 8 bit
Trang 40/53
A0 -> A9
Chip nhí
A10
A Y0
A11 B Y1
Y2
Chip nhí
G Y3
CS
D0 -> D3
Chip nhí
Chip nhí
RD WR
Trang 41/53
A0 -> A12
Chip nhí
A13
A Y0
A14 B Y1
Y2
Chip nhí
G Y3
CS
D0 -> D7
Chip nhí
Chip nhí
RD WR
A0 -> A12
D0 -> D3
G Y1
CS Chip nhí Chip nhí
Trang 42/53
RD
WR
A0 -> A11
D0 -> D3
G Y1
CS Chip nhí Chip nhí
RD
WR
a. 4K x 4 bit ®Ó cã modul nhí 16K x 8 bit
b. 8K x 8 bit ®Ó cã modul nhí 8K x 16 bit
c. 8K x 8 bit ®Ó cã modul nhí 16K x 8 bit
d. 4K x 4 bit ®Ó cã modul nhí 8K x 8 bit
5.60. Víi chip nhí SRAM cã n ®êng ®Þa chØ, m ®êng d÷ liÖu th× dung lîng cña chip lµ:
a. 2m x n bit
b. 2n x m bit
c. 2m x n byte
d. 2n x m byte
5.61. Víi chip nhí SRAM cã n ®êng ®Þa chØ, m ®êng d÷ liÖu th× dung lîng cña chip lµ:
a. 2m x n bit
b. 22n x m bit
c. 22m x n bit
d. 2n x m bit
5.62. Víi chip nhí DRAM cã n ®êng ®Þa chØ, m ®êng d÷ liÖu th× dung lîng cña chip lµ:
a. 22m x n bit
b. 22n x m bit
Trang 43/53
c. 22m x n byte
d. 22n x m byte
5.63. Víi chip nhí DRAM cã n ®êng ®Þa chØ, m ®êng d÷ liÖu th× dung lîng cña chip lµ:
a. 2m x n bit
b. 22n x m bit
c. 22m x n bit
d. 2n x m bit
5.64. §èi víi bé nhí cache, xÐt nguyªn lý ®Þnh vÞ vÒ thêi gian, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Th«ng tin võa truy nhËp th× x¸c suÊt bÐ lµ sau ®ã nã sÏ ®îc truy nhËp l¹i
b. Th«ng tin võa truy nhËp th× x¸c suÊt lín lµ sau ®ã nã sÏ ®îc truy nhËp l¹i
c. Th«ng tin võa truy nhËp th× sau ®ã ch¾c ch¾n nã sÏ kh«ng ®îc truy nhËp l¹i
d. Th«ng tin võa truy nhËp th× ch¾c ch¾n lµ sau ®ã nã ®îc truy nhËp l¹i
5.65. §èi víi bé nhí cache, xÐt nguyªn lý ®Þnh vÞ vÒ kh«ng gian, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Môc th«ng tin võa truy nhËp th× x¸c suÊt lín lµ sau ®ã c¸c môc l©n cËn ®îc truy nhËp
b. Môc th«ng tin võa truy nhËp th× x¸c suÊt bÐ lµ sau ®ã c¸c môc l©n cËn ®îc truy nhËp
c. Môc th«ng tin võa truy nhËp th× ch¾c ch¾n lµ sau ®ã c¸c môc l©n cËn ®îc truy nhËp
d. Th«ng tin võa truy nhËp th× ch¾c ch¾n lµ sau ®ã c¸c môc l©n cËn kh«ng ®îc truy nhËp
5.66. Khi truy nhËp cache, xÐt ¸nh x¹ trùc tiÕp, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Mçi block cã thÓ ¸nh x¹ vµo mét line bÊt kú
b. Mçi block cã thÓ ¸nh x¹ vµo mét line bÊt kú trong mét tËp line x¸c ®Þnh
c. Mçi block chØ ®îc ¸nh x¹ vµo mét line duy nhÊt
d. Mçi block chØ ®îc ¸nh x¹ vµo mét trong bèn line x¸c ®Þnh
5.67. Khi truy nhËp cache, xÐt ¸nh x¹ trùc tiÕp, ph¸t biÓu nµo sau ®©y lµ sai:
a. Mçi block kh«ng thÓ ¸nh x¹ vµo mét line bÊt kú
b. Mçi block kh«ng thÓ ¸nh x¹ vµo mét line bÊt kú trong t¸m line x¸c ®Þnh
c. Mçi block chØ ®îc ¸nh x¹ vµo mét line duy nhÊt
d. Mçi block chØ ®îc ¸nh x¹ vµo mét trong hai line x¸c ®Þnh
5.68. Khi truy nhËp cache, xÐt ¸nh x¹ liªn kÕt hoµn toµn, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Mçi block cã thÓ ¸nh x¹ vµo mét line bÊt kú
b. Mçi block cã thÓ ¸nh x¹ vµo mét line bÊt kú trong bèn line x¸c ®Þnh
c. Mçi block chØ ®îc ¸nh x¹ vµo mét line duy nhÊt
d. Mçi block chØ ®îc ¸nh x¹ vµo mét trong mêi s¸u line x¸c ®Þnh
5.69. Khi truy nhËp cache, xÐt ¸nh x¹ liªn kÕt hoµn toµn, ph¸t biÓu nµo sau ®©y lµ sai:
a. Mçi block cã thÓ ¸nh x¹ vµo mét line bÊt kú
b. Mçi block cã thÓ ¸nh x¹ vµo mét line bÊt kú trong t¸m line x¸c ®Þnh
c. Mçi block kh«ng chØ ®îc ¸nh x¹ vµo mét line duy nhÊt
d. Mçi block kh«ng chØ ®îc ¸nh x¹ vµo mét trong bèn line x¸c ®Þnh
5.70. Khi truy nhËp cache, xÐt ¸nh x¹ liªn kÕt tËp hîp, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Mçi block cã thÓ ¸nh x¹ vµo mét line bÊt kú
b. Mçi block cã thÓ ¸nh x¹ vµo mét line bÊt kú trong mét tËp line x¸c ®Þnh
c. Mçi block cã thÓ ¸nh x¹ vµo mét line duy nhÊt trong mét tËp line x¸c ®Þnh
d. Mçi block chØ ®îc ¸nh x¹ vµo mét line duy nhÊt
Trang 44/53
5.71. Khi truy nhËp cache, xÐt ¸nh x¹ liªn kÕt tËp hîp, ph¸t biÓu nµo sau ®©y lµ sai:
a. Mçi block cã thÓ ¸nh x¹ vµo mét line bÊt kú trong mét tËp line x¸c ®Þnh
b. Mçi block kh«ng chØ ®îc ¸nh x¹ vµo mét line duy nhÊt
c. Mçi block chØ ¸nh x¹ vµo mét line duy nhÊt trong mét tËp line x¸c ®Þnh
d. Mçi block chØ ®îc ¸nh x¹ duy nhÊt vµo mét tËp line x¸c ®Þnh
6.1. Kh«ng thÓ nèi trùc tiÕp thiÕt bÞ ngo¹i vi (TBNV) víi bus hÖ thèng, v×:
a. BXL kh«ng thÓ ®iÒu khiÓn ®îc tÊt c¶ c¸c TBNV
b. Tèc ®é trao ®æi, khu«n d¹ng d÷ liÖu kh¸c nhau
c. TÊt c¶ cã tèc ®é chËm h¬n BXL vµ RAM
d. TÊt c¶ c¸c ý ®Òu ®óng
6.4. §èi víi chøc n¨ng cña Modul vµo/ra, ph¸t biÓu nµo sau ®©y lµ sai:
a. §iÒu khiÓn vµ ®Þnh thêi gian
b. Mét Modul chØ nèi ghÐp ®îc víi mét TBNV
c. Trao ®æi th«ng tin víi BXL, víi TBNV
d. Bé ®Öm d÷ liÖu, ph¸t hiÖn lçi
6.6. §èi víi ph¬ng ph¸p vµo/ra c¸ch biÖt, ph¸t biÓu nµo sau ®©y lµ sai:
a. Kh«ng gian ®Þa chØ cæng kh«ng n»m trong kh«ng gian ®Þa chØ bé nhí
b. Dïng c¸c lÖnh truy nhËp bé nhí ®Ó truy nhËp cæng
c. TÝn hiÖu truy nhËp cæng vµ truy nhËp bé nhí lµ kh¸c nhau
d. Sö dông c¸c lÖnh vµo/ra trùc tiÕp
Trang 45/53
6.7. §èi víi ph¬ng ph¸p vµo/ra c¸ch biÖt, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Kh«ng gian ®Þa chØ cæng n»m trong kh«ng gian ®Þa chØ bé nhí
b. Dïng c¸c lÖnh truy nhËp bé nhí ®Ó truy nhËp cæng
c. Sö dông c¸c lÖnh vµo/ra trùc tiÕp
d. Dïng chung tÝn hiÖu truy nhËp cho c¶ bé nhí vµ cæng vµo/ra
6.8. §èi víi ph¬ng ph¸p vµo/ra theo b¶n ®å bé nhí, ph¸t biÓu nµo sau ®©y lµ sai:
a. Kh«ng gian ®Þa chØ cæng n»m trong kh«ng gian ®Þa chØ bé nhí
b. Dïng c¸c lÖnh truy nhËp bé nhí ®Ó truy nhËp cæng
c. CÇn cã tÝn hiÖu ph©n biÖt truy nhËp cæng hay bé nhí
d. Dïng chung tÝn hiÖu truy nhËp cho c¶ cæng vµ bé nhí
6.9. §èi víi ph¬ng ph¸p vµo/ra theo b¶n ®å bé nhí, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Kh«ng gian ®Þa chØ cæng n»m ngoµi kh«ng gian ®Þa chØ bé nhí
b. Ph¶i ph©n biÖt tÝn hiÖu khi truy nhËp bé nhí hay cæng vµo/ra
c. Sö dông c¸c lÖnh vµo/ra trùc tiÕp
d. Dïng c¸c lÖnh truy nhËp bé nhí ®Ó truy nhËp cæng
6.11. Víi ph¬ng ph¸p vµo/ra b»ng ch¬ng tr×nh (CT), ph¸t biÓu nµo sau ®©y lµ sai:
a. Dïng lÖnh vµo/ra trong CT ®Ó trao ®æi d÷ liÖu víi cæng
b. TBNV lµ ®èi tîng chñ ®éng trong trao ®æi d÷ liÖu
c. Khi thùc hiÖn CT, gÆp lÖnh vµo/ra th× CPU ®iÒu khiÓn trao ®æi d÷ liÖu víi TBNV
d. TBNV lµ ®èi tîng bÞ ®éng trong trao ®æi d÷ liÖu
6.12. Víi ph¬ng ph¸p vµo/ra b»ng ch¬ng tr×nh (CT), ph¸t biÓu nµo sau ®©y lµ ®óng:
a. §©y lµ ph¬ng ph¸p trao ®æi d÷ liÖu ®¬n gi¶n nhÊt
b. §©y lµ ph¬ng ph¸p trao ®æi d÷ liÖu nhanh nhÊt
c. ThiÕt kÕ m¹ch phøc t¹p
d. C¶ b vµ c ®Òu ®óng
6.13. Víi ph¬ng ph¸p vµo/ra b»ng ng¾t, ph¸t biÓu nµo sau ®©y lµ sai:
a. TBNV lµ ®èi tîng chñ ®éng trao ®æi d÷ liÖu
b. CPU kh«ng ph¶i chê tr¹ng th¸i s½n sµng cña TBNV
c. Modul vµo/ra ®îc CPU chê tr¹ng th¸i s½n sµng
d. Modul vµo/ra ng¾t CPU khi nã ë tr¹ng th¸i s½n sµng
6.14. Víi ph¬ng ph¸p vµo/ra b»ng ng¾t, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. TBNV lµ ®èi tîng chñ ®éng trong trao ®æi d÷ liÖu
b. Lµ ph¬ng ph¸p hoµn toµn xö lý b»ng phÇn cøng
Trang 46/53
6.16. C¸c ph¬ng ph¸p x¸c ®Þnh modul ng¾t gåm cã:
a. KiÓm tra vßng b»ng phÇn mÒm vµ phÇn cøng, chiÕm bus, chiÕm CPU
b. NhiÒu ®êng yªu cÇu ng¾t, kiÓm tra vßng b»ng phÇn mÒm, chiÕm bus, chiÕm bé
nhí
c. ChiÕm bus, kiÓm tra vßng b»ng phÇn cøng, nhiÒu ®êng yªu cÇu ng¾t, ng¾t mÒm
d. NhiÒu ®êng yªu cÇu ng¾t, kiÓm tra vßng b»ng phÇn mÒm vµ phÇn cøng, chiÕm
bus
6.17. Víi ph¬ng ph¸p nhiÒu ®êng yªu cÇu ng¾t (trong viÖc x¸c ®Þnh modul ng¾t), ph¸t
biÓu nµo sau ®©y lµ ®óng:
a. CPU cã mét ®êng yªu cÇu ng¾t cho c¸c modul vµo/ra
b. CPU ph¶i cã c¸c ®êng yªu cÇu ng¾t kh¸c nhau cho mçi modul vµo/ra
c. Sè lîng thiÕt bÞ cã thÓ ®¸p øng lµ kh¸ lín
d. CPU cã nhiÒu ®êng yªu cÇu ng¾t cho mçi modul vµo/ra
6.18. Víi ph¬ng ph¸p kiÓm tra vßng b»ng phÇn mÒm (trong viÖc x¸c ®Þnh modul ng¾t),
ph¸t biÓu nµo sau ®©y lµ ®óng:
a. BXL kiÓm tra mét lóc nhiÒu modul vµo/ra
b. Tèc ®é kh¸ nhanh
c. BXL thùc hiÖn kiÓm tra tõng modul vµo/ra
d. BXL thùc hiÖn phÇn mÒm kiÓm tra tõng modul vµo/ra
6.19. Víi ph¬ng ph¸p kiÓm tra vßng b»ng phÇn cøng (trong viÖc x¸c ®Þnh modul ng¾t),
ph¸t biÓu nµo sau ®©y lµ sai:
a. BXL ph¸t tÝn hiÖu chÊp nhËn ng¾t ®Õn chuçi c¸c modul vµo/ra
b. Modul vµo/ra ®Æt vect¬ ng¾t lªn bus d÷ liÖu
c. BXL dïng vect¬ ng¾t ®Ó x¸c ®Þnh CTC ®iÒu khiÓn ng¾t
d. TÊt c¶ ®Òu sai
6.20. H×nh vÏ díi lµ s¬ ®å cña ph¬ng ph¸p x¸c ®Þnh modul ng¾t nµo:
Trang 47/53
6.21. H×nh vÏ díi lµ s¬ ®å cña ph¬ng ph¸p x¸c ®Þnh modul ng¾t nµo:
Cê
yªu INTR
cÇu
ng¾t
6.22. H×nh vÏ díi lµ s¬ ®å cña ph¬ng ph¸p x¸c ®Þnh modul ng¾t nµo:
Bus d÷ liÖu
Cê
yªu INTR
cÇu
INTA
ng¾t
Trang 48/53
6.23. Víi h×nh vÏ díi ®©y, ph¸t biÓu nµo sau ®©y lµ ®óng:
6.24. Víi h×nh vÏ díi ®©y, ph¸t biÓu nµo sau ®©y lµ sai:
Trang 49/53
6.25. Víi h×nh vÏ díi ®©y, ph¸t biÓu nµo sau ®©y lµ ®óng:
6.26. Víi h×nh vÏ díi ®©y, ph¸t biÓu nµo sau ®©y lµ sai:
Trang 50/53
6.27. Víi ph¬ng ph¸p vµo/ra b»ng DMA, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Lµ ph¬ng ph¸p do CPU ®iÒu khiÓn trao ®æi d÷ liÖu
b. Lµ ph¬ng ph¸p kh«ng do CPU ®iÒu khiÓn trao ®æi d÷ liÖu
c. Lµ ph¬ng ph¸p ®îc thùc hiÖn b»ng phÇn mÒm
d. Lµ ph¬ng ph¸p trao ®æi d÷ liÖu gi÷a TBNV vµ CPU nhanh nhÊt
6.28. Víi ph¬ng ph¸p vµo/ra b»ng DMA, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. TBNV dïng tÝn hiÖu DACK ®Ó yªu cÇu trao ®æi d÷ liÖu
b. CPU dïng tÝn hiÖu DREQ ®Ó tr¶ lêi ®ång ý DMA
c. DMAC göi tÝn hiÖu HRQ ®Ó xin dïng c¸c ®êng bus
d. DMAC göi tÝn hiÖu HLDA ®Ó xin dïng c¸c ®êng bus
6.29. Víi ph¬ng ph¸p vµo/ra b»ng DMA, ph¸t biÓu nµo sau ®©y lµ sai:
a. Hoµn toµn do DMAC ®iÒu khiÓn trao ®æi d÷ liÖu
b. §©y lµ qu¸ tr×nh trao ®æi d÷ liÖu gi÷a TBNV vµ bé nhí
c. CPU kh«ng can thiÖp vµo qu¸ tr×nh trao ®æi d÷ liÖu
d. CPU vµ DMAC kÕt hîp ®iÒu khiÓn trao ®æi d÷ liÖu
6.30. Víi ph¬ng ph¸p vµo/ra b»ng DMA, ph¸t biÓu nµo sau ®©y lµ sai:
a. §©y lµ ph¬ng ph¸p cã tèc ®é trao ®æi d÷ liÖu chËm
b. §©y lµ ph¬ng ph¸p cã tèc ®é trao ®æi d÷ liÖu nhanh
c. Tríc khi ®iÒu khiÓn, DMAC ph¶i xin phÐp CPU
d. Nhu cÇu trao ®æi d÷ liÖu xuÊt ph¸t tõ TBNV
6.31. Cã c¸c kiÓu trao ®æi d÷ liÖu DMA nh sau:
a. DMA c¶ m¶ng, DMA theo khèi, DMA mét lÇn
b. DMA ¨n trém chu kú, DMA mét nöa, DMA trong suèt
c. DMA mét nöa, DMA ¨n trém chu kú, DMA c¶ m¶ng
d. DMA theo khèi, DMA ¨n tr«m chu kú, DMA trong suèt
6.32. §èi víi ng¾t cøng, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Cã hai lo¹i ng¾t cøng
b. Mäi ng¾t cøng ®Òu ch¾n ®îc
c. Mäi ng¾t cøng ®Òu kh«ng ch¾n ®îc
d. Ng¾t cøng MI lµ ng¾t kh«ng ch¾n ®îc
6.33. §èi víi ng¾t cøng, ph¸t biÓu nµo sau ®©y lµ sai:
a. Cã hai lo¹i ng¾t cøng
b. Mäi ng¾t cøng ®Òu ch¾n ®îc
c. Ng¾t cøng MI cßn gäi lµ ng¾t INTR
d. Ng¾t cøng MI lµ ng¾t ch¾n ®îc
6.34. §èi víi ng¾t mÒm, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Do BXL sinh ra
b. Do TBNV göi ®Õn
c. Do lÖnh ng¾t n»m trong ch¬ng tr×nh sinh ra
d. Kh«ng ph¶i lµ lÖnh trong ch¬ng tr×nh
Trang 51/53
6.35. §èi víi ng¾t mÒm, ph¸t biÓu nµo sau ®©y lµ sai:
a. Kh«ng do bé nhí sinh ra
b. Kh«ng do TBNV göi ®Õn
c. Kh«ng ph¶i lµ mét lÖnh trong ch¬ng tr×nh
d. Lµ mét lÖnh trong ch¬ng tr×nh
6.36. §èi víi ng¾t ngo¹i lÖ, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Lµ ng¾t do lçi ch¬ng tr×nh sinh ra
b. Lµ ng¾t tõ bªn ngoµi göi ®Õn
c. Lµ ng¾t tõ ROM göi ®Õn
d. Lµ ng¾t kh«ng b×nh thêng
6.37. §èi víi ng¾t ngo¹i lÖ, ph¸t biÓu nµo sau ®©y lµ sai:
a. LÖnh chia cho 0 sinh ra ng¾t ngo¹i lÖ
b. LÖnh sai có ph¸p sinh ra ng¾t ngo¹i lÖ
c. Trµn sè sinh ra ng¾t ngo¹i lÖ
d. Lçi bé nhí sinh ra ng¾t ngo¹i lÖ
6.38. C¸c bíc cña qu¸ tr×nh DMA diÔn ra theo thø tù sau ®©y:
a. DREQ -> HLDA -> DACK -> HRQ -> trao ®æi d÷ liÖu-> kÕt thóc
b. DREQ -> HRQ -> HLDA -> DACK -> trao ®æi d÷ liÖu-> kÕt thóc
c. HRQ -> HLDA -> DACK -> DREQ -> trao ®æi d÷ liÖu-> kÕt thóc
d. HRQ -> DACK -> DREQ -> HLDA -> trao ®æi d÷ liÖu-> kÕt thóc
6.39. §èi víi kiÓu DMA theo khèi, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Lóc nµo bus rçi th× truyÒn d÷ liÖu
b. BXL bÞ Ðp buéc treo t¹m thêi tõng chu kú bus
c. TruyÒn kh«ng liªn tôc tõng byte d÷ liÖu
d. TruyÒn xong hÕt d÷ liÖu míi tr¶ l¹i bus cho BXL
6.40. §èi víi kiÓu DMA theo khèi, ph¸t biÓu nµo sau ®©y lµ sai:
a. BXL nhêng hoµn toµn bus cho DMAC
b. BXL kh«ng bÞ Ðp buéc treo t¹m thêi tõng chu kú bus
c. TruyÒn kh«ng liªn tôc tõng nhãm 2 byte d÷ liÖu
d. TruyÒn xong hÕt d÷ liÖu míi tr¶ l¹i bus cho BXL
6.41. §èi víi kiÓu DMA ¨n trém chu kú, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. BXL vµ DMAC xen kÏ nhau sö dông bus
b. BXL sö dông bus hoµn toµn
c. DMAC sö dông bus hoµn toµn
d. Khi bé nhí rçi th× DMAC dïng bus
6.42. §èi víi kiÓu DMA ¨n trém chu kú, ph¸t biÓu nµo sau ®©y lµ sai:
a. DMAC chØ sö dông mét sè chu kú nµo ®ã cña bus
b. BXL kh«ng sö dông bus hoµn toµn
c. DMAC sö dông bus hoµn toµn
d. D÷ liÖu kh«ng ®îc truyÒn mét c¸ch liªn tôc
Trang 52/53
6.43. §èi víi kiÓu DMA trong suèt, ph¸t biÓu nµo sau ®©y lµ ®óng:
a. Khi DMAC kh«ng dïng bus th× BXL tranh thñ dïng bus
b. Khi BXL kh«ng dïng bus th× tranh thñ tiÕn hµnh DMA
c. BXL vµ DMAC xen kÏ dïng bus
d. BXL bÞ DMAC Ðp buéc nhêng bus
6.44. §èi víi kiÓu DMA trong suèt, ph¸t biÓu nµo sau ®©y lµ sai:
a. Khi DMAC kh«ng dïng bus th× BXL tranh thñ dïng bus
b. DMA ®îc tiÕn hµnh khi BXL kh«ng dïng bus
c. BXL vµ DMAC dïng bus xen kÏ nhau
d. BXL vµ DMAC kh«ng cïng mét lóc dïng bus
Trang 53/53