wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz on ARM Cortex-M4 Microcontroller

Total questions: 25

Worksheet time: 23mins

Name
Class
Date
1.

What is ARM?

4 lines
2.

What is Cortex?

4 lines
3.

What is M4?

4 lines
4.

What is an ARM Microcontroller?

4 lines
5.

What are the modes based on instruction set states in ARM architecture?

a)

ARM Mode

b)

Thumb Mode

c)

Thumb-2

6.

What are the seven modes during execution of an ARM processor?

a)

User mode

b)

FIQ

c)

Abort

d)

Supervisor

e)

IRQ

7.

What is the purpose of the Stack Pointer (SP)?

a)

To store the return address of subroutines

b)

To hold the address of the next instruction

c)

To manage memory as a Last-In-First-Out (LIFO) buffer

d)

To store the current status of the processor

8.

What does the Current Program Status Register (CPSR) contain?

a)

The address of the next instruction

b)

The current status of the processor

c)

The return address of the last subroutine

d)

The stack pointer value

9.

What happens during a reset in ARM Cortex-M4?

a)

The processor fetches the initial SP value

b)

The processor fetches the Reset Handler address

c)

Execution begins at the Reset Handler

d)

All of the above

10.

What is the function of the Link Register (LR)?

a)

To store the current status of the processor

b)

To hold the return address of subroutines

c)

To manage the stack memory

d)

To store the address of the next instruction

11.

What is the significance of the Negative Flag in CPSR?

a)

Indicates whether the result is negative

b)

Indicates whether the result is zero

c)

Represents a carry out from the MSB

d)

Represents a signed overflow condition

12.

What is the instruction size in ARM state?

a)

16 bits

b)

32 bits

c)

8 bits

d)

64 bits

13.

What is the purpose of the Saved Program Status Register (SPSR)?

a)

To preserve the value of CPSR during exceptions

b)

To store the return address of subroutines

c)

To manage the stack memory

d)

To hold the address of the next instruction

14.

What does the Carry Flag represent?

a)

Indicates whether the result is negative

b)

Indicates whether the result is zero

c)

Represents a carry out from the MSB

d)

Represents a signed overflow condition

15.

What is the function of the Barrel Shifter?

a)

To perform arithmetic operations

b)

To pre-shift and rotate operands

c)

To manage memory access

d)

To store the return address of subroutines

16.

What is the main characteristic of Load Store Architecture?

a)

Memory access differs from logical and arithmetic operations

b)

All instructions are 32 bits

c)

It uses a single register for all operations

d)

It allows direct memory access for all operations

17.

What is the role of the Program Counter (PC) in ARM architecture?

a)

To preserve the value of CPSR during exceptions

b)

To manage the stack memory

c)

To hold the address of the next instruction to be executed

d)

To store the return address of subroutines

18.

What does the Overflow Flag indicate in the CPSR?

a)

Represents a signed overflow condition

b)

Represents a carry out from the MSB

c)

Indicates whether the result is zero

d)

Indicates whether the result is negative

19.

What is the purpose of the Link Register (LR) during function calls?

a)

To store the address of the next instruction

b)

To hold the return address of the calling function

c)

To store the current status of the processor

d)

To manage the stack memory

20.

What is the purpose of the Data Processing Instructions in ARM architecture?

a)

To perform logical and arithmetic operations on data

b)

To manage memory access

c)

To control the flow of execution

d)

To handle exceptions

21.

What is the function of the Memory Management Unit (MMU) in ARM systems?

a)

To store the return address of subroutines

b)

To manage the stack memory

c)

To translate virtual addresses to physical addresses

d)

To perform arithmetic operations

22.

What does the Instruction Fetch stage do in the ARM pipeline?

a)

Fetches the next instruction from memory

b)

Decodes the fetched instruction

c)

Executes the instruction

d)

Writes back the result to memory

23.

What is the function of the Program Status Register (PSR) in ARM architecture?

a)

To store the return address of subroutines

b)

To manage memory access

c)

To indicate the current state of the processor

d)

To hold the address of the next instruction

24.

What does the Instruction Decode stage do in the ARM pipeline?

a)

Decodes the fetched instruction

b)

Fetches the next instruction from memory

c)

Writes back the result to memory

d)

Executes the instruction

25.

What is the purpose of the Control Register in ARM systems?

a)

To hold the address of the next instruction

b)

To preserve the value of CPSR during exceptions

c)

To store the current status of the processor

d)

To manage the execution of instructions