5.124 · exercise

Basic quiz: strings

How text is stored as bytes: character codes, the zero byte that ends a string, the directives that store text, and the instructions that read and write one byte.

0 of 6 correct

Multiple choice

What value does mov w10, 'a' put in w10?

Multiple choice

How many bytes does .ascii "stop" store?

Multiple choice

A loop walks a string one byte at a time. How does it know it has reached the end?

Multiple choice

Which instruction loads one byte from the address in x9 and fills the rest of w11 with zeros?

Multiple choice

After ldrb w10, [x9], w10 holds the code of the character '6'. Which instruction turns it into the number 6?

Multiple choice

A program changes a string in place with strb. Which section must the string be declared in?