Q.1

Which of the following instructions will move the contents of the accumulator to register 6?

  • MOV 6R, A
  • MOV R6, A
  • MOV A, 6R
  • MOV A, R6
Q.2

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
Q.3

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
Q.4

The microcontroller is useful in systems that have nonvariable programs for dedicated applications.

  • True
  • False
Q.5

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
  • True
  • False
Q.6

The contents of the accumulator after this operation
MOV A,#2BH
ORL A,00H
will be:

  • 1B H
  • 2B H
  • 3B H
  • 4B H
Q.7

The following command will rotate the 8 bits of the accumulator one position to the left:
RL A

  • True
  • False
Q.8

An alternate function of port pin P3.0 (RXD) in the 8051 is:

  • serial port input
  • serial port output
  • memory write strobe
  • memory read strobe
Q.9

The last 96 locations in the internal data memory are reserved for general-purpose data storage and stack.

  • True
  • False
Q.10

Bit-addressable memory locations are:

  • 10H through 1FH
  • 20H through 2FH
  • 30H through 3FH
  • 40H through 4FH
Q.11

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

  • 0000 to FFFFH
  • 000 to FFFH
  • 00 to FFH
  • 0 to FH
Q.12

The total amount of external code memory that can be interfaced to the 8051 is:

  • 32K
  • 64K
  • 128K
  • 256K
Q.13

Which of the following commands will move the value at port 3 to register 2?

  • MOV P2, R3
  • MOV R3, P2
  • MOV 3P, R2
  • MOV R2, P3
Q.14

The following program will cause the 8051 to be stuck in a loop:

LOOP: MOV A, #00H
 JNZ LOOP
  • True
  • False
Q.15

Which of the following commands will copy the contents of RAM whose address is in register 0 to port 1?

  • MOV @ P1, R0
  • MOV @ R0, P1
  • MOV P1, @ R0
  • MOV P1, R0
Q.16

The 8051 can handle ________ interrupt sources.

  • 3
  • 4
  • 5
  • 6
Q.17

This program code will be executed once:

STAT: MOV A, #01H
 JNZ STAT
  • True
  • False
Q.18

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

  • True
  • False
Q.19

Microcontrollers often have:

  • CPUs
  • RAM
  • ROM
  • all of the above
Q.20

What is the difference between the 8031 and the 8051?

  • The 8031 has no interrupts.
  • The 8031 is ROM-less.
  • The 8051 is ROM-less.
  • The 8051 has 64 bytes more memory.
0 h : 0 m : 1 s