Professional Documents
Culture Documents
For Quiz 1:
2. The Institute shall provide a/an _____ in order for its students to acquire the attributes that will
make them globally competitive.
a. Research
b. Development
c. Learning Environment
d. Innovation
9. Points to a memory location in all versions of the microprocessor for memory data transfers.
a. Base Index
b. Data
c. Destination Index
d. Base Pointer
12. A Trap Flag enables trapping through an on-chip debugging feature. If T = ?, it will debug. If T = ?,
it will not debug.
a. 00,11
b. 11,00
c. 0,1
d. 1,0
13. It occurs when signed numbers are added or subtracted and indicates that the result has
exceeded the capacity.
a. Interrupt Flag
b. Overflow
c. Nested Task
d. Sign Flag
15. Memory is sometimes accessed, I/O devices are used to display the result of the instruction
execution.
a. Reset
b. Fetch
c. Decode
d. Execute
1.) It is a type of integrated circuit or chip and is the heart of every computer.
a. Monitor
b. Keyboard
c. Internet
d. Microprocessor
Ans. D
a. Gary Boone
b. Ted Hoff
c. Federico Faggin
d. Stan Mazor
Ans. A
a. Intel 4008
b. Intel 4004
c. Pentium 1
d. Intel 8008
Ans. B
a. American
b. Algorithm
c. African
d. Access
Ans. A
5. According to Moore’s law, the number or complexity of transistors per IC ______ every 2 years. a.
Triples
b. Quadruples
c. Doubles
Ans. C
Ans. A
a. Texas Instruments
b. Motorola
c. Intel
d. Samsung
Ans. C
a. Integrated
b. Integrator
c. Intel
d. Integral
Ans. B
a. 4th
b. 3rd
c. 2nd
d. 1 st
Ans. C
a. Integrated Electronics
b. Intelligence
c. Interrupt
Ans. A
A. Bits
B. Bytes
C. Kilobytes
D. Megabytes
ANS: B
2. A special parallel operation that is used to transfer data from a hard disk to a microcomputer’s
memory?
ANS: A
ANS. B
4. Intel CPUs are also called __________ computers, while Motorola processors are called __________
computers.
A. little endian; big endian
ANS. A
ANS. A
ANS. D
A. Double-Word
B. Long-Word
C. Word
D. Both A and B
ANS. D
A. 1959
B. 1961
C. 1967
D. 1973
ANS. A
9. This element is the one responsible in decoding the operation code of an instruction.
A. Instruction Encoder
B. Instruction Converter
C. Instruction Interpreter
D. Instruction Decoder
ANS. D
10. This element is the one responsible in monitoring the bus operation.
A. Bus Snooping
B. Watchdog Monitor
C. Branch Prediction
D. Address Bus
ANS. B
11. Simulate the given instructions (below) and determine which among the choices is correct.
MOV AL, 1F
MOV BL, F1
ADD AL, BL
ANS. B
12. Simulate the given instructions (below) and determine which among the choices is correct.
BL, F1
ADD AL, BL
ANS. A
13. Simulate the given instructions (below) and determine which among the choices is correct.
MOV AL, FF
MOV BL, 01
ADD AL, BL
CLC
CLI
ANS. D
14. A hardware ________ is an event that occurs while the processor is executing an instruction. It
temporarily suspends execution of the main program in favor of a special routine that services it. A.
Interrupt
B. Error
C. Restrict
D. Interject
ANS: A
15. A method that began with the 8-bit 8080 and has been used on all upgrades from the 8085 to the
Pentium is a technique called _____ ?
A. Byte-changer
B. Byte-swapping
C. Byte-swarming
ANS: B
Tarun, Nars-Icon Z.
COE121/B2
QUIZ #1
MULTIPLE CHOICE
a. subtracted
b. incremented
c. added
d. multiplied
ANS: b. INCREMENTED
2. This register works very closely with the instruction decoder of the control unit and stores all
instructions coming from the data bus
a. instruction register
b. segment register
c. index register
d. memory register
3. This element is always in phase with the clock system of the microprocessor
a. Program Counter
b. Timing
c. Little Endian
d. DMA
4. These are signals that indicate need of attention, perform special task and resume the pre-empted
operation.
a. address bus
c. interrupt
d. control logic
ANS: c. INTERRUPT
5. This is a group of lines that has a related function within a microprocessor system.
a. address bus
b. system bus
c. control bus
d. data bus
6. This element serves as a medium of communication between the processor and the outside world
a. i/o port
b. DMA
c. data segment
d. ALU
ANS: a. I/O PORT
a. control logic
b. watchdog monitor
c. instruction decoder
d. DMA
a. data segment
b. synchronization
c. flag
d. ALU
ANS: d. ALU
9. The first microprocessor was delivered by _____ with the help of Ted Hoff in 1971 a. Gordon Moore
b. Bill Gates
c. Paul Allen
d. Robert Noyce
10. Used in the first PC, the ALTAIR computer. Created at MITS by ED ROBERTS. No keyboard and
monitor. Can only be programmed in straight binary.
a. Intel 4004
b. Intel 8080
c. Intel 8088
d. Intel 8086
QUIZ #1
COE121 - B1
4Q1617
I. TRUE OR FALSE
1. The name of Japanese company that produces the first microprocessor that could carry
out calculator's functions is BUSICOM. TRUE
2. BCD or Bulk Coded Decimal is used as computing machines that performs simple
arithmetic operations? FALSE
4. A Transistor acts as logical switches in digital circuits. It replaced the vacuum tubes.
TRUE
5. INTEL 8081 is a microprocessor that used in the first pc or ALTAIR computer which
created by Ed Roberts. FALSE
II. IDENTIFICATION
1. He developed a single general-purpose chip that could be programmed to carry out calculator's
function. Ted Hoff
2. This is an 8-bit microprocessor that can handle a simple word processing and was developed in
1973. Intel 8080
3. This processor is considered as one of the XTs or experimental technologies. Intel 80186
4. This element is the one respolnsible in creating signals or commands for the execution of the
instruction. Control Logic
5. Base Index register is responsible in handling this type of address. Offset Address, Relative,
Displacement
6. If pin INTR is connected to the ground, which flag is affected? Interrupt Flag
7. This register is the one responsible in pointing to the address of the next instruction to be fetched
and executed. Program Counter
8. This element is the one responsible in decoding the operation code of an instruction. Instruction
Decoder
9. Which among the choices that does not serve as a pathway? Address Bus
10. This element is the one responsible in monitoring the bus operation. Watchdog Monitor
11. Which among the choices is not a software interrupt? Program Loader Failure
12. Which among the choices is not one of the categories of interrupts? Hardware Interrupt
13. These are signals that indicate need of attention, perform special task and resume the pre-
empted operation. Interrupts
14. This element serves as a medium of communication between the processor and the outside
world. I/O Port
15. This is a group of lines that has a related function within a microprocessor system. System Bus
16. This is very important because it signifies how powerful an Integrated Circuit is. Level of
Integration
17. Which of the following is not part of the Microprocessor? Memory
18. These are used to indicate status of the microprocessor and even control some of its features.
Flag
19. Which among the flags is affected by the direction flow during string operations? Direction Flag
20. The first practical IC was developed in this year. 1959
Using the given information in table #1 and determine which among the choices is correct.
6.HLT F4 1242
III. ENUMERATION
A) Give the Mission and Vision of Mapua Institute of Technology
42. Mapua shall be among the best universities in the world.
43.The institute shall provide a learning environment in order for its students to acquire
the attributes that will make them globally competitive.
44. The institute shall engage in economically viable research, development and
innovation.
45. The institute shall provide state-of-the-art solutions to problems of industries and
communities.
IV Matching Type A. Intel 4004
Quiz#2
Tanqueco, Samantha Aeriel Y. May 28, 2017 COE121/B2
Prof. Villamor
For Quiz 2:
CHAPTER 13,
. DMA controller
. DMA write
. DMA read
ans. D
2. The _____ is a four-channel device that is compatible with the 8086/8088 microprocessors. a.
8237
. 8141
. 8220
. 8188
ans. A
3. Clears the command, status, request, and temporary registers. It also clears the first/last flipflop and sets the mask register.
Clock Input
Reset Pin
Chip Select
Hold Acknowledge
ans. B
. Master Clear
https://canvas.instructure.com/courses/918717/quizzes/1176306 17/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
. Clear Mask Register
5. Often called a rigid disk or a fixed disk because it is not removable. a. Disk Memory
. Floppy Disk
. Hard Disk
. Memory Disk
Ans. C
CHAPTER 15,
6. The _____ bus is virtually the only bus found in the newest Pentium 4 systems and just about all the Pentium systems.
a. Industry Standard Architecture
b. Universal Serial
ans. D
b. 12 Mbps
c. 580 Mbps
d. 480 Mbps
ans. C
8. The _____ is a high-speed connection between the memory system and the video graphics card. a. Parallel Port
https://canvas.instructure.com/courses/918717/quizzes/1176306 18/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
b. Accelerated Graphics Port
d. Connector Port
ans. B
OTHER TOPICS,
b. Protected Mode
d. Address Mode
ans. D
10. Floating Point cannot be paired with a/an _____ and vice-versa. a. Integer
b. CISC
c. RISC
d. SIMD
ans. A
b. Must be Basic
ans. D
https://canvas.instructure.com/courses/918717/quizzes/1176306 19/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
b. State 1, State 2
c. State 2, State 3
d. State 0, State 3
ans. C
ANSWER: D
2. The state where the data requested for processing by a component or application is not found in the cache memory?
A. Cache Hit
B. Cache drop
C. Cache fluff
D. Cache miss
ANSWER: D
a3. Choosing to make the instruction set smaller using fewer instructions and simpler addressing codes was the decision of
____________ designers.
A. Computer
B. CISC
C. RISC
D. System
ANSWER: C
https://canvas.instructure.com/courses/918717/quizzes/1176306 20/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
ANSWER: D
B. Bus operation
C. Pipelining
D. Brach Prediction
ANSWER: A
ANSWER: D
https://canvas.instructure.com/courses/918717/quizzes/1176306 21/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
7. It is used to help maintain consistent data in a multiprocessor system where each processor has a separate cache.
A. TLBs
B. Triple Ported
C. Cache Coherency
D. Bus Snooping
ANSWER: D
ANSWER: D
9. It provides a way for other processors in a multiprocessor system to instantly take over the Pentium’s buses.
A. BOFF
B. Shutdown
C. Bus Hold
D. HALT
ANSWER: A
B. Pipelining
C. RISC D. CISC
ANSWER: B
https://canvas.instructure.com/courses/918717/quizzes/1176306 22/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
A. shutdown
B. restart
C. bus snooping
D. Debug
Ans. A
2. This data dependency exists if the second instruction reads an operand written to it by the first instruction.
A. write after read
B. execute
Ans. D
3. Bus ______ cycle is when the Pentium processor is able to watch the system bus in a multiprocessor system.
A. clearing
B. snooping
C. sweeping
D. cleaning
Ans. B
B. accuracy
C. precision
D. hit ratio
Ans. D
C. TTF
D. TLB Ans. D
6. This is a Pentium’s mechanism that is used to maintain cache coherency in its data cache.
A. TLB
B. TTL
C. TTF
https://canvas.instructure.com/courses/918717/quizzes/1176306 23/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
D. MESI
Ans. D
7. The state where the data requested for processing by a component or application is not found in the cache memory?
A. Cache Hit
B. Cache miss
C. Cache drop
D. Cache fluff
Ans. B
Ans. C
9. Choosing to make the instruction set smaller using fewer instructions and simpler addressing codes was the decision of
____________ designers.
A. Computer
B. CISC
C. RISC
D. System Ans C
10. As the Pentium also contains six 16-bit segment registers, 32-bit stack pointer, and eight ______. A. Floating point registers
B. Index registers
C. Control flags
D. Offset Addresses
Ans. A
11. A __________ allows a new 8-byte chunk to transfer every clock cycle.
A. Burst operation
B. Bus operation
C. Pipelining
D. Brach Prediction
Ans. A
12. Bus _______ input provides a second way for a different bus master to take control of the
https://canvas.instructure.com/courses/918717/quizzes/1176306 24/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
Pentium’s buses.
A. BOFF
B. HOLD
C. INTR
D. FLUSH
Ans. B
B. Third-level cache
C. Data cache
Ans. A
Ans. D
Ans. B
14. The state in which data requested for processing by a component or application is found in the cache memory?
A. Cache Hit
B. Cache miss
C. Cache Drop
D. Cache fluff
Ans. A
C. Address Cache
Ans. A
16. It is a technique used to enable one instruction to complete with each clock cycle.
A. Clock
B. Pipelining
C. Non-pipelining
D. Float Pointing
Ans. B
17. It is used to store frequently used instructions, such as those in a short loop.
A. Data Cache
B. Instruction Cache
C. Address Cache
Ans. B
18. It is a special type of high speed RAM where data and the address of the data are stored. A. Clock
B. Burst Ready
C. Cache
B. Halt
C. Pipelined
D. Inquire Ans. A
20. Compute for the number of clock cycles of the following instructions in UV pipelining.
ADD AX, CX
INC BX
https://canvas.instructure.com/courses/918717/quizzes/1176306 26/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
SUB BX, AX
MOV CX, BX
DEC CX
A. 8
B. 9
C. 10 D. 11
Ans. C
b. MMX
c. Superscalar
d. Xeon
Ans. A
b. SSE2
c. SSE3
d. SSE4
Ans. B
b. Intel Xeon
c. Pentium III
Ans. D
https://canvas.instructure.com/courses/918717/quizzes/1176306 27/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
Ans. D
b. instruction only
c. data only
d. code or data
Ans. A
CISC 9. High cycles per second RISC 10. Short or low cycles per
second Fill in the blanks.
COE121/B2
1. The prediction of whether a jump will occur or not, is based on the behavior of the _________.
2. _________ divides the instruction execution pipeline into the smaller stages.
3. _________ executes two or more instruction per clock cycle by using multiple execution units. 4.
What does MMX stand for? ___________
5. _________ is a new approach to processing S/W instructions that reduces idle processor time.
6. It is a processor that includes 4-way and 8-way, 2 Mbyte 2nd-level cache running on a dual-clock speed backside bus.
___________.
https://canvas.instructure.com/courses/918717/quizzes/1176306 28/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
7. What does SSE stand for? ______________.
9. Introduced dual-core technology that provides advanced H/W multi-threading support. ___________
10. SSE and SSE2 both support operations on 128-bit XMM register. True or False? ___________
14. How many stages of pipeline does a Hyper-Pipelined Technology has in order to enable high clock rates?
___________
15. In Branch Prediction, the _____________is designed to optimize the performance by handling the most common operations
in the most common context as fast as possible.
Answers:
1. Branch Prediction
2. Superpipelining
3. Superscalar
4. Multimedia Extension
5. Dynamic Execution
10. True
11. Micro-op
12. 1999
14. 20
QUIZ #3
https://canvas.instructure.com/courses/918717/quizzes/1176306 29/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
SET 1
2. In the real mode, show the starting and ending addresses of each segment located by the following segment register
values:
Solution:
a. Starting Address: 1000H x 10 = 10000H
Ending Address: 10000H + FFFF = 1FFFFH
3. Find the memory address of the next instruction executed by the microprocessor, when operated in the real mode,
for the following CS: IP and 80286 register combinations:
Solution:
a. 29870H + 1452H = 2ACC2H
b. 29000H + 3A00H = 2CA00H
c. A0000H + 1000H = A1000H
4. For a Core2 descriptor that contains a base address of 01000000H, a limit of 0FFFFH, and G = 0, what starting and
ending locations are addressed by this descriptor?
Solution:
Base address = 01000000H
Limit = 0FFFFH
G=0
5. For a Core2 descriptor that contains a base address of 28000000H, a limit of 00100H, and G = 1, what starting and
ending locations are addressed by this descriptor?
Solution:
Base address = 28000000H
Limit = 00100H
G=1
SET 2
1. The most common addressing mode that consists of a 16 bit constant that specifies the address of the target location:
a. Register addressing mode c. displacement-only addressing mode
b. Immediate addressing mode d. base plus index addressing mode
Answer : c.
2. What is the starting and ending address of the segment address, 3456H?
a. 3456∅H, 4455FH c. 6543∅H, 5545FH
b. 3546∅H, 4378FH d. 2134∅H, 4545FH
Answer: a.
3. What is the starting and ending address of the segment located by the segment register value, 1000H?
a. 12340H , 2233FH c. 12000H, 1FFFFH
b. E0000H, EFFFFH d. 10000H, 1FFFFH
Answer: d.
4. An addressing form in which the byte value to be used or retrieved in the instruction, is located immediately after the
opcode for the instruction itself.
a. Immediate addressing mode c. Direct addressing mode
b. Indirect addressing mode d. register addressing mode
Answer: a.
5. In this addressing mode, the data in a segment of memory are addressed by adding the displacement to the contents of a
base or an index register (BP, BX, DI, or SI).
a. Immediate addressing mode c. Indirect addressing mode
b. Register relative addressing mode d. Direct addressing mode
Answer: b.
https://canvas.instructure.com/courses/918717/quizzes/1176306 31/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
6. What segment address has the starting address of ABCD∅H and an ending address of BBCCFH?
a. BCDAH c. ABDCH
b. DACDH d. ABCDH
Answer: d.
7. Given CS=1000H and IP= 2000H, Find the memory address of the next instruction executed by the microprocessor.
a. 15000H c. 12000H
b. 12500H d.21000H
Answer: c.
8. This mode uses a register to hold the actual address that identifies either the source or the destination to be used in the
data move.
a. Indirect addressing mode c. Direct addressing mode
b. Register relative addressing mode d. Immediate addressing mode
Answer: a.
9. Given CS= 2000H and IP= 1000H, Find the memory address of the next instruction executed by the microprocessor.
a. 21000H c. 2100H
b. 22000H d. 12000H
Answer: a.
10. One must never use the segment registers as data registers to hold arbitrary values because:
a. They should only contain register addresses
b. The should only contain ending addresses
c. They should only contain segment addresses
d. They should only contain indirect addresses
Answer: c.
SET 3
1. Code a descriptor that describes a memory segment that begins at location 003F BA68H and ends at location 00DA 3FBDH.
The memory segment is a code segment and can’t be read. The instruction used is a 16-bit size. It is also assumed that the segment
has been accessed. What is byte number 0?
A. 85
B. 09
C. A8
D. 55
2. Given the following: Var3=8EB7, ECX=9D12, ESI=A97C D18AH, EDI=AC99 B558H, EBX-BE83 48E5H. Suppose that
DS=0046H, what will be the address/es accessed by the instruction MOV EBP, Var3 [ECX][EDI-E6B2H] assuming protected
mode?
A. 16A6F781A-16A6F781D
B. 16A6F781A
C. 16A6F781A-16A6F781C
https://canvas.instructure.com/courses/918717/quizzes/1176306 32/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
D. 16A6F781A-16A6F781B
5. Given the instruction MOV=CY[BP][CX+1024], AL, which among the segment registers has the highest priority?
A. Stack segment
B. Data segment
C. Code segment
D. Extra segment
6. This addressing mode moves a byte or a word between a register and a memory location addressed by an index register plus a
displacement.
A. Register relative
B. Base relative plus index
C. Direct addressing mode
D. Base plus index
7. This is an additional byte that appends to the front of an instruction to select an alternate segment register.
A. Displacement
B. Segment Register
C. Operand
D. Segment override prefix
8. Code a descriptor that describes a memory segment that begins at location 003F BA68H and ends at location 00DA 3FBDH.
The memory segment is a code segment and can’t be read. The instruction used is a 16-bit size. It is also assumed that the segment
has been accessed. What is byte number 0?
https://canvas.instructure.com/courses/918717/quizzes/1176306 33/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
A. B9
B. BC
C. 9D
D. BD
9. In real mode, this jump accesses any location within the first 1M byte of memory by changing both CS and IP.
A. Intrasegment Jump
B. Far Jump
C. Near Jump
D. Short Jump
10. This register defines the starting address of the section of memory holding code.
A. Segment Address
B. Code Segment
C. Memory
D. Program Address
11. In the case that the descriptor privilege level is given in the problem, which among the choices is true?
A. C is 0
B. DPL is 00
C. C is reset
D. C is set
12. Suppose that DS=E3DAH, SS=DB67H, BX=23FEH, DX=F8BCH, DI=87CCH, BP=AAE4H, SI=9FEBH, ER=DC45H, and
FI=C6FH. What will be the content/s of the destination by the instruction MOV FI[BP][SI][5FADH], DX?
A. 1B6EB
B. F8
C. F8BC
D. 1B6EB-1B6EC
13. Suppose that DS=E3DAH, ES=CF69H, SS=DB67H, AX=9BCDH, BX=23FEH, DX=F8BCH, DI=87CCH, BP=AAE4H,
SI=9FEBH, ER=DC45H, and FI=C6FH. What is the address accessed by the instruction MOV AH, ER[DI+BX]?
A. 9B
B. E7E9F-E7EA0
https://canvas.instructure.com/courses/918717/quizzes/1176306 34/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
B. CD
D. E7E9F
14. For a Pentium Pro descriptor that contains and address of 00DF 34EBH, a limit of 9DE5C, and G=1. What is the ending
address location addressed by this descriptor?
A. 9EC4F4EBH
B. 0DFD2D0CH
C.00E91347
D. 9EC504EAH
16. Code a descriptor that describes a memory segment that begins at location 003F BA68H and ends at location 00DA 3FBDH.
The memory segment is a code segment and can’t be read. The instruction used is a 16-bit size. It is also assumed that the segment
has been accessed. The privilege level is third to the lowest. What the limit?
A. 9A855
B. 009A8
C. 009A8
D. A8555
17. This refers to the location that is called or jumped to instead of the actual numeric address.
A. Label
B. Address Name
C. Heading
D. Directive
18. In the real mode, what is the ending address of the segment located by the segment register value F9A4H?
A. 1F9A3
B. E9A41
C. 109A3F
D. F9A40
https://canvas.instructure.com/courses/918717/quizzes/1176306 35/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
19. A SUB instruction stores a value BA67H at offset value BDEFH. If the computed address is 53DBFH, what will be the ending
address? Assume real mode operation.
A. 4AFD0
B. 5AFCF
C. 53DBF
D. 4BFCFF
20. An ADD instruction stores a value 7308h at offset value 9371h. If the computed address is 7CB31h, what will be the ending
address? Assume real mode operation.
A. 82BBFH
B. 72BC0H
C. 73BBFFH
D. 7CB31H
SET 4
Multiple Choice
4. TI means ______.
https://canvas.instructure.com/courses/918717/quizzes/1176306 36/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
a. Table Identifier
b. Table Indicator
c. Task Identifier
d. Task Indicator
a. Immediate addressing
b. Register addressing
c. Direct addressing
d. Register indirect
e. Based addressing
f. Index addressing
g. Base relative plus index addressing
h. Based index with displacement addressing
i. Scaled- index addressing
Determine whether the instruction is allowable or not: A- allowable / NA- not allowable
NA 1. MOV ES, DS
A 2. MOV AX, BX
NA 3. MOV CS, AX
A 4. MOV [BX], CL
NA 5. MOV [DI], [BX]
https://canvas.instructure.com/courses/918717/quizzes/1176306 37/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
SET 5
1.) The source file is converted into an __________ wherein it contains all the actual binary information.
A. Machine code
B. Pseudo-opcode
C. List file
D. Object file
Ans: D
2.) An _________ is a special program that will understand the contents of the object file/
A. Assembler
B. Compiler
C. Linker
D. Library
Ans: A
3.) This type of assemblers work with one source line at a time and are restricted in operation.
A. One-liner-assemblers
B. Special-assemblers
C. Cross-assemblers
D. Single-line-assemblers
Ans: D
4.) ______ contains many new pseudocodes to help the assembler generate the correct machine code for the object file.
A. Module
B. Operands
C. Segments
D. Linker
Ans: C
5.) Data transfer group contains instructions that transfer from ____________.
A. Memory to register, register to memory, memory to memory, register to register
B. Memory to memory, register to register, register to memory
C. Memory to memory, memory to register, register to memory
D. Memory to register, register to register, register to memory
Ans: D
6.) A _____ is a collection of bytes stored sequentially in memory, whose length can be up to _______.
A. String, 64KB
B. String, 8KBytes
C. Char, 1KB
D. Char, 64KB
Ans: A
https://canvas.instructure.com/courses/918717/quizzes/1176306 38/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
8.) Address is referred to ________ when the processor’s address bus is formed by some combination of segment register and
an additional numerical offset.
A. Effective Address
B. Immediate Addressing
C. Register Addressing
D. Base Addressing
Ans: A
12.) Base registers, BX or BP, is used as a pointer to the desired memory location in this type of addressing.
A. Indirect Addressing
B. Base Addressing
C. Register Addressing
https://canvas.instructure.com/courses/918717/quizzes/1176306 39/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
D. Immediate Addressing
Ans: B
16.) It is an addressing mode in which the data operand is a part of the instruction itself.
A. Implied Mode
B. Immediate Mode
C. Direct Mode
D. Register Mode
Ans: B
D. MOV CX, AX
Ans: A
https://canvas.instructure.com/courses/918717/quizzes/1176306 40/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
A. MOV CX, AX
Ans: B
B. MOV CX, AX
Ans: A
A. MOV CX, AX
Ans: A
SET 6
1. What is the starting and ending address of the segment address 2345?
Solution:
+ FFFF
________
3344F – Answer
https://canvas.instructure.com/courses/918717/quizzes/1176306 41/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
2. Find the memory address of the next instruction executed by the microprocessor, when operated in the real mode, for the
combination
Solution:
20000
+ABCD
_____
2ABCDH – Answer
3. If the base pointer (BP) addresses memory, the ________ segment contains the data.
Ans: STACK
4. The PUSH and POP instructions always transfer a_______________-bit number between the stack and a register or memory
location in the 8086 microprocessors.
Ans: 16
5. ___________ transfers the source immediate byte or word of data into the destination register or memory location.
6. The addressing mode in which the effective address of the memory location is written directly in the instruction.
A. Implied Mode
B. Immediate Mode
C. Direct Mode
D. Register Mode
Ans: C
7. The addressing mode, in which the instructions has no source and destination operands is
a) register instructions
c) direct addressing
d) indirect addressing
Ans: B
https://canvas.instructure.com/courses/918717/quizzes/1176306 42/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
8. The data address of look-up table is found by adding the contents of
Ans: B
Answer: A
10. _____ addressing mode is most suitable to change the normal sequence of execution of instructions.
a) Relative
b) Indirect
d) Immediate
Ans: A
Quiz#4
Due Mar 25 at 11:59pm Points 144 Questions 48 Available Mar 24 at 11pm - Mar 25 at 12:30am about 2 hours Time Limit 90 Minutes
Attempt History
Attempt Time Score
https://canvas.instructure.com/courses/918717/quizzes/1176306 43/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
Question 4 2 / 2 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 44/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
This mnemonic instruction logically multiply the content of the count register and the data contained in the offset address DF45H. The instruction
accesses the stack segment. The result will be stored in the count register.
OR CX, SS:[DF45]
INC SS:[DF45]
AND CX,SS:[DF45]
Question 5 2 / 2 pts
This mnemonic instruction jumps to a memory location labelled as CYREL without satisfying any condition.
JMP CYREL
JNZ CYREL
BRE CYREL
JUMP CYREL
Question 6 2 / 2 pts
This mnemonic instruction logically add the data stored 37 bytes after the location addressed by the base index register. The result will be saved
at the higher data register.
OR DH. [DI+37]
OR DH, [BX37]
Question 7 2 / 2 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 45/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
This mnemonic instruction subtracts the data addressed formed by the data index register from the lower data register.
SUB [DI], DL
SUB [DL], DI
https://canvas.instructure.com/courses/918717/quizzes/1176306 46/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
https://canvas.instructure.com/courses/918717/quizzes/1176306 47/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
AL=36
Question 12 5 / 5 pts
What is the final content of the accumulator after executing the instruction SHR AL, 5. Given AL= 1100 0110; C=1.
AL=36
AL=FE
AL=B1
AL=6E
Question 13 5 / 5 pts
What is the final content of the accumulator after executing the instruction SAR AL, 3. Given AL= 1100 0110; C=1.
AL=F1
AL=F8
AL=B8
AL=D8
What is the final content of the accumulator after executing the instruction ROR AL, 3. Given AL= 1100 0110; C=1.
AL=D8
AL=F8
AL=B8
AL=C8
Question 15 5 / 5 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 48/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
What is the final content of the accumulator after executing the instruction RCR AL, 5. Given AL= 1100 0110; C=1.
AL=36
AL=3E
AL=FE
AL=6E
Question 16 5 / 5 pts
What is the final content of the accumulator after executing the instruction ROL AL, 2. Given AL= 1100 0110; C=1.
AL=18
AL=31
AL=F1
AL=1B
Question 17 4 / 4 pts
33 C0
33 D2
32 C0
32 D2
Question 18 4 / 4 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 49/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
8956
8953
8955
8952
Question 19 4 / 4 pts
9. JMP ACE
10. HLT
2BD 6
2B16
2B96
2B56
Question 20 4 / 4 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 50/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
2. MOV [DI+BP+29h], DX
5. DEC DX
6. JNZ SPADE
7. XOR AX, AX
8. MOV AX, DX
9. JMP ACE
10. HLT
03 D4
0354
0314
Question 23 4 / 4 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 51/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
0394
Question 21 2 / 2 pts
9. JMP ACE
10. HLT
42
F1
F2
43
Question 22 4 / 4 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 52/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
From the given program, what is the handcode equivalent of line 6.
1. ACE: XOR DX,DX
2. MOV [DI+BP+29h], DX
3. SUB DX, [7654h]
4. SPADE: ADD DX, [SI+ADh]
5. DEC DX
6. JNZ SPADE
7. XOR AX, AX
8. MOV AX, DX
9. JMP ACE
10. HLT
75FA
75 F 7
75 FB
75 FF
Question 24 1 / 1 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 53/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
From the given program, what is the handcode equivalent of line 8.
1. ACE: XOR DX,DX
2. MOV [DI+BP+29h], DX
3. SUB DX, [7654h]
4. SPADE: ADD DX, [SI+ADh]
5. DEC DX
6. JNZ SPADE
7. XOR AX, AX
8. MOV AX, DX
9. JMP aCE
10. HLT
8 BD0
89 DC
8 BC2
89 C 2
Question 25 4 / 4 pts
5. DEC DX
6. JNZ SPADE
7. XOR AX, AX
8. MOV AX, DX
9. JMP ACE
10. HLT
E9F0FF
E9F0
EBF0FF
EBF0
Question 26 2 / 2 pts
From the given program, what is the handcode equivalent of line 10.
ACE: XOR DX,DX
1.
https://canvas.instructure.com/courses/918717/quizzes/1176306 54/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
2. MOV [DI+BP+29h], DX
5. DEC DX
6. JNZ SPADE
7. XOR AX, AX
8. MOV AX, DX
9. JMP ACE
10. HLT
F1
F3
F2
F4
Question 27 2 / 2 pts
10. HLT
FFF0
F0
F0FF
FF
https://canvas.instructure.com/courses/918717/quizzes/1176306 55/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
Question 28 2 / 2 pts
From the given program, at what address does the instruction 3 is located?
1. ACE: XOR DX,DX
2. MOV [DI+BP+29h], DX
3. SUB DX, [7654h]
4. SPADE: ADD DX, [SI+ADh]
5. DEC DX
6. JNZ SPADE
7. XOR AX, AX
8. MOV AX, DX
9. JMP ACE
10. HLT
0006-0007
0005-0007
0005-0006
0004-0005
Question 29 2 / 2 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 56/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
2. MOV [DI+BP+29h], DX
5. DEC DX
6. JNZ SPADE
7. XOR AX, AX
8. MOV AX, DX
9. JMP ACE
10. HLT
0009-000B
0008-0009
0008-000 A
0009-000 A
Question 30 2 / 2 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 57/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
2. MOV [DI+BP+29h], DX
5. DEC DX
6. JNZ SPADE
7. XOR AX, AX
8. MOV AX, DX
9. JMP ACE
10. HLT
0002-0004
0002-0003
0003-0004
0000-0003
000 B-000C
000 D-000F
000 F- 0010
000 D-000E
Question 31 2 / 2 pts
Question 33 1 / 1 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 58/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
2. MOV [DI+BP+29h], DX
5. DEC DX
6. JNZ SPADE
7. XOR AX, AX
8. MOV AX, DX
9. JMP ACE
10. HLT
0009
000 A
0008
000 B
Question 32 2 / 2 pts
0004-0006
0004-0005
0006-0007
0006-0008
Question 35 2 / 2 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 59/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
Question 34 1 / 1 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 60/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
From the given expression and program, determine the missing instruction (1) to accomplish the given task.
____________ (1)
MUL BL
PUSH AX
XOR AX, AX
____________ (2)
SUB AL,DL
ADD AX,DX
PUSH AX
XOR AX,AX
____________ (7)
DIV BL
POP AX
MOV BH,0h
MOV, BL,0B
XOR BL, BL
Question 36 2 / 2 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 61/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
From the given expression and program, determine the missing instruction (2) to accomplish the given task.
____________ (1)
MUL BL
PUSH AX
XOR AX, AX
____________ (2)
SUB AL,DL
ADD AX,DX
PUSH AX
XOR AX,AX
____________ (7)
DIV BL
POP AX
MOV BH,0h
SUB AX, BX
XOR BX, BX
Question 37 2 / 2 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 62/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
From the given expression and program, determine the missing instruction (3) to accomplish the given task.
DIV BL
DIV AL
SUB AX, BL
Question 38 2 / 2 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 63/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
From the given expression and program, determine the missing instruction (4) to accomplish the given task.
https://canvas.instructure.com/courses/918717/quizzes/1176306 64/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
Question 39 2 / 2 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 65/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
From the given expression and program, determine the missing instruction (5) to accomplish the given task.
____________ (1)
MUL BL
PUSH AX
XOR AX, AX
____________ (2)
SUB AL,DL
ADD AX,DX
PUSH AX
XOR AX,AX
____________ (7)
DIV BL
POP AX
MOV BH,0h
MOV AH, 00
MOV AL, 00
XOR AX, AX
Question 40 2 / 2 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 66/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
From the given expression and program, determine the missing instruction (6) to accomplish the given task.
____________ (1)
MUL BL
PUSH AX
XOR AX, AX
____________ (2)
SUB AL,DL
ADD AX,DX
PUSH AX
XOR AX,AX
____________ (7)
DIV BL
POP AX
MOV BH,0h
POP DX
POP DL
POP DH
PUSH DX
Question 41 2 / 2 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 67/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
From the given expression and program, determine the missing instruction (7) to accomplish the given task.
____________ (1)
MUL BL
PUSH AX
XOR AX, AX
____________ (2)
SUB AL,DL
ADD AX,DX
PUSH AX
XOR AX,AX
____________ (7)
DIV BL
POP AX
MOV BH,0h
MOV B0, AX
MOV AH, B0
MOV AL, B0
MOV AX, B0
Question 42 2 / 2 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 68/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
From the given expression and program, determine the missing instruction (8) to accomplish the given task.
____________ (1)
MUL BL
PUSH AX
XOR AX, AX
____________ (2)
SUB AL,DL
ADD AX,DX
PUSH AX
XOR AX,AX
____________ (7)
DIV BL
POP AX
MOV BH,0h
ADD AH, 8E
ADD AL, 8E
ADD AH,008E
Question 43 2 / 2 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 69/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
From the given expression and program, determine the missing instruction (9) to accomplish the given task.
____________ (1)
MUL BL
PUSH AX
XOR AX, AX
____________ (2)
SUB AL,DL
ADD AX,DX
PUSH AX
XOR AX,AX
____________ (7)
DIV BL
POP AX
MOV BH,0h
MOV AL, BL
MOV BL, AL
MOV BL, AH
MOV AH, BL
Question 44 2 / 2 pts
From the given expression and program, determine the missing instruction (10) to accomplish the given task.
https://canvas.instructure.com/courses/918717/quizzes/1176306 70/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
Question 45 5 / 5 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 71/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
ter simulating the
Question 46 5 / 5 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 72/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
ter simulating the
After determining the missing instructions to accomplish the given task, what will be the final content of the register BX af
whole program?
____________ (1)
MUL BL
PUSH AX
XOR AX, AX
____________ (2)
SUB AL,DL
ADD AX,DX
PUSH AX
XOR AX,AX
____________ (7)
DIV BL
POP AX
MOV BH,0h
0096
00 C6
004 A
0016
Question 47 5 / 5 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 73/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
ter simulating the
After determining the missing instructions to accomplish the given task, what will be the final content of the register DX af
whole program?
____________ (1)
MUL BL
PUSH AX
XOR AX, AX
____________ (2)
SUB AL,DL
ADD AX,DX
PUSH AX
XOR AX,AX
____________ (7)
DIV BL
POP AX
MOV BH,0h
ACB1
00 C6
0004
AD47
Question 48 5 / 5 pts
https://canvas.instructure.com/courses/918717/quizzes/1176306 74/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
ter simulating the
After determining the missing instructions to accomplish the given task, what will be the final content of the stack after si mulating the whole
program?
____________ (1)
MUL BL
PUSH AX
XOR AX, AX
____________ (2)
SUB AL,DL
ADD AX,DX
PUSH AX
XOR AX,AX
____________ (7)
DIV BL
POP AX
MOV BH,0h
zero
AD47
00 C6
none
Quiz
Score:
139
https://canvas.instructure.com/courses/918717/quizzes/1176306 75/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
ter simulating the
out of
144
COE121/B2
Prof. Villamor
For Quiz 4:
1. 1 0 0 0 1 0 0 0 1 1 0 0 0 0 1 1
Solution:
011-BL
https://canvas.instructure.com/courses/918717/quizzes/1176306 76/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
ter simulating the
2.
1 0 0 0 1 0 1 1 0 0 0 0 0 1 1 1
0 0 0 1 0 0 0 0 1 0
0
0 0 0 0 0
0 0 1 1 0 1 0 0 0 0 0 1 0 0 1 0
Solution:
https://canvas.instructure.com/courses/918717/quizzes/1176306 77/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
ter simulating the
3. It is the native binary code that the microprocessor understands and uses as its
instructions to control its operation.
a. Machine Language b. Data Language c. Data Code d. Machine Code
Answer: A
4. The first 2 bytes of the 32-bit instruction mode format are called ______ because they
are not always present.
a. overall prefixes c. overhaul prefixes
b. override prefixes d. overwrite prefixes
Answer: B
5. The ______ selects the operation (addition, subtraction, move, and so on) that is
performed by the microprocessor.
a. Encoder c. Decoder
b. Segment Register d. Opcode
Answer: D
6. If the direction bit (D)=1, data flow to the register REG field from the R/M field located
in the second byte of an instruction.
a. from, to c. to, from
b. to, within d. None of the above
Answer: C
https://canvas.instructure.com/courses/918717/quizzes/1176306 78/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
ter simulating the
11. If the MOD field contains a 00, 01, or 10 and R/M Code is 111, the addressing mode is
____.
a. DS:[BX+SI] c. DS:[DI]
b. DS:[BX+DI] d. DS:[BX]
Answer: D
12. If the MOD field contains a 00, 01, or 10 and R/M Code is 000, the addressing mode is
____.
a. DS:[BX+SI] c. DS:[DI]
b. DS:[BX+DI] d. DS:[BX]
Answer: A
13. If the MOD field contains a 00, 01, or 10 and R/M Code is 001, the addressing mode is
____.
a. DS:[BX+SI] c. DS:[DI]
b. DS:[BX+DI] d. DS:[BX]
Answer: B
14. In 32-bit addressing modes selected by R/M, if the R/M code is 000 the function is
_____.
a. DS:[EAX] c. Uses scaled-index byte
b. DS:[EBX] d. DS:[EDI]
Answer: A
15. In 32-bit addressing modes selected by R/M, if the R/M code is 100 the function is
_____.
a. DS:[EAX] c. Uses scaled-index byte
b. DS:[EBX] d. DS:[EDI]
Answer: C
16. In 32-bit addressing modes selected by R/M, if the R/M code is 111 the function is
_____.
a. DS:[EAX] c. Uses scaled-index byte
b. DS:[EBX] d. DS:[EDI]
Answer: D
https://canvas.instructure.com/courses/918717/quizzes/1176306 79/80
4/21/2015 Quiz4-COE121B2/Q320142015: COE121 B2 (Q320142015)
ter simulating the
17. The ________ directive indicates to the assembler that the instruction uses a word-sized
memory pointer
a. WORD PTR c. WORD PTR
b. BYTE PTR d. BYTE PTR
Answer: A
18. In Segment register selection, if the code is 000, the segment register is ______.
a. ES c. SS
b. CS d. GS
Answer: A
19. In Segment register selection, if the code is 010, the segment register is ______.
a. ES c. SS
b. CS d. GS
Answer: C
20. In Segment register selection, if the code is 101, the segment register is ______.
a. ES c. SS
b. CS d. GS
Answer: D
https://canvas.instructure.com/courses/918717/quizzes/1176306 80/80