2. Show Text Code Ordering

2.1. Question 1

A student wants to adjust the text transition speed on a digital prop.
Arrange the code segments below to flash the word “GO” with a highly accelerated custom character delay of 150 milliseconds.
Drag and drop lines into the correct order and click to adjust indentation:
display.show("GO", 150)
while True:
from microbit import *

2.2. Question 2

Rearrange the lines below to create an ongoing loop that flashes a high-voltage warning symbol (“X”) on the LED screen to alert workers.
Drag and drop lines into the correct order and click to adjust indentation:
while True:
from microbit import *
display.clear()
sleep(500)
sleep(500)
display.show("X")

2.3. Question 3

Put the code snippets in order to build a live industrial thermostat display.
The program must scroll the word “TEMP” first, followed immediately by the numeric value for the temperature, inside an ongoing monitoring loop.
Drag and drop lines into the correct order and click to adjust indentation:
display.show(temperature())
while True:
sleep(200)
display.scroll("TEMP", delay=80)
from microbit import *

2.4. Question 4

Order the lines below to build a secure message transmitter.
The script should store a secret password string inside a variable named passcode first, and then continuously flash that variable character by character.
Drag and drop lines into the correct order and click to adjust indentation:
passcode = "ZEBRA"
while True:
from microbit import *
display.show(passcode)

2.5. Question 5

Rearrange the code segments to build an AFL stats app.
The micro:bit should flash the label text “HIGH SCORE=” with a crisp delay of 150 milliseconds, and then immediately flash the highest ever score variable right after it.
Drag and drop lines into the correct order and click to adjust indentation:
display.show("HIGH SCORE=", 150)
from microbit import *
highest_score = "37.17 239"
while True:
display.show(highest_score)