8051 Microcontroller MCQ-2 PDF

Summary

This document is a set of multiple choice questions on 8051 microcontrollers. It covers various aspects of the 8051 architecture, including registers, I/O ports, and timers. The questions are suitable for undergraduate students studying Computer Engineering, Electronics Engineering or related courses.

Full Transcript

10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 8051 Microcontroller MCQ-2 Points: 93/96 Correct 1/1 Points 1. On power up, the 8051 uses which RAM locations for register R0- R7...

10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 8051 Microcontroller MCQ-2 Points: 93/96 Correct 1/1 Points 1. On power up, the 8051 uses which RAM locations for register R0- R7 00-2F 00-07 00-7F 00-0F Correct 1/1 Points 2. If {A} = 11H and {B}= 22H then, -------------- program line will give multiplication in which product will be in A. MUL B,A MUL A,B MUL A,#11H MUL A,#22H Correct 1/1 Points 3. If the instruction PUSH is used to push data onto the stack then the stack pointer https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ETV… 1/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 increases with every push decreases with every push increases & decreases with every push none of the mentioned Correct 1/1 Points 4. The internal RAM memory of the 8051 is ------------- 32 bytes 64 bytes 128 bytes 256 bytes Correct 1/1 Points 5. What is the function of SCON register? to control SBUF registers to program the start bit, stop bit, and data bits of framing none of the mentioned to control the operation of SMOD register. Correct 1/1 Points 6. A stepping motor is a ____________ device. Mechanical https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ETV… 2/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 Electrical Analogue Incremental Correct 1/1 Points 7. If SUBB A, R4 is executed then actually what operation is being applied? R4+A R4-A A-R4 R4+A Correct 1/1 Points 8. If M1=0 and M0 = 1 in TMOD Register, the mode operation will be ------------- Mode 0 Mode 1 Mode 2 Mode 3 Correct 1/1 Points 9. Which register bank is supposed to get selected if the values of register bank select bits RS1 & Rs0 are detected to be ‘0’ & ‘1’ respectively? Bank 0 https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ETV… 3/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 Bank 1 Bank 2 Bank 3 Correct 1/1 Points 10. In a Flow chart _____________ shape states Process operation Parallelogram Rectangle Double sided Rectangle Oval Correct 1/1 Points 11. What are DPDT relays? Single pole, single throw Single pole, double throw Double pole, double throw None of the mentioned Correct 1/1 Points 12. The 8051 supports _____________ unsigned 8-bit numbers signed 8-bit numbers https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ETV… 4/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 both (a) & (b) none of the above Correct 1/1 Points 13. The rotational speed of a given stepper motor is determined solely by the Shaft load Step pulse frequency Polarity of stator current Magnitude of stator current. Correct 1/1 Points 14. The I/O ports that are used as address and data for external memory are: ports 1 and 2 ports 1 and 3 ports 0 and 2 ports 0 and 3 Correct 1/1 Points 15. TF1, TR1, TF0, TR0 bits are of which register? TMOD SCON TCON https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ETV… 5/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 SMOD Correct 1/1 Points 16. 8051 microcontroller is of __________ 8 bit 16 bit 32 bit 64 bit Correct 1/1 Points 17. 8051 is a ---------------- microcontroller. bit-addressable byte addressable both a & b none of the above Correct 1/1 Points 18. How many data lines are there in a 16*2 alphanumeric LCD? 16 8 1 https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ETV… 6/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 0 Correct 1/1 Points 19. The RETURN line comes from _______ in interfacing SWITCH with 8051 interrupt of 8051 input port of 8051 output port of 8051 External pin of 8051 Correct 1/1 Points 20. The number of bits transmitted or received per second is defined as ______ transmission rate reception rate transceiver rate baud rate Correct 1/1 Points 21. What is the principle on which electromagnetic relays operate? electromagnetic induction motor control switching https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ETV… 7/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 none of the mentioned Correct 1/1 Points 22. The operation associated with A, #FFH is -------------- [A] = FFH [A] = FFD [A] = 255 H None of the above Correct 1/1 Points 23. The rotor of a stepper motor has no Windings Commutator Brushes All of the mentioned Correct 1/1 Points 24. How can we control the speed of a stepper motor? by controlling its switching rate by controlling its torque by controlling its wave drive 4 step sequence https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ETV… 8/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 can’t be controlled Correct 1/1 Points 25. Which of the following statements are true about DAC0808? parallel digital data to analog data conversion it has current as an output all of the mentioned none of the mentioned Correct 1/1 Points 26. The bits RS0 and RS1 in PSW register selects ------------ timer mode counter mode register bank bit addresses Correct 1/1 Points 27. The SCAN line comes from _______ in interfacing SWITCH with 8051 interrupt of 8051 input port of 8051 output port of 8051 https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ETV… 9/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 External pin of 8051 Correct 1/1 Points 28. How many rows and columns are present in a 16*2 alphanumeric LCD? rows=2, columns=32 rows=16, columns=2 rows=16, columns=16 rows=2, columns=16 Correct 1/1 Points 29. T0 and T1 of 8051 are ------------- bit wide register. Four Sixteen Eight Twenty-four Correct 1/1 Points 30. How many bytes of bit addressable memory is present in 8051 based microcontrollers? 8 bytes 32 bytes 16 bytes https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 10/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 128 bytes Incorrect 0/1 Points 31. The main function of MODEM is __________ Conversion of Audio tones to 1 and 0 transferring data to microprocessor controlling the bits read/write data Correct 1/1 Points 32. DAC0808, has ______ D to A converter. 2 bit 4 bit 8 bit 16 bit Correct 1/1 Points 33. The ORG directive is used to indicate the ------------ address. Ending Data Starting https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 11/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 Bus Correct 1/1 Points 34. The registers R0-R7 are all _______ bit register 8 bit 32 bit 64 bit 16 bit Correct 1/1 Points 35. What steps are followed when we need to turn on any timer? load the count, start the timer, keep monitoring it, stop the timer load the TMOD register, load the count, start the timer, keep monitoring it, stop the timer load the TMOD register, start the timer, load the count, keep monitoring it, stop the timer none of the mentioned Correct 1/1 Points 36. Which pin of the external hardware is said to exhibit INT0 interrupt? pin no 10 pin no 11 pin no 13 https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 12/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 pin no 12 Correct 1/1 Points 37. In TMOD register M1,M0 selects --------- Timer mode operation. Counter mode operation Power mode operation Clock mode operation Correct 1/1 Points 38. In the program line MOV DPTR, #00H -------------- is initialized. Data pointer Stack pointer Program counter Status register Correct 1/1 Points 39. The task of converting the byte into serial form and transmitting it bit by bit along with start, stop and parity bits is carried out by reception unit serial communication unit transmission unit https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 13/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 all of the mentioned Correct 1/1 Points 40. Which operations are performed by stack pointer during its incremental phase? Push Pop Return All of the above Correct 1/1 Points 41. DAC 0808 is ___ Pin IC available in DIP Plastic package. 8 16 20 40 Correct 1/1 Points 42. ADC0808, is ______ A to D converter. 4 bit 16 bit 2 bit https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 14/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 8 bit Correct 1/1 Points 43. What is the counting rate of a machine cycle in correlation to the oscillator frequency for timers? 1 / 10 1 / 12 1 / 15 1 / 20 Correct 1/1 Points 44. In Which of the mode timer can operate in the 16 bit condition? mode 0 mode1 mode2 all of the mentioned Correct 1/1 Points 45. Which pin of port 3 is has an alternative function as write control signal for external data memory? P3.8 P3.3 P3.6 https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 15/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 P3.1 Correct 1/1 Points 46. When data is transmitted one way at a time then it is called as ------------ simplex duplex Half duplex full duplex Correct 1/1 Points 47. The correct method of interfacing a LED to microcontroller is to connect the ________ anode of LED to Vcc (power) without resistor. cathode of LED to Vcc (power) through resistor. cathode of LED to Vcc (power) without resistor. anode of LED to Vcc (power) through resistor. Correct 1/1 Points 48. In multiplication of two bytes in 8051 we must place another byte in ---------- A register D register E register https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 16/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 B register Correct 1/1 Points 49. 8051 has ---------- math registers zero one two three Correct 1/1 Points 50. The CTS pin of RS 232 is used for -------------- Data Carrier detect ring indicator clear to send request to send Correct 1/1 Points 51. When timer/counter is used as a timer ------------- is used as a source of frequency. External timer IC External counter IC External crystal to inbuilt oscillator https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 17/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 None of the above Correct 1/1 Points 52. Which special function register play an important role in the timer/counter mode selection process by allocating the bits in it? TMOD TCON SCON PCON Correct 1/1 Points 53. Which port does not represent quasi-bidirectional nature of I/O ports in accordance to the pin configuration of 8051 microcontroller? Port 0 (Pins 32-39) Port 1 (Pins 1-8) Port 2 (Pins 21-28) Port 3 (Pins 10-17) Correct 1/1 Points 54. The 8051 has ________ 16-bit counter/timers. 1 2 3 https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 18/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 4 Correct 1/1 Points 55. Which operations are performed by the bit manipulating instructions of boolean processor? Complement bit Set bit Clear bit All of the above Correct 1/1 Points 56. The 8051 can handle ________ interrupt sources. 3 4 5 6 Correct 1/1 Points 57. Which out of the four ports of 8051 needs a pull-up resistor for using it is as an input or an output port? PORT 0 PORT 1 PORT 2 https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 19/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 PORT 3 Correct 1/1 Points 58. Which pin of the LCD is used for adjusting its contrast? pin no 1 pin no 2 pin no 3 pin no 4 Correct 1/1 Points 59. In LCD pin RS is used for --------- Selection of Command Register Selection of Data Register Selection of Command and Data Register None of the above Correct 1/1 Points 60. INC R5 instruction affects -------------- CY flag AC flag OV flag https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 20/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 None of the above Correct 1/1 Points 61. Timer in 8051 is -------------- bit wide register. 4 8 16 32 Correct 1/1 Points 62. MOV A,R4 is an example for __________ addressing. direct indirect register implicit Correct 1/1 Points 63. 8051 has ______ Bytes of internal ROM. 2K 4K 6K https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 21/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 8K Correct 1/1 Points 64. Data transfer from I/O to external data memory can only be done with the ----- --- command. MOVC MOV MOVX MOV A Correct 1/1 Points 65. Bit PX1 in IP register of 8051 is used as ---------------------- External Interrupt 0 bit External Interrupt 1 bit Timer 0 interrupt bit Timer 2 interrupt bit Correct 1/1 Points 66. Which bit must be set in TCON register in order to start the ‘Timer 0’ while operating in ‘Mode 0’? TR0 TF0 IT0 https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 22/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 IE0 Correct 1/1 Points 67. Which addressing mode is used in pushing or popping any element on or from the stack? immediate direct indirect register Correct 1/1 Points 68. Which among the below stated registers does not belong to the category of special function registers? TCON & TMOD TH0 & TL0 P0 & P1 SP & PC Incorrect 0/1 Points 69. The full form of LCD is ____________ Liquid Crystal Display Liquid Crystalline Display Logical Crystal Display https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 23/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 Logical Crystalline Display Correct 1/1 Points 70. --------- pin of LCD is used to latch information presented at input pins. VEE W RS E Correct 1/1 Points 71. Which devices are specifically being used for converting serial to parallel and from parallel to serial respectively? timers counters registers serial communication Correct 1/1 Points 72. XRL A,#3FH is associated with ----------- logical operation. AND OR EX-OR https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 24/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 NOT Correct 1/1 Points 73. TMOD register is --------------- bit wide register. 4 8 12 16 Correct 1/1 Points 74. How does the processor respond to an occurrence of the interrupt? By Interrupt Service Subroutine By Interrupt Status Subroutine By Interrupt Structure Subroutine By Interrupt System Subroutine Correct 1/1 Points 75. Which register usually store the output generated by ALU in several arithmetic operations? Accumulator Special Function Register Timer Register https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 25/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 Stack Pointer Correct 1/1 Points 76. ADC 0808 is ___ Pin IC available in DIP Plastic package. 8 16 20 28 Correct 1/1 Points 77. What changes are to be made to send data to an LCD? set the R/W bit set the E bit set the RS bit all of the mentioned Correct 1/1 Points 78. How many pins are there in 8051 microcontroller? 20 40 60 https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 26/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 80 Correct 1/1 Points 79. Which general purpose register holds eight bit divisor and store the remainder especially after the execution of division operation? A-Register B-Register Registers R0 through R7 All of the above Incorrect 0/1 Points 80. Which of the following instructions will load the value 35H into the high byte of timer 0? MOV TH0,35H MOV TH0,#35H MOV T0,#35H MOV T0,35H Correct 1/1 Points 81. Auto reload mode is allowed in which mode of the timer? Mode 0 Mode 1 Mode 2 https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 27/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 Mode 3 Correct 1/1 Points 82. MOV A, @ R1 will _____ copy R1 to the accumulator copy the accumulator to R1 copy the contents of memory whose address is in R1 to the accumulator copy the accumulator to the contents of memory whose address is in R1 Correct 1/1 Points 83. TCON register is ---------------- bit wide. 16 12 04 08 Correct 1/1 Points 84. DPTR is a _________ bit wide register 16 bit 64 bit 8 bit https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 28/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 32 bit Correct 1/1 Points 85. Which bit/s play/s a significant role in the selection of a bank register of Program Status Word (PSW)? RS1 RS0 Both a & b None of the above Correct 1/1 Points 86. An ALP is saved with ______ extension filename. myprogram.asm myprogram.obj myprogram.lst myprogram.hex Correct 1/1 Points 87. Auto reload mode is allowed in which mode of the timer? Mode 0 Mode 1 Mode 2 https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 29/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 Mode 3 Correct 1/1 Points 88. The pins XTAL1 and XTAL2 are used to form an ________ oscillator generator selector vibrator Correct 1/1 Points 89. In byte-by-byte division the quotient is placed in ---------- Program counter B register A register Data pointer Correct 1/1 Points 90. When the microcontroller executes some arithmetic operations, then the flag bits of which register are affected? PSW SP DPTR https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 30/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 PC Correct 1/1 Points 91. buffers are used in interfacing a relay with microcontroller 8051, because ------- -- Current at microcontroller pin is very low Current at microcontroller pin is very high Buffer is compatible with microcontroller Buffers excites the voltages required for relay Correct 1/1 Points 92. Which commands are used for addressing the off-chip data and associated codes respectively by data pointer? MOVX & MOVC MOVY & MOVB MOVZ & MOVA MOVC & MOVY Correct 1/1 Points 93. Microcontroller has ---------- timer. One Two Three https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 31/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 Four Correct 1/1 Points 94. When we add two numbers the destination address must always be. some immediate data any register accumulator memory Correct 1/1 Points 95. Which locations of 128 bytes on-chip additional RAM are generally reserved for special functions? 80H to 0FFH 70H to 0FFH 90H to 0FFH 60H to 0FFH Correct 1/1 Points 96. In 8051 Microcontroller Program Counter (PC) is ________ bit register. 4 8 16 https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 32/33 10/24/24, 10:27 PM 8051 Microcontroller MCQ-2 32 Keep the information with you by saving your response. Save my response This content is created by the owner of the form. The data you submit will be sent to the form owner. Microsoft is not responsible for the privacy or security practices of its customers, including those of this form owner. Never give out your password. Microsoft Forms | AI-Powered surveys, quizzes and polls Create my own form Privacy and cookies | Terms of use https://forms.office.com/pages/responsepage.aspx?id=Vhm9Cdrtmk6VQ3x6os9OgS130pG-AdNLlq3U3kM91xFUM1ZZTjZNN0ZRT0Y5TE5ET… 33/33

Use Quizgecko on...
Browser
Browser