انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents

A quiz app

Section 4: ConditionsLesson 4.3 · ⏱ 9 min
Every answer has its button: the right one shows a message and plays a note, and the wrong one shows a message and vibrates the phone
Every answer has its button: the right one shows a message and plays a note, and the wrong one shows a message and vibrates the phone
We tapped 6 (wrong), then 8 (right)
We tapped 6 (wrong), then 8 (right)

💬 show message shows a small message at the bottom of the screen, then it disappears by itself.

📌 Another example: a question with two buttons

Every answer has a button: the right one says “Well done”, and the wrong one vibrates the phone.

The design
The design
The blocks
The blocks
In the lab: the right answer
In the lab: the right answer
✍️ Practise
Project: make a quiz app about a topic you love.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

Type the answer: what is the capital of Egypt?

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: Right ✓

Medium

A question with three choices, and the second is right.

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: Right ✓

Hard

A password: 1234 opens, anything else shows a wrong message.

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: wrong once, then 🔓

Finished the lesson? Mark it so your progress counts.