You are on page 1of 3

Simple Quiz Guide

1. Put the User Interface and Layout components on the Phone Screen in the order and
arrangement as below:

(Label2 and TexBox1 and inside HorizontalArrangement1 – Click and drag them on the phone
screen to place them into the Horizontal Arrangement Box)
Note: The Horizontal Arrangement is being used to group components side by side e.g. Enter
Answer with a box to type in.

Rename the Components as follows:

2. Upload the image files from Teams


3. Click on Image1 in Components and upload the AllBlacks.png image in the Picture Property
4. Click on Question Label in Components and type the question for the User in the Text
Property (The All Blacks are the international rugby team of which country?)
5. Click on AnswerBox Change the width Property to Fill Parent.
6. Click on AnswerPromptLabel component. In the Text property type Enter Answer:
7. Click on the AnswerText component. Change the width Property to Fill Parent.
8. Click on RightWrongBox. Change the width Property to Fill Parent.
9. Click on the RightWrongLabel. Type the text “ That is “ into the text property
10. Click on the Result component. Change the width Property to Fill Parent.
11. Click on the AnswerButton component. In the Text property type Submit
12. Click on the NextButton component. In the Text Property type Next.

The code needed is shown below:


!!! Each Block is in the menu for the component it is associated with or the Built-in Blocks menu if it is
not associated with a specific block i.e the when AnswerButton.click block will be found when you click
on the answer button in the Blocks menu, Call AnswerText will be found when you click on AnswerText
and so on !!!
1. Click on Blocks (top right)
2. Click on the AnswerButton block and create the code:
3. Click on the NextButton block and create the Code

Note: Screen 2 does not exist yet.


To create Screen 2:
1. Click on Add Screen
2. Type in Screen 2 and click on 0k

You are going to Copy Screen1 and paste it on to Screen 2. To do this:

1. Click on Screen 1
2. Press Ctrl-C to copy
3. Select Screen2 from the drop down list
4. Click on the screen and press Ctrl-V

You need to change the image, question and correct answer.

Note: You can add up to 10 Screens.


REMEMBER TO TEST THE PROGRAM

You might also like