Microprocessors and Microcontrollers (3160914) MCQs

MCQs of 8051 Microcontroller Architecture

Showing 11 to 20 out of 89 Questions
11.

 To initialize any port as an output port what value is to be given to it?

(a)

0xFF

(b)

0x00

(c)

0x01

(d)

A port is by default an output port

Answer:

Option (d)

12.

 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)

PORT2

(d)

PORT3

Answer:

Option (a)

13.

 Which of the ports act as the 16 bit address lines for transferring data through it?

(a)

PORT 1 AND PORT 2

(b)

 PORT 0 AND PORT 1

(c)

PORT 0 AND PORT 2

(d)

PORT 2 AND PORT 3

Answer:

Option (c)

14.

 Which of the following registers are not bit addressable?

(a)

SCON

(b)

PCON

(c)

A

(d)

PSW

Answer:

Option (b)

15.

 Which instruction is used to check the status of a single bit?

(a)

 MOV A,P0

(b)

ADD A,#05H

(c)

 JNB PO.0, label

(d)

 CLR P0.05H

Answer:

Option (c)

16.

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:

Option (b)

17.

 Which operator is the most important while assigning any instruction as register indirect instruction?

(a)

$

(b)

#

(c)

@

(d)

&

Answer:

Option (c)

18.

 What is the advantage of register indirect addressing mode?

(a)

 it makes use of registers R0 and R1

(b)

 it uses the data dynamically

(c)

 it makes use of operator @

(d)

 it is easy

Answer:

Option (b)

19.

 Which of the following comes under the indexed addressing mode?

(a)

 MOVX A, @DPTR

(b)

 MOV @R0,A

(c)

MOV A,R0

(d)

MOVC @A+DPTR,A

Answer:

Option (d)

20.

 Is this a valid statement?
SETB A

(a)

yes

(b)

NO

(c)

CANT DETERMINED

(d)

NONE

Answer:

Option (b)

Showing 11 to 20 out of 89 Questions