Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

UNIT-II INSTRUCTION SET AND PROGRAMMING

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

Which instruction rotates accumulator left through carry?

a)

RL A

b)

RR A

c)

RLC A

d)

RRC A

2.

What happens when the stack overflows in 8051?

a)

Corrupts internal RAM locations above 7FH

b)

Resets automatically

c)

Stops execution

d)

Generates interrupt

3.

In the instruction MOV A, #25H, which addressing mode is used?

a)

Immediate

b)

Direct

c)

Register

d)

Indirect

4.

Which instruction clears the carry flag in 8051?

a)

CLR A

b)

CLRC A

c)

CLC

d)

CLR C

5.

Which of the following is a logical instruction?

a)

ADD

b)

SUBB

c)

ORL

d)

INC

6.

To calculate a time delay using a loop which factor is MOST important?

a)

Clock frequency and number of machine cycles per instruction

b)

Size of RAM

c)

Number of I/O ports

d)

Stack pointer value

7.

DAA can adjust the value placed in Acc todecimal after ___________ operation

a)

Addition

b)

Subtraction

c)

Multiplication

d)

Division

8.

After executing MUL AB where is the lower byte of the 16-bit result stored?

a)

B register

b)

Accumulator (A)

c)

R0

d)

PSW

9.

What is the addressing mode used in "MOV A 40H"?

a)

Immediate

b)

Direct

c)

Register

d)

Indirect

10.

Which instruction is used for exchanging contents of accumulator with register?

a)

SWAP

b)

XCH

c)

XRL

d)

MOVC

11.

The instruction MOV A, #55H belongs to which addressing mode?

a)

Immediate

b)

Direct

c)

Register

d)

Indirect

12.

Which instruction performs bitwise complement of accumulator?

a)

CLR A

b)

SETB A

c)

CPL A

d)

RR A

13.

The only operation not possible in bit level is

a)

data transfer

b)

Jump

c)

Logical

d)

Arithmetic

14.

If you need to find the smallest number among five numbers stored in internal RAM which structure is essential?

a)

Stack operations

b)

Loop with comparison and conditional branching

c)

Serial communication setup

d)

Timer initialization

15.

Which instruction is used for an unconditional jump in

8051

a)

SJMP

b)

CJNE

c)

DJNZ

d)

JNB

16.

What does the instruction “CPL C” do?

a)

Clears the carry flag

b)

Complements the carry flag

c)

Sets the carry flag

d)

Copies carry to accumulator

17.

The time delay subroutine is used to

a)

ON the load

b)

OFF the load

c)

Increase sppeed

d)

Delay the operation

18.

The instruction SETB EA is used for:

a)

Enabling serial communication

b)

Setting accumulator bit 0

c)

Enabling all interrupts

d)

Starting timer

19.

Which register is used as stack pointer in 8051?

a)

DPTR

b)

PC

c)

SP

d)

PSW

20.

Which of the following is

NOT

a category of 8051 instructions?

a)

Data Transfer Instructions

b)

Floating Point Instructions

c)

Arithmetic Instructions

d)

Bit Manipulation Instructions

21.

A range of ACALL instruction is

a)

2Kbytes

b)

4Kbytes

c)

64Kbytes

d)

256 bytes

22.

Which of the following instructions is used to jump if the accumulator is zero?

a)

JZ label

b)

JC label

c)

JNZ label

d)

JMP label

23.

Which of the following is a data transfer instruction in 8051?

a)

ADD

b)

ORL

c)

ANL

d)

MOV

24.

What is the purpose of the DAA instruction?

a)

Decimal adjust after BCD addition

b)

Divide accumulator

c)

Decrement accumulator

d)

Delete accumulator content

25.

Which instruction is used to copy data from external memory to accumulator?

a)

MOVC

b)

MOVX

c)

PUSH

d)

POP

26.

The instructions of 8051 are classified into

a)

3 groups

b)

5 groups

c)

4 groups

d)

6 groups

27.

What will be the content of accumulator after executing: MOV A #58H followed by SWAP A?

a)

50H

b)

F5H

c)

0FH

d)

85H

28.

For 16-bit addition using 8051 which pair of registers is commonly used to hold the higher byte?

a)

R0 and R1

b)

A and B

c)

R6 and R7

d)

DPH and DPL

29.

Which instruction clears the accumulator?

a)

MOV A, #FFH

b)

SETB A

c)

CPL A

d)

CLR A

30.

In 8051 which bit-addressable register allows individual bit manipulation?

a)

PC

b)

SP

c)

DPTR

d)

PSW

31.

Which instruction increments accumulator by 1

a)

ADD A, #01H

b)

INC A

c)

MOV A, #01H

d)

CLR A

32.

Which instruction is used for multiplication in 8051

a)

MUL AB

b)

MULT A, B

c)

MULA

d)

MULC

33.

Which flag is affected by ADD instruction?

a)

Carry

b)

Overflow

c)

Auxiliary Carry

d)

All of these

34.

The instruction SJMP $ does what?

a)

Stops the program by creating an infinite loop

b)

Skips one instruction

c)

Terminates program

d)

Resets microcontroller

35.

Which instruction moves immediate data to accumulator?

a)

MOV A, R1

b)

MOV A, @R0

c)

MOV A, #30H

d)

MOV R0, A

36.

The MOV instruction in 8051 is used for

a)

Arithmetic addition

b)

Logical AND operation

c)

Transferring data between

registers/memory

d)

Jumping to a subroutine

37.

Which of the following is a machine control instruction?

a)

NOP

b)

MOV

c)

ADD

d)

ANL

38.

What is the purpose of the CJNE instruction?

a)

Compare and jump if not equal

b)

Clear and jump

c)

Call subroutine

d)

Complement and exchange

39.

What is the default value of SP after reset?

a)

00H

b)

08H

c)

07H

d)

FFH

40.

How many addressing modes are used in 8051

a)

4

b)

6

c)

8

d)

5