5.102 · exercise

Basic quiz: external data

Where a program's data lives in .data, .bss, and .text, how character constants are written, and how argc and argv reach main.

0 of 5 correct

Multiple choice

Which memory section holds data that the programmer initializes and that the program can still write to while it runs?

Multiple choice

Where does a local (automatic) variable in a C function live while that function runs?

Multiple choice

A program is entered as main(int argc, char *argv[]). Which registers hold argc and argv on entry?

Multiple choice

Which of these is stored in the .text section?

Multiple choice

How is the character constant Z written as an immediate (a constant inside the instruction) in AArch64 assembly?