App Basics
Design & UI
Events & Interaction
Commands
Debugging & Best Practices
100

What does UI stand for?

User Interface


100

Name one type of UI element you can add in design mode?

Button, Label, text area, text input, image, dropdown, addscreen

100

What does the onEvent block do?

Listens for a user's action and runs code once it happens

100

what does the setText() command do?

Change the text inside a UI element

100

What is debugging ?

Finding and fixing errors in code

200

What's the difference between an app's purpose and its function?

Purpose: Why does the app exist? /What problem is it solving?

Function: What the app actually does

200

What is the importance of naming UI elements instead of leaving them as "button1" or "text_area1"?

Makes code easier to read and prevents confusion.

200

Give one example of an event in an app.

Button click, key press, mouse over, screen change, text input

200

What is the difference between setText() and getText()?

setText: changes

getText: reads the text

200

What should you check first if your button doesn't work in App Lab?

check the elementID

300

True or False: Every app needs to solve real-world problems.

false

300

Why is it important to consider the user experience when designing an app?

So the app is easy to use, intuitive, and enjoyable

300

What happens if you write multiple onEvent blocks for the same button?

All of them will run when the button is clicked

300

What command changes an app's screen?

setScreen("screenId");

300

True or False: Event handlers can only be used with buttons.

False

400

What do we call the process of brainstorming, designing, prototyping, and testing an app?

The Design Process

400

What is the difference between a text area and a label?

Label: displays text only

Text area: displays user input

400

Explain the difference between an event and an event handler.

Event: the action

Event Handler: the code that runs when the event happens

400

What command is used to change an image in an app?

setImageURL

400

Why is it important to use meaningful variable names and element names?

so that your code is readable and easier to debug

500

In AppLab, what is the difference between design mode and code mode?

Design mode: add and arrange UI elements

Code mode: write code to control how the app works

500

What is the purpose of an event-driven program in terms of UI design?

It allows the app to respond to user actions (like clicks or typing)

500

In App Lab, how do you connect a button to make the screen change when clicked?

onEvent("button1", "click", function() 

{

   setScreen("screenId");

});

500

Write the code that changes a label with the ID being scoreLabel to say Game Over! When the button is clicked

onEvent("button", "click", function(){

setText("scoreLabel", "Game Over!");

});

500

You wrote code for a button click, but nothing happens. Name two possible causes.

wrong element ID, missing onEvent, or code has a syntax error