MC MCQs
MC MCQs
4. When the microcontroller executes some arithmetic operations, then the flag bits of which
register are affected?
a) PSW
b) SP
c) DPTR
d) PC
6. On power up, the 8051 uses which RAM locations for register R0- R7
a) 00-2F
b) 00-07
c) 00-7F
d) 00-0F
9. If we say the microcontroller is 8-bit then here 8-bit denotes the size of:
a) Data Bus
b) ALU
c) Control Bus
d) Address Bus
13. When the call instruction is executed the topmost element of stack comes out to be
a) the address where stack pointer starts
b) the address next to the call instruction
c) address of the call instruction
d) next address of the stack pointer
1) BACK: DEC R0
JZ BACK
a) yes
b) no
c) cannot be determined
d) yes and the second one is preferred
17. When we add two numbers the destination address must always be.
a) some immediate data
b) any register
c) accumulator
d) memory
24. Which out of the four ports of 8051 needs a pull-up resistor for using it is as an input or
an output port?
a) PORT 0
b) PORT 1
c) PORT 2
d) PORT 3
28. Which addressing mode is used in pushing or popping any element on or from the
stack?
a) immediate
b) direct
c) indirect
d) register
29. Which operator is the most important while assigning any instruction as register indirect
instruction?
a) $
b) #
c) @
d) &
31. Which of the following comes under the indexed addressing mode?
a) MOVX A, @DPTR
b) MOVC @A+DPTR, A
c) MOV A,R0
d) MOV @R0,A
34. What is the frequency of the clock that is being used as the clock source for the timer?
a) some externally applied frequency f’
b) controller’s crystal frequency f
c) controller’s crystal frequency /12
d) externally applied frequency/12
37. Find out the rollover value for the timer in Mode 0, Mode 1 and Mode 2?
a) 00FFH,0FFFH, FFFFH
b) 1FFFH,0FFFH, FFFFH
c) 1FFFH,FFFFH,00FFH
d) 1FFFH,00FFH,FFFFH
38. What steps are followed when we need to turn on any timer?
a) load the count, start the timer, keep monitoring it, stop the timer
b) load the TMOD register, load the count, start the timer, keep monitoring it, stop the timer
c) load the TMOD register, start the timer, load the count, keep monitoring it, stop the timer
d) none of the mentioned
39. If Timer 0 is to be used as a counter, then at what particular pin clock pulse need to be
applied?
a) P3.3
b) P3.4
c) P3.5
d) P3.6
42. When an interrupt is enabled, then where does the pointer moves immediately after this
interrupt has occurred?
a) to the next instruction which is to be executed
b) to the first instruction of ISR
c) to a fixed location in memory called interrupt vector table
d) to the end of the program
43. After RETI instruction is executed then the pointer will move to which location in the
program?
a) next interrupt of the interrupt vector table
b) immediate next instruction where interrupt is occurred
c) next instruction after the RETI in the memory
d) none of the mentioned
44. Which pin of the external hardware is said to exhibit INT0 interrupt?
a) pin no 10
b) pin no 11
c) pin no 12
d) pin no 13
47. Why normally LJMP instructions are the topmost lines of the ISR?
a) so as to jump to some other location where there is a wider space of memory available to
write the codes
b) so as to avoid overwriting of other interrupt instructions
c) all of the mentioned
d) none of the mentioned
48. What is the correct order of priority that is set after a controller gets reset?
a) RI/TI > TF1 > TF0 > INT1 > INT0
b) RI/TI < TF1 < TF0 < INT1 < INT0
c) INT0 > TF0 > INT1 > TF1 > RI/TI
d) INT0 < TF0 < INT1 < TF1 < RI/TI
49. How are the status of the carry, auxiliary carry and parity flag affected if the write
instructions
MOV A,#9CH
ADD A,#64H
a) CY=0,AC=0,P=0
b) CY=1,AC=1,P=0
c) CY=0,AC=1,P=0
d) CY=1,AC=1,P=19.