MPMC - QB
MPMC - QB
PROGRAMMING OF 8086
CONTROL
UNIT 1
Multiple Choice Questions
1. One of these is an index register [ ]
(a) BP (b) SI (c) DX (d) PC
2. Which of these is an 8 bit register? [ ]
(a) DX (b) CX (c) BX (d) AH
3. The flag which indicates whether the numbers of 1s are odd or even in the lower 8 bits is [ ]
(a) CY (b) Z (c) PF (d) SF
4. Which of these bits is used specially in packed BCD arithmetic? [ ]
(a) DF (b) CY (c) AC (d) OF
5. EA is used to represent Effective address then what addressing mode does EA = [2000H]
Represent [ ]
(a) Register Direct (b) Register indirect (c)Directing Addressing (d)
immediate addressing
6. The width of the SP register in 8086 is [ ]
(a) 32 bits (b) 8 bits (c) 24 bits (d) 16 bits
7. The flags used for masking the interrupts is [ ]
(a) TF (b) AC (c) DF (d) IF
8. Which of these flags indicates a carry from a nibble? [ ]
(a) CY (b) Z (c) DF (d) AC
9. The size of the 8086 flag register is [ ]
(a) 32 bits (b) 16 bits (c) 8 bits (d) 64 bits
10. One of the following is wrong combination of registers [ ]
(a) ES:DS (b) DS:SP (c) DS:SS (d) CS:IP
Answers
1. B 2. D 3. C 4. C 5. C 6. D 7. D 8. D 9. B 10. A
MOV AX, 2
MOV DX, 0FH
AGAI N: MOV CX, 0FFH DEC DX
LOOP AGAIN
15. The instruction, MOV AX, 0005H belongs to address mode
16. What is the 8086 instruction format OPCODE ,
17. In the following program what is the value of CX after the loop is executed
MOV AX,2
MOV DX,0FFFh
MOV CX,10
AGAIN:DEC DX
JNZ AGAIN
18. EA is used to represent Effective address then what addressing mode does EA=[Reg] Represent
19. What is the stack operation performed when POP instruction is executed
20. What is the instruction used for searching a byte in a string
ANSWERS:
11 12 13 14 15 16 17 18 19 20
Decrement the ZF=0 STOSB FFH Immidiate Destination 0AH Register Read the dataSCASB
SP by 2 and and or 255 Operand, or 10 Indirect from SS:SP
Write the data CF=1 Source and Increment
to SS:SP Operand the SP by 2
and
UNIT 2
Multiple Choice Questions
1. Which one of the following is the 8051 architecture based upon? [ ]
(a) Princeton Architecture (b) Param Architecture
(c) Harvard Architecture (d) Von Neumann Architecture
2. General purpose registers R0 to R7 can be referred as sets of four banks (0to3) and also by
memory location. If a register R3 in Bank2 is referred, what is its internal ram location address?
[ ]
(a) 14H (b) 10H (c) 12H (d) 13H
3. Timer0 is functional as two 8 bit timers while Timer1 is stopped in which of the following
modes? [ ]
(a) Mode2 (b) Mode1 (c) Mode3 (d) Mode0
4. Which of the following is the correct order of priority in decreasing order from left to right? [
]
(a) EX0,EX1,ET0,ET1,ES, (b) ES,EX1,ET0,E01,ET1
(c) ET0,EX0,ET1,EX1,ES (d) EX0,ET0,EX1,ET1,ES
5. One of these signals indicates that address is available on Port0? [ ]
(a) EA (b) RESET (c) ALE (d) PSEN
6. The 8051 microcontroller does not have one of the following as it’s built in peripheral?
[ ]
(a) Timers (b) Counters (c) UART (d) DMA controller
7. One of these registers is loaded with the upper byte of the terminal count? [ ]
(a) THx (b) TMOD (c) TLx (d) TCON
8. The bit which disables reception of serial data is which one of the following? [ ]
(a) RB8 (b) TB8 (c) RI (d) REN
9. The upper 128 bytes of an internal data memory from 80H through FFH usually represent[ ]
(a) General-purpose registers (b) Special function registers
(c) Stack pointers (d) Program counter
10. How are the bits of the register PSW affected if we select Bank2 of 8051? [ ]
(a) PSW.5=0 and PSW.4=1 (b) PSW.2=0 and PSW.3=1
(c) PSW.3=1 and PSW.4=1 (d) PSW.3=0 and PSW.4=1 ANSWERS
1. C 2. D 3. C 4. D 5. C 6. D 7. A 8. D 9. B 10. D
ANSWERS:
11 12 13 14 15 16 17 18 19 20
(2) MOV 16 8 16 ALU PORT0 TMOD.6 of C/T for TMOD PORT2
PC and bits bits bytes timer1 and TMOD.2 of
DPTR C/T for timer0
UNIT 3
Multiple Choice Questions
ANSWERS
1. D 2. A 3. B 4. D 5. B
6.b 7. a 8. b 9. c 10. a
11. Which pin of the LCD is used for adjusting its contrast
12. How many rows and columns are present in a 16*2 alphanumeric LCD
13. What is the maximum delay that can be generated with the crystal frequency of 22MHz
14. In the instruction “MOV TH1,#-3”, what is the value that is being loaded in the TH1 register
15. For writing commands on an LCD, RS bit is
16. I2C-bus stands for
17. UART stands for
18. USB stands for
19. SPI-bus stands for
20. In serial communication transmitters and receivers are not synchronized by clock.
ANSWERS:
11 12 13 14 15
Pin 3 rows=2, 2.97 msec 0xFDH reset
columns=16 Explanation:
FFFFH/f
(65536/22MHz =
2.97 mili sec)
16.Inter Integrated 17. Universal 18. Universal Serial Bus 19. Serial 20.
Circuit bus Asynchronous Peripheral Asynchronous
Recelver- Interface
Tansmitter
UNIT 4
Multiple Choice Questions:
UNIT-5
Answers
1.d 2. b 3. c 4. b 5. b
6.a 7. b 8. a 9. b 10. b
Answers
11.Nested Vector 12. Handler and 13. privileged or 14. privileged 15.Thumb state and
Interrupt Controller Thread user Debug state
16. 240 17. Main Stack 18. Process Stack 19. Open 20. OMAP
Pointer(MSP) Pointer (PSP) Multimedia
Application
Platform