Challenge: Multiple-choice Quiz Application

Test yourself and implement what you have learned so far in this challenge.

Problem statement

Build a small quiz app where pressing buttons will take you to the next question.

The main challenge is to build the app with a stateful widget and increment the list’s index that consists of the questions.

Another challenge is to separate the question and answer widgets into two files and pass them through callbacks. Also, map the list so it returns our desired solution. Finally, display if an answer was correct or wrong.

In this challenge, write all of the code in all three files yourself.

Expected output

The following image is a sample output. Your app’s output can be slightly different based on your approach, but it should satisfy the entire problem statement.

Get hands-on with 1200+ tech skills courses.