Microprocessor (KCS-403) Question Bank
Microprocessor (KCS-403) Question Bank
Microprocessor (KCS-403) Question Bank
c) RESET
d) None of these
10) PROM stands for:
a) Programmable read-only memory
b) Programmable read write memory
c) Programmer read and write memory
d) None of these
17) Which of the following are the two main components of the CPU?
a) Control Unit and Registers
b) Registers and Main Memory
c) Control unit and ALU
d) ALU and Bus
18) The language that the computer can understand and execute is called
MICROPROCESSOR (KCS 403)
a) Machine language
b) Application software
c) System program
d) All of the above
19) Which of the following memories needs refresh?
a) SRAM
b) DRAM
c) ROM
d) ALL of the above
20) The memory which is programmed at the time it is manufactured
a) PROM
b) RAM
c) PPROM
d) EPROM
21) The first microprocessor built by the Intel Corporation was called
a) 8008
b) 8080
c) 4004
d) 8800
22) Which is the type of memory for information that does not change on
your computer?
a) RAM
b) ROM
c) ERAM
d) RW/RAM
23) Which company is the biggest player in the microprocessor industry?
a) Motorola
b) IBM
c) INTEL
d) AMD
24) The term giga byte refers to
a) 1024 bytes
b) 1024 kilobytes
c) 1024 megabytes
d) 1024 gigabytes
25) 4GB ROM consist of
a) 12 Address lines
b) 32 Address lines
c) 4 Address lines
d) 10 Address lines
26) Which 3x8 decoder IC used for interfacing
a) 74HS13
MICROPROCESSOR (KCS 403)
b) 74LS17
c) 74LS138
d) 9955
27) FFH equivalent to in binary
a) 00001111
b) 11001100
c) 11001111
d) 11111111
28) Universal logic gates are
a) AND, OR
b) OR, NOT
c) NAND, NOR
d) NAND, OR
29) C and C++ is
a) Low level language
b) High level language
c) Assembly level language
d) None of these
30) 32-bit microprocessor consist
of
a) 32 data lines
b) 16 data lines
c) 32 address lines
d) 16 address lines
31. 8085 microprocessor Instruction LHLD 1234H is having following Addressing Mode:
a) It is used to provide WAIT states when the 8085 is communicating with a slow
peripheral device.
be:
a) 1 machine cycle
b) 3 machine cycles
c) 5 machine cycles
d) 2 machine cycles
34. Number of T states required to execute JMP 5012H instruction is:
a) 10
b) 16
c) 13
d) 7
35. If Register A=59H and Register D= 4DH then after execution of ADD D value of Carry
and Zero flag will be:
a)CF= 0, ZF=0
b) CF= 0, ZF=1
c) CF= 1, ZF=0
d) CF= 1, ZF=1
36. In memory read machine cycle in 8085 , values of status signals are :
a) S0= 0, S1=0
b) S0= 1, S1=0
c) S0= 0, S1=1
d) S0= 1, S1=1
37. Memory handling capacity of 8085 microprocessor is:
a) 64 KB
b) 1MB
c) 16 MB
MICROPROCESSOR (KCS 403)
d) 4 MB
c) part of the block diagram that a programmer can affect using the instruction set
a) 3MHz
b) 1Hz
c) 2Hz
d) 3KHz
40. The vector address of TRAP is
a) 0024H
b) 0038H
c) 002AH
d) 0020H
41. Non-Maskable Interrupt is
a) RST 7.5
b) RST 5.5
c) INTR
d) TRAP
42. Which pin is used for de-multiplexing of buses
a) ALE
b) BHE
MICROPROCESSOR (KCS 403)
c) RD
d) WR
43. The instruction size of LDA 3000H is
a) 3 Byte
b) 2 Byte
c) 1 Byte
d) 4 Byte
44. Example of Immediate addressing mode is
a) STA 3000H
b) LDA 3000H
c) MVI A, 32H
d) HLT
45. 8085 consist of I/O ports:
a) 256
b) 128
c) 32
d) 8
46. 8085 consist of address lines:
a) 24
b) 16
c) 8
d) 32
47. SP and PC are known as
a) Carry
b) Sign
c) Zero
d) Parity
49. INR A is used for
d) Decrement accumulator
50. Temp. registers in 8085 are
a) W and Z
b) X and Y
c) A and B
d) Y and Z
51. For 8085, the size of accumulator is
a) 4-bit
b) 8-bit
c) 16-bit
d) 24-bit
52. For 8085, the size of PC is
a) 4-bit
b) 8-bit
MICROPROCESSOR (KCS 403)
c) 16-bit
d) 24-bit
53. Which is not flag in 8085
a) Carry
b) Sign
c) Direction
d) Zero
a) H and L
b) W and Z
c) B and C
d) D and E
56. 8085 operating voltage is
a) +5V
b) -5V
c) +10V
d) -3V
57. HOLD and HLDA pins are related to
c) DMA
d) None of these
58. Which machine cycle is used for fetching the data from input location:
a) Opcode fetch
b) I/O Read
c) I/O write
d) I/O fetch
59. Memory read consist of
a) 3T
b) 4T
c) 5T
d) 6T
60. After execution of MVI A, 00H, accumulator consist of
a) 32H
b) 00H
c) 24H
d) None of these
61. To execute one instruction at a time (single stepping execution) following flag bit is
used in 8086 microprocessor
a) Trap Flag
b) Interrupt Flag
c) Direction Flag
d) Overflow Flag
62. The maximum size of each segment in memory segmentation of 8086 is:
MICROPROCESSOR (KCS 403)
a) 16 KB
b) 32 KB
c) 48 KB
d) 64 KB
63. In 8086 one of the following statement is not true:
a) 51003H
b) 51004H
c) 51005H
d) 51003H or 51005H.
65. In 8086 Microprocessor Overflow flag will set when
a) 2 Bytes.
b) 4Bytes
c) 6 Bytes.
d) 8 Bytes.
67. EU in 8086 stands for
MICROPROCESSOR (KCS 403)
a) Extended unit.
b) End unit
c) Execution unit.
d) Encapsulation unit.
68. Which statement is false about EU in 8086 Microprocessor
a) 0BE01H.
b) 1FC0DH
c) 1CF0DH .
d) ACE04H.
70. For DS=1234H, Maximum Possible physical Address for an element in data segment
will be:
a) 2323F H
b) 21223F H
c) 2233F H
d) 2212F H
71. Which of the following index/pointer register cannot be used to provide offset address
with DS register to locate an element in data segment:
a) BX
b) IP
c) SI
MICROPROCESSOR (KCS 403)
d) DI
72. Memory handling capacity of 8086 microprocessor is:
a) 64 KB
b) 1MB
c) 16 MB
d) 4 MB
73. For 8086 microprocessor, following statement is false:
c) It supports multiprogramming.
a) 3
b) 4
c) 5
d) 6
75. 8086 microprocessor supports ______ number of flag bits.
a) 5
b) 7
c) 9
d) 11
76. 8086 consist of address lines:
a) 20
b) 16
c) 8
MICROPROCESSOR (KCS 403)
d) 24
77. 8086 microprocessor supports ______ number of software interrupts
a) 8
b) 16
c) 128
d) 256
78. Software interrupt which corresponds to division by zero error is:
a) TYPE 0
b) TYPE 1
c) TYPE 2
d) TYPE 3
79. INC instruction increases the content of destination register by:
a) 1
b) 2
c) 4
d) 8
80. Software interrupt which represents a break-point interrupt is:
a) TYPE 0
b) TYPE 1
c) TYPE 2
d) TYPE 3
81. in 8086 microprocessor, IP register is ____ bits length
a) 4-bit
b) 8-bit
c) 16-bit
MICROPROCESSOR (KCS 403)
d) 24-bit
82. For 8086, IF flag bit is recognized as:
a) Indicate flag
b) Inter flag
c) Interrupt flag
d) Initial flag
83. Which is true about hardware interrupts in 8086 microprocessor:
a) CS
b) SP
c) BP
d) IP
85. In 8086, ____Register is used to provide offset address in calculation of physical
address of next instruction is:
a) IP
b) BP
c) BX
d) SP
86. STC instruction is having following addressing mode:
a) STC
b) CLC
c) CMC
d) CLD
89. To set the direction flag in 8086 microprocessor, following instruction is used:
a) STC
b) STD
c) SETD
d) OLD
90. Software interrupt used for single step execution of program is:
a) TYPE 0
b) TYPE 1
c) TYPE 2
d) TYPE 3
91. A sequence of two register that multiplies the content of DE register pair by two and store
the result in HL register pair is
(a) XCHG and DAD B
(b) XTHL and DAD H
(c) PCHL and DAD B
(d) XCHG and DAD H
MICROPROCESSOR (KCS 403)
HLT
END
The sequence of instructions to complete the program would be
(a) JNZ LOOP, ADD B, DCR C
(b) ADD B, JNZ LOOP, DCR C
(c) DCR C, JNZ LOOP, ADD B
(d) ADD B, DCR C, JNZ LOOP
94. The following program starts at location 0100H.
LXI SP, 00FFH
LXI H, 0107H
MVI A, 20H
SUB M
The content of accumulator when the program counter reaches 0109H is
(a) 20H
(b) 02H
(c) 00H
(d) FFH
95. For 8085 microprocessor, the following program is executed.
MVI A, 05H;
MVI B, 05H;
PTR: ADD B;
DCR B;
JNZ PTR;
ADI 03H;
HLT;
At the end of program, accumulator contains
(a) 17H
(b) 20H
(c) 23H
MICROPROCESSOR (KCS 403)
(d) 05H
96. An 8085 assembly language program is given below. Assume that the carry flag is
initially unset. The content of the accumulator after the execution of the program is
MVI A, 07H
RLC
MOV B,A
RLC
RLC
ADD B
RRC
(a) 8CH
(b) 64H
(c) 23H
(d) 15H
97. For the 8085 assembly language program given below, the content of the accumulator
after the execution of the program is
3000 MVI A, 45H
3002 MOV B, A
3003 STC
3004 CMC
3005 RAR
3006 XRA B
(a) 00H (b) 45H (c) 67H (d) E7H
98. An 8085 executes the following instructions
2710 LXI H, 30A0 H
2713 DAD H
2714 PCHL
All address and constants are in Hex. Let PC be the contents of the program counter and
HL be the contents of the HL register pair just after executing PCHL. Which of the
following statements is correct?
(a) PC=2715H HL=30A0H
(b) PC=30A0H HL=2715H
(c) PC=6140H HL=6140H
(d) PC=6140H HL=2715H
99. An 8085 assembly language program is given below.
MVI A, B5H
MVI B, 0EH
XRI 69H
ADD B
ANI 9BH
CPI 9FH
STA 3010H
HLT
The contents of the accumulator just execution of ADD instruction in line 4 will be
(a) C3H (b) EAH (c) DCH
(d) 69H
MICROPROCESSOR (KCS 403)
100. From question no. 9, after execution of line 7 of the program, the status of the CY
and Z flags will be
(a) CY=0, Z=0
(b) CY=0, Z=1
(c) CY=1, Z=0
(d) CY=1, Z=1
101. Following is the segment of a 8085 assembly language program
LXI SP, EFFFH
CALL 3000H
-
-
-
3000H: LXI H, 3CF4H
PUSH PSW
SPHL
POP PSW
RET
On completion of RET execution, the contents of SP is
(a) 3CF0 H (b) 3CF8 H (c) EFFD H (d) EFFF H
102. The following program starts at location 0100H.
LXI SP, 00FF
LXI H, 0701
MVI A, 20H
SUB M
The content of accumulator when the program counter reaches 0109 H is
(a) 20 H (b) 02 H (c) 00 H (d) FF H
103. Continuation of question no. 12, if in addition following code exists from 019H
onwards,
ORI 40 H
ADD M
What will be the result in the accumulator after the last instruction is executed
(a) 40 H (b) 20 H (c) 60 H (d) 42H
104. Consider the following assembly language program
MVI B, 87H
MOV A, B
START: JMP NEXT
MVI B, 00H
XRA B
OUT PORT1
HLT
NEXT: XRA B
JP START
OUT PORT2
HLT
The execution of above program in an 8085 microprocessor will result in
(a) an output of 87H at PORT1
MICROPROCESSOR (KCS 403)
(a) 4EH and 0 (b) 4EH and 1 (c) 4F and 0 (d) 4F and 1
112. The following program is run on an 8085 microprocessor
Memory address Instruction
2000H LXI SP,1000H
2003H PUSH H
2004H PUSH D
2005H CALL 2050H
2008H POP H
2009H HLT
At the completion of execution of the program, contents of PC and SP is
(a) PC=200A, SP=1000H (b) PC=200A, SP=0FFEH (c) none (d) All
113. An 8085 microprocessor executes “STA 1234H” with starting address location
1FFEH. While the instruction is fetched and executed, the sequence of values written at
the address pin A15-A8 is
(a) 1FH,1FH,20H,12H (b) 1FH,1FH,12H,12H (c) both (d) none
114. Which one of the following 8085 microprocessor programs correctly calculates
the product of two 8 bit number stored in register B and C?
(a) MVI A,00H (C) both
CMP C
LOOP DCR B
HLT
(b) MVI A, 00H (d) None
LOOP ADD C
DCR B
JNZ LOOP
HLT
115. In an 8085 system, a PUSH operation requires more clock cycle than a POP
operation. Which one of the following options is the correct reason for this
(a) Memory write operations are slower than memory read operations in 8085 based
system
(b) The stack pointer needs to be pre decremented before writing registers in a PUSH,
whereas a POP operation uses the address already in stack pointer
(c) Both
(d) None
116. Which assembler are used to convert 8086 assembly language program into
machine language program
(a) MASM (b) TASM (c) DOS (d) All
117. Meaning of inter-segment jump in 8086 is
(a) Operation of jumping from one code segment to another
(b) Operation of jumping within same code segment
(c) Both
(d) None
118. Meaning of intra-segment jump in 8086 is
(a) Operation of jumping from one code segment to another
(b) Operation of jumping within same code segment
(c) Both
MICROPROCESSOR (KCS 403)
(d) None
119. Write an instruction set to initialize DS with the value 3000H
(a) MOV DS, AX (C) both
MOV AX, 3000H
(b) MOV AX,3000H (d) none
MOV DS, AX
120. What is full form of MASM
(a) Macro assembler (b) Micro assembler (c) both (d) none
121. The block of 8237 that decodes the various commands given to the 8237 by the
CPU is
a) Timing and control block
b) Program command control block
c) Priority block
d) None of the mentioned
122. The priority between the DMA channels requesting the services can be resolved by
a) Timing and control block
b) Program command control block
c) Priority block
d) None of the mentioned
123. The register that holds the current memory address is
a) Current word registers
b) Current address registers
c) Base address register
d) Command register
124. The register that holds the data byte transfers to be carried out is
a) Current word register
b) Current address register
c) Base address register
d) Command register
125. When the count becomes zero in the current word register then
a) Input signal is enabled
b) Output signal is enabled
c) EOP (end of process) is generated
d) Start of process is generated
126. The current address register is programmed by the CPU as
a) Bit-wise
b) Byte-wise
c) Bit-wise and byte-wise
d) None of the mentioned
127. Which of these register’s contents is used for auto-initialization (internally)?
a) Current word register
b) Current address register
c) Base address register
d) Command register
128. The register that maintains an original copy of the respective initial current address register
and current word register is
MICROPROCESSOR (KCS 403)
a) mode register
b) Base address register
c) Command register
d) Mask register
129. The register that can be automatically incremented or decremented, after each DMA
transfer is
a) Mask register
b) Mode register
c) Command register
d) Current address register
130. Which of the following is a type of DMA transfer?
a) memory read
b) memory write
c) verify transfer
d) all of the mentioned
131. Programmable peripheral input-output port is another name for
a) serial input-output port
b) parallel input-output port
c) serial input port
d) parallel output port
132. Port C of 8255 can function independently as
a) input port
b) output port
c) either input or output ports
d) both input and output ports
133. All the functions of the ports of 8255 are achieved by programming the bits of an internal
register called
a) data bus control
b) read logic control
c) control word register
d) none of the mentioned
d) 40
137. In which mode do all the Ports of the 8255 PPI work as Input-Output units for data transfer?
a) BSR mode
b) Mode 0 of I/O mode
c) Mode 1 of I/O mode
d) Mode 2 of I/O mode
138. Which of the following pins are responsible for handling the on the Read Write control
Logic unit of the 8255 PPI?
a) CS'
b) RD'
c) WR'
d) ALL of the above
139. In which of the following modes is the 8255 PPI capable of transferring data while
handshaking with the interfaced device?
a) BSR mode
b) Mode 0 of I/O mode
c) Mode 1 of I/O mode
d) Mode 2 of I/O mode
140. How many bits of data can be transferred between the 8255 PPI and the interfaced device at
a time? or What is the size of internal bus of the 8255 PPI?
a) 16 bits
b) 12 bits
c) 8 bits
d) None of the above
141. The number of hardware interrupts that the processor 8085 consists of is
a) 1
b) 3
c) 5
d) 7
142. The register that stores all the interrupt requests in it in order to serve them one by one on a
priority basis is
a) Interrupt Request Register
b) In-Service Register
c) Priority resolver
d) Interrupt Mask Register
143. The register that stores the bits required to mask the interrupt inputs is
a) In-service register
b) Priority resolver
c) Interrupt Mask register
d) None
144. The interrupt control logic
a) manages interrupts
b) manages interrupt acknowledge signals
c) accepts interrupt acknowledge signal
MICROPROCESSOR (KCS 403)
Answers
1. D
2. A
3. C
4. D
5. C
6. D
7. A
8. B
9. C
10. A
11. A
MICROPROCESSOR (KCS 403)
12. C
13. A
14. C
15. B
16. A
17. C
18. A
19. B
20. A
21. C
22. B
23. C
24. C
25. B
26. C
27. D
28. C
29. B
30. A
31. B
32. A
33. B
34. A
35. A
36. C
37. A
38. C
39. A
40. A
41. D
42. A
43. A
44. C
45. A
46. B
47. B
48. D
49. B
50. A
51. B
52. C
53. C
54. D
55. A
56. A
MICROPROCESSOR (KCS 403)
57. C
58. B
59. A
60. A
61. A
62. D
63. A
64. A
65. D
66. C
67. C
68. C
69. C
70. C
71. B
72. B
73. D
74. B
75. C
76. A
77. D
78. A
79. A
80. D
81. C
82. C
83. B
84. A
85. A
86. D
87. A
88. B
89. B
90. B
91. D
92. C
93. D
94. C
95. A
96. C
97. C
98. C
99. B
100. C
101. B
102. C
MICROPROCESSOR (KCS 403)
103. C
104. B
105. A
106. C
107. C
108. C
109. B
110. D
111. D
112. A
113. A
114. B
115. B
116. D
117. A
118. B
119. B
120. A
121. B
122. C
123. B
124. A
125. C
126. B
127. C
128. B
129. D
130. D
131. B
132. C
133. C
134. B
135. D
136. D
137. B
138. D
139. C
140. C
141. C
142. A
143. C
144. D
145. D
146. C
147. B
148. A
MICROPROCESSOR (KCS 403)
149. A
150. C