What data type would store a person’s name
Text, Number, or Boolean?
What does a loop do in programming?
It repeats a set of instructions multiple times
What block is used to make a decision in MIT App Inventor?
The “if” or “if-else” conditional block.
What is a list used for in MIT App Inventor?
To store a collection of items (e.g., names, scores) in one variable.
What data type would store a person’s name — Text, Number, or Boolean?
Text
What is the name of the block in MIT App Inventor used to repeat actions a certain number of times?
The “for each number from … to … do” or "repeat … times" block.
What does an if-else block do
It tests a condition; if it’s true, do one set of actions; otherwise, do another set.
What block do you use to add an item to a list?
The “add items to list” block or “add item to list” block
If you need to store the number of lives left in a game, which data type would you use?
Number (integer or numeric type)
If you wanted a sprite to move 10 steps forward 5 times, what kind of loop could you use?
Use a “repeat 5 times” loop, with move-forward(10) inside it.
Create a conditional that checks if a score is greater than 50 — if true, show “You Win!”, else show “Try Again!”
if score > 50:
set Label.Text to "You Win!"
else:
set Label.Text to "Try Again!"
How would you get the first item from a list called PlayerNames?
Use “select list item list PlayerNames index 1”
In MIT App Inventor, what type of block do you use to convert a number to text for display in a Label
Use the “number → text” block (or “text from number”) block under Text.
How would you make a loop that repeats until the player’s score reaches 10?
Use a “while” or “repeat until” block: repeat until score = 10
How can you combine multiple conditions, such as checking if the score is above 10 and time is below 30 seconds?
Use logical operators and, or
If you have a list of colors, how could you make the background change to a random color from that list?
index = random integer from 1 to length of colorList
color = select list item list colorList index index
set BackgroundColor to color
Explain the difference between Text and Number data types when used in math operations.
A Number can be used in numeric operations (addition, subtraction, etc.). If you treat text that looks like a number as Text, arithmetic won’t work correctly — it’s treated as string concatenation or error.
Write or describe an example of using a loop to check every item in a list for a specific value.
for each item in MyList:
if item = targetValue then
doSomething
Describe a real-life example in an app where conditionals are used to control what happens next.
If a user presses “Submit” and the fields are valid, show a “Thank you” message; otherwise show an error.
In a game: if health ≤ 0, show “Game Over” else continue.
Describe how you could use a loop and a list together to display every student’s name from a list
for each name in StudentList:
display name (e.g., add to Label or ListView or show one by one)