IOT Questions and Answers – Microcontroller (8051)

This set of IOT Multiple Choice Questions & Answers (MCQs) focuses on “Microcontroller (8051)”.

1. What do you mean by micro in microcontroller?
a) Distance between 2 IC’s
b) Distance between 2 transistors
c) Size of a controller
d) Distance between 2 pins
View Answer

Answer: b
Explanation: Micro means 10-6 which gives the distance between 2 element transistors which is called as Micron Technology.

2. What is the bit size of the 8051 microcontroller?
a) 8-bit
b) 4-bit
c) 16-bit
d) 32-bit
View Answer

Answer: a
Explanation: It is an 8-bit microcontroller which means most of the operations are limited to 8 bit only.

3. Name the architecture and the instruction set for microcontroller?
a) Van- Neumann Architecture with CISC Instruction Set
b) Harvard Architecture with CISC Instruction Set
c) Van- Neumann Architecture with RISC Instruction Set
d) Harvard Architecture with RISC Instruction Set
View Answer

Answer: b
Explanation: Harvard architecture has different memory spaces for both program memory and data memory with Complex Instruction Set Computer(CISC). The difference between CISC and RISC is RISC has few instructions than CISC. Where as in Van- Neumann, program and data memory are same. Van- Neumann is also called as Princeton architecture.
advertisement
advertisement

4. Number of I/O ports in the 8051 microcontroller?
a) 3 ports
b) 4 ports
c) 5 ports
d) 4 ports with last port having 5 pins
View Answer

Answer: b
Explanation: It has 4 ports with port0 act as I/O port and also multiplexing of address and data bus. Port1act as I/O port. Port 2 act as I/O and also like address lines. Port 3 act as I/O and also for external peripherals.

5. Is ROM is used for storing data storage?
a) True
b) False
View Answer

Answer: b
Explanation: RAM is used for storing data storage and ROM is used for storing program memory.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. SCON in serial port is used for which operation?
a) Transferring data
b) Receiving data
c) Controlling
d) Controlling and transferring
View Answer

Answer: c
Explanation: There are 2 pins available in serial port. One is used for transmission and other is used for receiving data. SCON is the bit in the serial port which is used for controlling the operation.

7. Program counter stores what?
a) Address of before instruction
b) Address of the next instruction
c) Data of the before execution to be executed
d) Data of the execution instruction
View Answer

Answer: b
Explanation: Points to the address of the next instruction to be executed from ROM. It is 16 bit register means the 8051 can access program address from 0000H to FFFFH. Total 64KB of code.

8. Auxiliary carry is set during which condition?
a) When carry is generated from D3 to D4
b) When carry is generated from D7
c) When carry is generated from both D3 to D4 and D7
d) When carry is generated at either D3 to D4 or D7
View Answer

Answer: a
Explanation: When carry is generated from D3 to D4, it is set to 1, it is used in BCD arithmetic.
advertisement

9. What is order of the assembly and running 8051 program?
i) Myfile.asm
ii) Myfile.lst
iii) Myfile.obj
iv) Myfile.hex
a) i,ii,iii,iv
b) ii,iii,I,iv
c) iv,ii,I,iii
d) iii,ii,I,iv
View Answer

Answer: a
Explanation: After writing the program in editor and compilation first .asm, .lst, .obj, .hex are created.
advertisement

10. The use of Address Latch Enable is to multiplex address and data memory.
a) True
b) False
View Answer

Answer: a
Explanation: That is used for multiplexting address and data ie., the same line carries address and data. To indicate when it carries address, ALE is emitted by 8051.

11. Which pin provides a reset option in 8051?
a) Pin 1
b) Pin 8
c) Pin 11
d) Pin 9
View Answer

Answer: d
Explanation: Reset pin is utilized to set the micro controller 8051 to its primary values, whereas the micro controller is functioning or at the early beginning of application. The reset pin has to be set elevated for two machine rotations.

12. External Access is used to permit ____________
a) Peripherals
b) Power supply
c) ALE
d) Memory interfacing
View Answer

Answer: d
Explanation: External Access input is employed to permit or prohibit outer memory interfacing. If there is no outer memory needed, this pin is dragged by linking it to Vcc.

13. What is the address range of SFRs?
a) 80h to feh
b) 00h to ffh
c) 80h to ffh
d) 70h to 80h
View Answer

Answer: c
Explanation: In 8051 there are certain registers which use the RAM addresses from 80h to ffh. These are called Special Function Registers. Some of the SFRs are I/o ports and control operations such as TCON, SCON, PCON.

14. How many interrupts are there in micro controller?
a) 3
b) 6
c) 4
d) 5
View Answer

Answer: d
Explanation: An interrupt is an external or internal event that disturbs the microcontroller to inform if that needs its services. There are 5 interrupts :
Timer 0 overflow interrupt
Timer 1 overflow interrupt
External Interrupt 0
External Interrupt 1
Serial port events.

15. Timer 0 is a ________ bit register.
a) 32-bit
b) 8-bit
c) 16-bit
d) 10-bit
View Answer

Answer: c
Explanation: The Timer 0 is a 16-bit register and can be treated as two 8-bit registers and these can be accessed similarly to any other registers.

Sanfoundry Global Education & Learning Series – IOT.

To practice all areas of IOT, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.