What kind of click are you in quiz




















What appears on the phone? Now program the behavior of the NextButton. You've already defined the currentQuestionIndex to remember the question the user is on. When NextButton is clicked, the app needs to increment this variable, e. For this behavior, you'll need the following blocks:. The first row of blocks increments the variable currentQuestionIndex.

If currentQuestionIndex has a 1 in it, it is changed to 2. If it has a 2, it is changed to 3, and so on. Once the currentQuestionIndex variable has been changed, the app uses it to select the "current" question. Recall that in the Screen. Initialize event-handler, the app selected the first question to display:. When the NextButton is clicked, the app doesn't choose the first item in the list, or the 2nd or 3rd, it chooses the currentQuestionIndex -th item.

The blocks are executed in a right-to-left manner. The app first evaluates the index parameter of select list item , which is the variable currentQuestionIndex. The number is stored in currentQuestionIndex is used as the index when the select list item is executed. When the NextButton is clicked for the first time, the increment blocks will set currentQuestionIndex from 1 to 2, so the app will select the second item from QuestionList , "who pitched the first perfect game of ?

The second time NextButton is clicked, currentQuestionIndex will be set from 2 to 3, and the app will select the 3rd question in the list, "who pitched the first perfect game of the modern era? Test the behavior of the NextButton to see if the app is working correctly thus far. To test, play the role of the user and click the NextButton on the phone. Does the phone display the second question, "Who pitched the first perfect game of ?

If this is working, pat yourself on the back quickly, and then go on. Try clicking the NextButton again a third time. You should see an error: "Attempting to get item 4 of a list of length 3". The app has a bug-- do you know what the problem is? The problem with the app is that it always increments the currentQuestionIndex variable when the NextButton is clicked. When currentQuestionIndex is already 3 and the user clicks the NextButton , the app changes currentQuestionIndex from 3 to 4, then calls select list item to get the currentQuestionIndex -th , or in this case, the 4th item.

Since there are only three items in the variable QuestionList , Android complains. What the app needs to do is ask a question-- check a condition-- when the NextButton is clicked, and execute different blocks dependending on the answer.

One way to ask the question is to ask, "is the variable currentQuestionIndex already 3? The modified when NextButton. Click event-handler should look like this:. When the NextButton is clicked, the app first checks to see if currentQuestionIndex has a 3 in it. If it does, currentQuestionIndex is set back to 0 so that when 1 is added to it with the blocks below, it will be 1 and the quiz will loop back to display the first question.

Note that only the blocks inset within the if-then block are dependent on the condition-- the increment and set set QuestionLabel. Text to blocks are executed under all conditions. Next, you'll modify the app to make it easy to add and remove elements from the list.

You'll rewrite the blocks so that they'll work on any list, not just one with exactly three items. To begin, add a fourth question to QuestionList and another answer into AnswerList.

To do this, you will first need to expand the number of available slots by using the mutator. For more information on how to use the mutator, click here. The blocks should look like this:. Test the modified app. Click the NextButton a number of times. You should see that the fourth question never appears, no matter how many times you click Next. The problem is that the test to see if the user is on the last question is too specific: it asks if the currentQuestionIndex variable is You could just change the number 3 to a 4, and the app would again work correctly.

The problem with this solution, however, is that each time you modify the questions and answers, you also have to remember to make this change. Such dependencies in a computer program often lead to bugs, especially as an app grows in complexity.

It's much better to set the program up so that it will work no matter how many questions there are. Such generality is even more important when the list you are working with changes dynamically, e. The better solution is to ask the question in a more general way. You really want to know if the current question the user is on-- the value of currentQuestionIndex -- is as large as the number of items in QuestionList. If the app asks the question in this more general manner, it will work even when you add to or remove items from the QuestionList.

To modify the when NextButton. Click event-handler you'll replace the previous test that referred directly to 3. You'll need the following blocks:. Your when NextButton. Click event-handler should now appear as:. The if now compares the currentQuestionIndex to the length of the QuestionList. So if currentQuestionIndex has a 4 in it, and the length of the QuestionList is 4, then the currentQuestionIndex will be set to 0 and then 1 after the increment operation in the first row of blocks after the if.

Note that, because the blocks no longer refer to 3 or any specific size, the behavior will work no matter how many items are in the list. Test the modified behavior. When you click the NextButton , does the app now sequence through the four questions, moving to the first one after the fourth?

The current app shows the same image, no matter what question is being asked. You can change this so an image pertaining to each question appears when the NextButton is clicked. Earlier, you added four pictures as media for the project. Now, you'll create a third list, PictureList , with the names of the image files as its items. Click event-handler to switch the picture each time. First, create a PictureList and initialize it with the names of the image files.

Once you're all set, click the play icon to activate your quiz. Before jumping to the first question, make sure to wait for participants to join at www. Your participants will be asked to enter their names. You can track this on the right side of your screen. Afterwards, click the button to display results for the first question.

This will automatically lock the voting and prevent any more votes from coming in. Afterwards, reveal the correct answer and move on to the next question. The leaderboard in Present mode displays 5 participants with the most correct answers and fastest response time. By default, it's displayed after all the questions have been answered.

As an admin, you can track the complete leaderboard throughout the entire session. Click the three vertical dots and select Leaderboard next to your active quiz to do it. By hitting Show to participants you can also display the top 5 players to your audience whenever you wish.

Alternatively, you can also choose to show the interim leaderboard after a round of questions. Please help. Or could that be a simple feature request For our Trivia Night, we are labeling each of the questions by their category, e. This displays perfectly for the audience playing trivia on their phone, but not in presentation mode for our event. Thanks for posting your use case here. I can totally see why it would be useful for you to see the question category. Have you tried switching the order of category and the quiz question?

That way, the category might still be obvious and participants will see it on their devices. If I set good answer for 2 options the points are not awarded as I would expect for any of this answers :. Just to better understand your need, did you want the participant get a point for every correct answer?

Or perhaps divide the single point for any correct answer the participant would select correctly? I am creating a quiz. My questions will be multiple choice questions. Of course not full points, however partial points. I would expect that each participant which choose one of the 2 good option to get the point no matter which one they choose. Thanks for the explanation. When setting up the quiz, it is indeed possible to mark multiple correct options. If you do, then the participants could also choose multiple answers.

If a question requires multiple answers, the bullet points for participants will turn into squares instead of circles:. You can easily test it straight in your Admin mode by creating a testing quiz question and marking multiple answers.

After joining the quiz try to answer the question choosing multiple answers. Hope this helps! Just one more thing about the scoring - for the participant to get a point , they would need to select all correct answers.

Having said that, would you still expect to get partial points if someone has one of two answers correct or 3 out of 4 etc. Could you perhaps share a bit more about who is your audience and why would you like them to get partial points, too? It would help us better understand the need and the potential solution.

Please can you guide me to the right place. Hope that works! If that does not help, feel free to contact our lovely customer care team at support slido. Get someone to show you. Read about it or listen to someone explain it. Figure it out on your own. The faces of the people who were there.

The music that was played. The dance moves you did and the food you ate. People walking past you. Loud noises. An uncomfortable chair. Put on your "mad" face. Yell and scream. Slam doors. Smile from ear to ear. Talk up a storm. Act really hyper. Look for a map or directory that shows you where everything is. Ask someone for directions. Just start walking around until you find what you're looking for.

Art class. Music class. Gym class. Picture the video that goes along with it. Sing or hum along with the music. Start dancing or tapping your foot. Lights that are too bright or too dim. Noises from the hallway or outside the building like traffic or someone cutting the grass. The temperature being too hot or too cold. Listen to music. Exercise walk, run, play sports, etc. Picture the numbers on the phone as you would dial them.

Say it out loud over and over and over. Write it down or store it in your phone contact list. A poster for the wall. A music CD or mp3 download.

A game of some kind or a football or soccer ball, etc. A movie. A concert. An amusement park. Their face but not their name. Their name but not their face. What you talked about with them. A description of building and landmarks they will pass on the way. The names of the roads or streets they will be on. If you are an auditory learner, you learn by hearing and listening. You understand and remember things you have heard.

You store information by the way it sounds, and you have an easier time understanding spoken instructions than written ones. You often learn by reading out loud because you have to hear it or speak it in order to know it. As an auditory learner, you probably hum or talk to yourself or others if you become bored.

People may think you are not paying attention, even though you may be hearing and understanding everything being said. Remember that you need to hear things, not just see things, in order to learn well. If you are a visual learner, you learn by reading or seeing pictures.

You understand and remember things by sight.



0コメント

  • 1000 / 1000