You are on page 1of 12

End Term Examination - June 2020

Course Name: MICROCONTROLLER Embedded System and its applications


Course Code: CSU-091
Faculty Name: Er. Brij Bhushan Sharma
Program: B.Tech EcE
Semester: 6th

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

AT89C2051 has RAM of:


A. 128 bytes
B. 256 bytes
C. 64 bytes
D. 512 bytes
ANSWER: A

8051 series has how many 16 bit registers?


A. 2
B. 3
C. 1
D. 0
ANSWER: A

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

How many data lines are there in a 16*2 alphanumeric LCD?


A. 16
B. 8
C. 1
D. 0
ANSWER: B
Microcontrollers often have:
A. CPUs
B. RAM
C. ROM
D. all of the above
ANSWER: D

Which pin of the LCD is used for adjusting its contrast?


A. pin no 1
B. pin no 2
C. pin no 3
D. pin no 4
ANSWER: C

For writing commands on an LCD, RS bit is


A. set
B. reset
C. set & reset
D. none of the mentioned
ANSWER: B

The RS pin is an input/output for a controller?


A. input
B. output
C. input & output
D. none of the mentioned
ANSWER: B

A thermistor is a __________
A. sensor
B. adc
C. transducer
D. micro controller
ANSWER: C

What is the difference between LM 34 and LM 35 sensors?


A. one is a sensor and the other is a transducer
B. one’s output voltage corresponds to the Fahrenheit temperature and the other
corresponds to the Celsius temperature
C. one is of low precision and the other is of higher precision
D. one requires external calibration and the other does not require it
ANSWER: B

The internal RAM memory of the 8051 is:


A. 32 bytes
B. 64 bytes
C. 128 bytes
D. 256 bytes
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

This program code will be executed continuously:


STAT: MOV A, #01H
JNZ STAT
A. True
B. False
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

The 8051 has ________ 16-bit counter/timers.


A. 1
B. 2
C. 3
D. 4
ANSWER:B

The 8051 has ________ parallel I/O ports.


A. 2
B. 3
C. 4
D. 5
ANSWER:C

Which of the following registers are not bit addressable?


A. SCON
B. PCON
C. A
D. PSW
ANSWER: B

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

Is this a valid statement?


SETB A
A. yes
B. no
C. cant be determined
D. none of the mentioned
ANSWER: B

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

Bit-addressable memory locations are:


A. 10H through 1FH
B. 20H through 2FH
C. 30H through 3FH
D. 40H through 4FH
ANSWER: B

The 8-bit address bus allows access to an address range of:


A. 0000 to FFFFH
B. 000 to FFFH
C. 00 to FFH
D. 0 to FH
ANSWER: C

A label is used to name a single line of code.


A. True
B. False
ANSWER: A
The contents of the accumulator after this operation
MOV A,#0BH
ANL A,#2CH
will be
A. 11010111
B. 11011010
C. 00001000
D. 00101000
ANSWER: C

Which instructions have no effect on the flags of PSW?


A. ANL
B. ORL
C. XRL
D. All of the mentioned
ANSWER: D

This program code will be executed once:


STAT: MOV A, #01H
JNZ STAT
A. True
B. False
ANSWER: B

The 8051 can handle ________ interrupt sources.


A. 3
B. 4
C. 5
D. 6
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

XRL, ORL, ANL commands have _______


A. accumulator as the destination address and any register, memory or any immediate
data as the source address
B. accumulator as the destination address and any immediate data as the source
address
C. any register as the destination address and accumulator, memory or any immediate
data as the source address
D. any register as the destination address and any immediate data as the source
address
ANSWER: A
Which of the following statements will add the accumulator and register 3?
A. ADD @R3, @A
B. ADD @A, R3
C. ADD R3, A
D. ADD A, R3
ANSWER: D

DAA command adds 6 to the nibble if:


A. CY and AC are necessarily 1
B. either CY or AC is 1
C. no relation with CY or AC
D. CY is 1
ANSWER: B

Device pins XTAL1 and XTAL2 for the 8051 are used for connections to an external
oscillator or crystal.
A. True
B. False
ANSWER: A

Why two pins for ground are available in ADC0804?


A. For controlling the ADCON0 and ADCON1 register of the controller
B. for controlling the analog and the digital pins of the controller
C. for both parts of the chip respectively
D. none of the mentioned
ANSWER: B

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

Step size is selected by which two bits?


A. Vref/2
B. Vin
C. Vref/2 & Vin
D. None of the mentioned
ANSWER: A

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

What is the difference between ADC0804 and MAX1112?


A. ADC0804 has 8 bits and MAX1112 has 1 bit for data output
B. ADC0804 is used for adc and dac conversions whereas MAX1112 is used for serial
data transmissions
C. ADC0804 has 32 bits and MAX1112 has 3 bit for data output
D. None of the mentioned
ANSWER: A

8 input DAC has ________


A. 8 discrete voltage levels
B. 64 discrete voltage levels
C. 124 discrete voltage levels
D. 256 discrete voltage levels
ANSWER: D

An alternate function of port pin P3.4 in the 8051 is:


A. Timer 0
B. Timer 1
C. interrupt 0
D. interrupt 1
ANSWER: A

INTR, WR signal is an input/output signal pin?


A. both are output
B. both are input
C. one is input and the other is output
D. none of the mentioned
ANSWER: C

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

Both registers TL0 and TL1 are needed to start Timer 0.


A. True
B. False
ANSWER: B

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

What is the difference between UART and USART communication?


A. they are the names of the same particular thing, just the difference of A and S
is there in it
B. one uses asynchronous means of communication and the other uses synchronous
means of communication
C. one uses asynchronous means of communication and the other uses asynchronous and
synchronous means of communication
D. one uses angular means of the communication and the other uses linear means of
communication
ANSWER: C
Which of the following signal control the flow of data?
A. RTS
B. DTR
C. RTS & DTR
D. None of the mentioned
ANSWER: A

What is a null modem connection?


A. No data transmission
B. no MAX232
C. the RxD of one is the TxD for the other
D. no 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 function of the SCON register?


A. to control SBUF and SMOD registers
B. to program the start bit, stop bit, and data bits of framing
C. to control SMOD registers
D. none of the mentioned
ANSWER: B

What should be done if we want to double the baud rate?


A. change a bit of the TMOD register
B. change a bit of the PCON register
C. change a bit of the SCON register
D. change a bit of the SBUF register
ANSWER: B

A microcontroller at-least should consist of:


A. RAM, ROM, I/O devices, serial and parallel ports and timers
B. CPU, RAM, I/O devices, serial and parallel ports and timers
C. CPU, RAM, ROM, I/O devices, serial and parallel ports and timers
D. CPU, ROM, I/O devices and timers
ANSWER: C

What is the order decided by a processor or the CPU of a controller to execute an


instruction?
A. decode,fetch,execute
B. execute,fetch,decode
C. fetch,execute,decode
D. fetch,decode,execute
ANSWER: D
How are microcontrollers classified on the basis of internal bus width?
A. 8,16,32,64 bits
B. 4,8,16,32 bits
C. 8,16 bits
D. 4,16,32 bits
ANSWER: B

Abbreviate CISC and RISC.


A. Complete Instruction Set Computer, Reduced Instruction Set Computer
B. Complex Instruction Set Computer, Reduced Instruction Set Computer
C. Complex Instruction Set Computer, Reliable Instruction Set Computer
D. Complete Instruction Set Computer, Reliable Instruction Set Computer
ANSWER: B

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

Why microcontrollers are not called general purpose devices?


A. because they are based on VLSI technology
B. because they are not meant to do a single work at a time
C. because they are cheap
D. because they consume low power
ANSWER: B

What is the principle on which electromagnetic relays operate?


A. electromagnetic induction
B. motor control
C. switching
D. none of the mentioned
ANSWER: A

What are DPDT relays?


A. Single pole, single throw
B. Single pole, double throw
C. Double pole, double throw
D. None of the mentioned
ANSWER: C

Why do we need a ULN2803 in driving a relay?


A. for switching a motor
B. for increasing the current limit in the relays
C. for increasing the power
D. For decreasing the current limit in the relays
ANSWER: B

Why are solid relays advantageous over electromagnetic relays?


A. they need zero voltage circuit
B. they need less current to be energised
C. they need less voltage to be energised
D. none of the mentioned
ANSWER: B

How can we control the speed of a stepper motor?


A. by controlling its switching rate
B. by controlling its torque
C. by controlling its wave drive 4 step sequence
D. cant be controlled
ANSWER: A

Which of the following can be a unit for torque?


A. kg/m2
B. ounce-inch
C. kg-m3
D. g/m
ANSWER: B

The RPM rating given for the DC motor is for?


A. no-loaded
B. loaded
C. none of the mentioned
D. all of the mentioned
ANSWER: A

How can the direction of the DC motor be changed?


A. by changing the torque
B. by changing the switching speed
C. by changing the polarity of voltages connected to the leads
D. by changing the RPM rating
ANSWER: C

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 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
ANSWER: C

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

The special function registers can be referred to by their hex addresses or by


their register names.
A. True
B. False
ANSWER: A

The contents of the accumulator after this operation


MOV A,#2BH
ORL A,00H
will be:
A. 1B H
B. 2B H
C. 3B H
D. 4B H
ANSWER: B

You might also like