wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Viva_batch1_MC

Total questions: 26

Worksheet time: 13mins

Name
Class
Date
1.

What are the main components of the 89C51 architecture?

a)

Network Interface Card (NIC)

b)

Flash Memory

c)

Graphics Processing Unit (GPU)

d)

CPU, RAM, ROM, I/O ports, Timers/Counters

2.

Describe the function of the ALU in the 89C51 microcontroller.

a)

The ALU stores data in memory locations.

b)

The ALU manages input and output operations.

c)

The ALU performs arithmetic and logical operations in the 89C51 microcontroller.

d)

The ALU controls the clock speed of the microcontroller.

3.

What is the role of the program counter in the 89C51?

a)

The program counter stores data values for processing.

b)

The program counter manages input/output operations.

c)

The program counter is responsible for memory allocation.

d)

The program counter holds the address of the next instruction to be executed.

4.

How many bits is the data bus of the 89C51?

a)

32 bits

b)

16 bits

c)

4 bits

d)

8 bits

5.

Explain the purpose of the stack in the 89C51 architecture.

a)

The stack manages hardware interrupts and timers.

b)

The stack is used for storing global variables.

c)

The stack is primarily for data input and output operations.

d)

The stack in the 89C51 architecture is used for managing function calls, return addresses, and local variables.

6.

What is the significance of the SFRs in the 89C51?

a)

SFRs are crucial for controlling hardware functions and accessing internal resources in the 89C51 microcontroller.

b)

SFRs are irrelevant to the operation of the 89C51.

c)

SFRs are only for power management in the 89C51.

d)

SFRs are used for programming languages in the 89C51.

7.

How do you initialize the 89C51 microcontroller in assembly language?

a)

MOV DPTR, #00h; Initialize data pointer

b)

MOV A, #0; Clear accumulator

c)

MOV SP, #7Fh; Set stack pointer to 7Fh

d)

MOV R0, #0; Initialize register R0

8.

What is the instruction format used in 89C51 assembly language?

a)

Single operand instruction

b)

No specific format required

c)

Opcode followed by operands

d)

Operands followed by opcode

9.

Explain the difference between immediate and direct addressing modes in 89C51.

a)

Immediate addressing mode uses a memory address, while direct addressing mode uses a constant value.

b)

Immediate addressing mode is faster than direct addressing mode, which is slower.

c)

Direct addressing mode allows for indirect memory access, while immediate addressing mode does not.

d)

Immediate addressing mode uses a constant value, while direct addressing mode specifies a memory address.

10.

What is the purpose of the MOV instruction in assembly language?

a)

To define a loop structure.

b)

To allocate memory for variables.

c)

To transfer data between locations.

d)

To perform arithmetic operations.

11.

How does the 89C51 handle interrupts?

a)

The 89C51 handles interrupts through polling instead of a vector table.

b)

The 89C51 uses a single interrupt source only.

c)

The 89C51 handles interrupts using a vector table and supports five interrupt sources.

d)

The 89C51 does not support interrupts at all.

12.

What are the different types of interrupts available in the 89C51?

a)

External Interrupt 0, Timer 0 Interrupt, External Interrupt 1, Timer 1 Interrupt, Serial Communication Interrupt

b)

Memory Overflow Interrupt

c)

Power Failure Interrupt

d)

Data Corruption Interrupt

13.

Describe the function of Timer 0 in the 89C51 microcontroller.

a)

Timer 0 is responsible for controlling the power supply.

b)

Timer 0 is used for timing, counting, and generating delays in the 89C51 microcontroller.

c)

Timer 0 is exclusively for input/output operations.

d)

Timer 0 is only used for serial communication.

14.

How can you configure Timer 1 for a specific mode in the 89C51?

a)

Set TMOD to 0x20 for Mode 1, load TH1 and TL1, and set TR1 in TCON.

b)

Set TMOD to 0x10 for Mode 2, load TH2 and TL2, and set TR2 in TCON.

c)

Set TMOD to 0x00 for Mode 0, load TH1 and TL1, and set TR0 in TCON.

d)

Set TMOD to 0x30 for Mode 3, load TH1 and TL1, and set TR1 in TCON.

15.

What is the maximum memory size that can be addressed by the 89C51?

a)

256KB

b)

128KB

c)

64KB

d)

32KB

16.

Explain the difference between internal and external RAM in the 89C51.

a)

Internal RAM is slower but has more capacity than external RAM.

b)

Internal RAM is built-in and faster, while external RAM is connected externally and offers more capacity but is slower.

c)

Internal RAM is connected externally and offers less capacity than external RAM.

d)

External RAM is built-in and faster than internal RAM.

17.

What is the purpose of the data memory in the 89C51?

a)

To execute the program instructions directly.

b)

To permanently store the program code.

c)

To manage input and output devices.

d)

To store temporary data and variables during program execution.

18.

How is the program memory organized in the 89C51?

a)

The program memory in the 89C51 is only 1KB of internal ROM.

b)

The program memory in the 89C51 is organized into 4KB of internal ROM and can be expanded with external memory.

c)

The program memory is organized into 8KB of internal RAM.

d)

The program memory cannot be expanded with external memory.

19.

What are the advantages of using assembly language for programming the 89C51?

a)

Advantages of using assembly language for programming the 89C51 include direct hardware control, faster execution speed, precise timing, and smaller code size.

b)

Automatic memory management

c)

Easier debugging process

d)

Higher-level abstraction

20.

Describe how to write a simple delay routine in assembly for the 89C51.

a)

DELAY_LOOP: JMP DELAY_LOOP

b)

MOV R0, #255 DELAY_LOOP: NOP NOP NOP NOP DJNZ R0, DELAY_LOOP RET

c)

MOV R0, #255; CLR R0

d)

MOV R0, #0

21.

What is the function of the serial port in the 89C51 microcontroller?

a)

To control the operation of Timer 0.

b)

To provide a connection for external memory.

c)

To facilitate communication with other devices using serial data transmission.

d)

To manage power supply to the microcontroller.

22.

How can you set up an external interrupt in the 89C51?

a)

By loading the interrupt service routine into the program memory.

b)

By setting the appropriate bits in the IE register.

c)

By using the TMOD register to enable interrupts.

d)

By configuring the interrupt vector table.

23.

What is the purpose of the TH0 and TL0 registers in the 89C51?

a)

They manage the program counter's address.

b)

They are used for data input and output operations.

c)

They hold the high and low byte values for Timer 0 operations.

d)

They are used to store the current state of the ALU.

24.

What is the function of the Timer 1 in the 89C51 microcontroller?

a)

Timer 1 is responsible for managing the serial communication.

b)

Timer 1 is utilized for timing, counting, and generating delays in the 89C51 microcontroller.

c)

Timer 1 is exclusively for handling external interrupts.

d)

Timer 1 is used for generating PWM signals.

25.

How do you enable the serial communication in the 89C51 microcontroller?

a)

By loading the data into the TH0 register.

b)

By configuring the TMOD register.

c)

By initializing the stack pointer.

d)

By setting the SCON register appropriately.

26.

What is the role of the PSW register in the 89C51 microcontroller?

a)

The PSW register is responsible for handling external interrupts.

b)

The PSW register is used for managing the stack operations.

c)

The PSW register holds the status of the program counter.

d)

The PSW register contains the status flags and control bits for the ALU operations.