You create global variables by dragging in a initialize global name to block from the Variables drawer and double-clicking the default name "name" to change its name. Used to insert the items of the AnswerList Used to insert the items of the QuestionList To define the two list variables, you'll need the following blocks: Block Typeĭefines the QuestionList variable (rename it)ĭefines the AnswerList variable (rename it) First, you'll define two list variables, QuestionList to hold the list of questions, and AnswerList to hold the list of corresponding answers. Open the Blocks Editor to add the behaviors for the app.
User clicks to proceed to the next answer Move the button into HorizontalArrangement2. On the Viewer, move the button into HorizontalArrangment2.Ĭhange Text property to "Next". Organizes the AnswerButton and NextButtonĬhange Text property to "Submit". On the Viewer screen, move AnswerText into HorizontalArrangement1.Ĭhange Text property to "Correct/Incorrect". On the Viewer screen, move this label into HorizontalArrangement1.Ĭhange Hint to "Please Enter an Answer".
This is the first picture that should appear.Ĭhange Text property to "Enter Answer:". Set its Picture property to "Larsenberra.jpg". Next, create the following components by dragging them from the Palette into the Viewer and et the properties of the components as described below: Then do the same for the other three images. Click on the "Upload File." button in the Media area and select one of the downloaded files (e.g., Larsenberra.jpg). To create this interface, first load the images you downloaded into the project. When you finish, it should look something like the snapshot below (there are also more detailed instructions below the snapshot). Use the component designer to create the interface for QuizMe.
#A better finder rename block numbers download#
Open the Blocks Editor and connect to the phone.Īlso download the following pictures of baseball players and save them on your computer. Name it QuizMe, and also set the screen's Title to "QuizMe". Getting StartedĬonnect to the App Inventor web site and start a new project. If you are not familiar with the basics, try stepping through some of the basic tutorials before continuing. This tutorial assumes you are familiar with the basics of App Inventor - using the Component Designer to build a user interface, and using the Blocks Editor to specify event-handlers. Later, you can create MakeQuiz & TakeQuiz, an app that lets users of the app create and modify the quiz questions. With QuizMe, the quiz questions are always the same unless you, the programmer, change them. The user enters an answer for each question and the app reports whether each answer is correct or not.