Search Header Logo
3.2: Addressing Modes

3.2: Addressing Modes

Assessment

Presentation

Computers

Vocational training

Practice Problem

Easy

Created by

Ts. Mohd Asiq Hamdi

Used 4+ times

FREE Resource

28 Slides • 28 Questions

1

media

2

media

3

Multiple Choice

Which of the following best describes the purpose of addressing modes in computer programming?

1

To specify how to access data or operands in memory

2

To determine the speed of the processor

3

To define the programming language syntax

4

To control the power supply to the computer

4

media

5

Multiple Select

Which of the following are valid addressing modes mentioned in the lesson?

1

Immediate addressing mode

2

Indexed addressing mode

3

Register indirect addressing mode

4

Stack addressing mode

6

media

7

Multiple Choice

Which addressing mode allows the instruction itself to contain the operand?

1

Immediate addressing mode

2

Direct addressing mode

3

Indirect addressing mode

4

Register direct addressing mode

8

media

9

media

10

media

11

Multiple Choice

In register direct addressing mode, what does the instruction specify to access the operand?

1

The register number

2

The memory address

3

The immediate value

4

The opcode only

12

media

13

Open Ended

Explain the significance of addressing modes in the execution of machine instructions and provide examples from the lesson to support your answer.

14

Fill in the Blank

Fill in the blank: In register indirect addressing mode, the register contains the ___ of the operand in memory.

15

media

16

Multiple Choice

Which of the following best describes the displacement addressing mode as shown in the diagram?

1

The operand address is calculated by adding a register value to an address field in the instruction.

2

The operand is always at the top of the stack register.

3

The operand is directly specified in the instruction.

4

The operand address is stored in a register.

17

media

18

Multiple Select

Which of the following statements are true about stack addressing mode based on the diagram?

1

Operands are implicitly at the top of the stack register.

2

Opcode is the only part of the instruction explicitly shown.

3

Operands are directly specified in the instruction.

4

Operands are stored in memory at a fixed address.

19

media

20

Open Ended

Explain the difference between register addressing mode and direct addressing mode, providing an example for each.

21

Fill in the Blank

In immediate addressing mode, the operand is specified ___ in the instruction.

22

Multiple Choice

Which addressing mode is used in the instruction 'ADD A, @R0'?

1

Register Addressing

2

Immediate Addressing

3

Register-indirect Addressing

4

Direct Addressing

23

media

24

Multiple Choice

Which of the following is NOT an internal register listed in the post-class exercise?

1

Programme counter

2

Instruction register

3

General purpose register

4

Stack pointer

25

media

26

media

27

media

28

media

29

Fill in the Blank

Fill in the blank: In the LDI instruction, the value of k must be an ___-bit value.

30

Multiple Choice

What is the purpose of the LDI instruction in AVR assembly programming?

1

Load a value from memory into a register

2

Load an immediate value into a register

3

Load a register value into memory

4

Load a register value into another register

31

Multiple Choice

Which registers can be used as the destination register (Rd) in the LDI instruction in AVR assembly programming?

1

R0 to R15

2

R16 to R31

3

R0 to R31

4

R8 to R23

32

media

33

media

34

Open Ended

Compute the final value in register R16 after executing the given AVR assembly program.

35

media

36

Multiple Select

Which of the following are steps a programmer should take before coding a program in a specific language?

1

Understanding the program

2

Developing test data

3

Debugging the code

4

Using design tools to create a model

37

media

38

Open Ended

Explain the IPO (Inputs-Processing-Outputs) approach and its importance in understanding a program.

39

media

40

Multiple Select

Which of the following are examples of input and output devices as shown in the IPO diagram?

1

Sensors

2

LCD monitor

3

Motor

4

RFID

41

Multiple Choice

Which of the following best describes the role of the 'Process' component in the IPO diagram?

1

It stores data for future use.

2

It converts data to information using the CPU.

3

It displays output to the user.

4

It collects input from sensors.

42

media

43

Fill in the Blank

Initially, simple documentation like ___ is used for basic programs.

44

Open Ended

Explain how the use of pseudocode and flowcharts can benefit the process of programming design.

45

media

46

Multiple Choice

What is the main purpose of developing test data during programming design?

1

To create user interfaces

2

To verify if the model delivers accurate results

3

To write program code

4

To design flowcharts

47

media

48

media

49

Multiple Choice

Which of the following is NOT a benefit of a well-designed program?

1

Coding is easy and error free.

2

Testing is simple.

3

Maintenance is difficult.

4

Good documentation is possible.

50

media

51

media

52

media

53

Open Ended

Explain the difference between Data SRAM and EEPROM in the context of AVR microcontrollers, including their typical uses.

54

Multiple Choice

Which register is responsible for holding the position of the program that is currently executing in an AVR microcontroller?

1

Program Counter

2

ALU

3

EEPROM

4

Status & Control

55

Multiple Choice

Addressing modes are an important part of which unit in the programming model?

1

Unit 1

2

Unit 2

3

Unit 3

4

Unit 4

56

Open Ended

What questions do you still have about addressing modes after today's lesson?

media

Show answer

Auto Play

Slide 1 / 56

SLIDE