how to calculate correct answers and wrong answers in a quiz app
another example: A Multiple Choice Quiz: How to work with the advanced features
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
I created the app as you told. But I Want to tell user given answer is right with background color of selected button is green color, else background color is red when user click the option.
How to do it ?
Please help I am going to create educational quiz app ?
Show us what you created, .aia and Blocks.
I see what you did wrong.
The original app did not bother to help the quiz taker know what he got right or wrong. It waited until the end of the quiz before checking the newly completed list of student answers against the official list, just to calculate a total score.
You tried to squeeze question by question feedback into that end-of-test summation pass, without pausing to show the questions and answers along with the colors.
You need to decide when you want to show your feedback:
- after each question is answered and before the user clicks a (new) Next Question button, or
- after the test is finished and a second pass of the questions and answers is started, also with Next and/or PREV buttons to walk the questions and answers, one by one.
Which approach would you try?
I wanted to show my feedback when student answer that question and after that student will click next button to go ahead
I made quiz app there I did this. But by that method it increases number of blocks. I want to reduce it.
Please download and post each of those event block(s)/procedures here ...
(sample video)
Export your .aia file and upload it here.
(we can't read collapsed blocks and we can't edit screenshots).
Don't you find it contradictory to set answer background colors to all different pastel colors then switch their color scheme when answered?
Also, you are at the point where you should consider loading your lists from Media .csv files, rather than from hardcoded block lists.
FirstMarathiEnglishQuizApp.aia (115.0 KB)
If I can create it with csv then I can create more questions for students. Now due to more blocks I have limitation of question.
So please solve my problem.
The first step in reducing blocks is to get all the questions, answer candidates, and correct answers out of text blocks and into a spreadsheet, so it can be exported as a csv text file and loaded into the Media folder.
Columns for a quiz:
- question
- correct answer
- answer for button 1
- answer for button 2
- answer for button 3
- answer for button 4
Thanks for reply but how to implement it and with the use of spreadsheet can I make offline app ?
Is it possible to show with blocks ?
in this case you can use files in csv format, probably easiest is to have a file with the questions like this
This is question 1
This is question 2
This is question 3
and another file with the answers
This is the correct answer for Q1, another answer 1,another answer 2, another answer 3
This is the correct answer for Q2, another answer 1,another answer 2, another answer 3
This is the correct answer for Q3, another answer 1,another answer 2, another answer 3
store the files in the assets, read them on first run of the app, convert them into lists and assign them to the question and answers list
do a search in the community for these steps in case you need help...
A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .
Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
Thank You. I will study these.
Sorry sir but I I didn't find any tutorial for this in community. I am eagerly want to make app for my students. please can you help me?
Yes. I understand how to store questions and answer in list. I got how to create the quiz and display result after user solve all questions. But I want to set background color green of button which user clicks if it is correct answer else red.And the background color of button should set green which has correct answer.
That is the point which I am not understanding. Sorry to bother you.
Devise a way for the user to spend time to see the colors you set in response to their answer.