Professional Documents
Culture Documents
Questions:
8051 series of microcontrollers are made by which of the following companies?
A. Atmel
B. Philips
C. Atmel & Philips
D. None of the mentioned
ANSWER: D
When the microcontroller executes some arithmetic operations, then the flag bits of
which register are affected?
A. PSW
B. SP
C. DPTR
D. PC
ANSWER: A
How many bytes of bit addressable memory is present in 8051 based microcontrollers?
A. 8 bytes
B. 32 bytes
C. 16 bytes
D. 128 bytes
ANSWER: C
How many rows and columns are present in a 16*2 alphanumeric LCD?
A. rows=2, columns=32
B. rows=16, columns=2
C. rows=16, columns=16
D. rows=2, columns=16
ANSWER: D
A thermistor is a __________
A. sensor
B. adc
C. transducer
D. micro controller
ANSWER: C
The last 96 locations in the internal data memory are reserved for general-purpose
data storage and stack.
A. True
B. False
ANSWER: B
MOV A, @ R1 will:
A. copy R1 to the accumulator
B. copy the accumulator to R1
C. copy the contents of memory whose address is in R1 to the accumulator
D. copy the accumulator to the contents of memory whose address is in R1
ANSWER: C
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
ANSWER: A
Which of the ports act as the 16 bit address lines for transferring data through
it?
A. PORT 0 and PORT 1
B. PORT 1 and PORT 2
C. PORT 0 and PORT 2
D. PORT 1 and PORT 3
ANSWER: C
Which of the following instructions will load the value 35H into the high byte of
timer 0?
A. MOV TH0, #35H
B. MOV TH0, 35H
C. MOV T0, #35H
D. MOV T0, 35H
ANSWER: A
Which addressing mode is used in pushing or popping any element on or from the
stack?
A. Immediate
B. direct
C. indirect
D. register
ANSWER: B
The address space of the 8051 is divided into four distinct areas: internal data,
external data, internal code, and external code.
A. True
B. False
ANSWER: A
Data transfer from I/O to external data memory can only be done with the MOVX
command.
A. True
B. False
ANSWER: A
The total external data memory that can be interfaced to the 8051 is:
A. 32K
B. 64K
C. 128K
D. 256K
ANSWER: B
When we add two numbers the destination address must always be.
A. some immediate data
B. any register
C. accumulator
D. memory
ANSWER: C
The following program will receive data from port 1, determine whether bit 2 is
high, and then send the number FFH to port 3:
READ: MOV A,P1
ANL A,#2H
CJNE A,#02H,READ
MOV P3,#FFH
A. True
B. False
ANSWER: A
Which of the following instructions will move the contents of register 3 to the
accumulator?
A. MOV 3R, A
B. MOV R3, A
C. MOV A, R3
D. MOV A, 3R
ANSWER: C
Device pins XTAL1 and XTAL2 for the 8051 are used for connections to an external
oscillator or crystal.
A. True
B. False
ANSWER: A
When the 8051 is reset and the line is HIGH, the program counter points to the
first program instruction in the:
A. internal code memory
B. external code memory
C. internal data memory
D. external data memory
ANSWER: A
Data transfer from I/O to external data memory can only be done with the MOV
command.
A. True
B. False
ANSWER: B
Which of the following commands will move the number 27H into the accumulator?
A. MOV A, P27
B. MOV A, #27H
C. MOV A, 27H
D. MOV A, @27
ANSWER: B
This program code will read data from port 0 and write it to port 2, and it will
stop looping when bit 3 of port 2 is set:
STAT: MOV A, PO
MOV P2,A
JNB P2.3, STAT
A. True
B. False
ANSWER: A
Which devices are specifically being used for converting serial to parallel and
from parallel to serial respectively?
A. timers
B. counters
C. registers
D. serial communication
ANSWER: C
Which of the following best states the reason that why baud rate is mentioned in
serial communication?
A. to know about the no of bits being transmitted per second
B. to make the two devices compatible with each other, so that the transmission
becomes easy and error free
C. to use Timer 1
D. for wasting memory
ANSWER: B
The I/O ports that are used as address and data for external memory are:
A. ports 1 and 2
B. ports 1 and 3
C. ports 0 and 2
D. ports 0 and 3
ANSWER: C
What is the file extension that is loaded in a microcontroller for executing any
instruction?
A. .doc
B. .c
C. .txt
D. .hex
ANSWER: D
What is the most appropriate criterion for choosing the right microcontroller of
our choice?
A. speed
B. availability
C. ease with the product
D. all of the mentioned
ANSWER: D
PWM allows the control of a DC motor with the same phase, but with different
amplitude phases?
A. true
B. false
C. cant be determined
D. none of the mentioned
ANSWER: B
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 the first location of the memory called the interrupt vector table
D. to the end of the program
ANSWER: C
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. Next instruction of the program after the IE instruction
C. next instruction after the RETI in the memory
D. none of the mentioned
ANSWER: B
Which of the following commands will move the value at port 3 to register 2?
A. MOV P2, R3
B. MOV R3, P2
C. MOV 3P, R2
D. MOV R2, P3
ANSWER: D
The number of data registers is:
A. 8
B. 16
C. 32
D. 64
ANSWER: C
When the 8051 is reset and the EA line is LOW, the program counter points to the
first program instruction in the:
A. internal code memory
B. external code memory
C. internal data memory
D. external data memory
ANSWER: B
The designs of a centigrade thermometer and a PWM speed-control circuit can be
implemented by the 8051.
A. True
B. False
ANSWER: A
What is the difference between the 8031 and the 8051?
A. The 8031 has no interrupts.
B. The 8031 is ROM-less.
C. The 8051 is ROM-less.
D. The 8051 has 64 bytes more memory.
ANSWER: B
The I/O port that does not have a dual-purpose role is:
A. port 0
B. port 1
C. port 2
D. port 3
ANSWER: B
To interface external EPROM memory for applications, it is necessary to demultiplex
the address/data lines of the 8051.
A. True
B. False
ANSWER: A
The following command will copy the accumulator to the location whose address is
23H:
MOV 23H,A
A. True
B. False
ANSWER: A