5.103 · exercise

Intermediate quiz: external data

Where a program's data lives: the .text, .data, and .bss sections, the string directives, and how adrp forms an address.

0 of 5 correct

Multiple choice

How does the adrp instruction compute the address it writes to its destination register?

Multiple choice

Why does it not make sense to give a .bss item a non-zero initial value with a directive such as .word or .hword?

Multiple choice

What is the key difference between the .ascii and .string directives?

Multiple choice

In the memory layout used in the course, which region comes immediately after .data as addresses increase?

Multiple choice

What is the initial value of a static variable in C that is declared without an initializer, such as static int count;?