Internet of Things Questions and Answers Part-11

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

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

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

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.

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

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

Answer: b
Explanation: RAM is used for storing data storage and ROM is used for storing program memory.

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

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

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

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

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

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

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

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.