making a quiz app with app inventor 2

404 views
Skip to first unread message

cherry pita

unread,
Jul 1, 2017, 6:29:49 PM7/1/17
to MIT App Inventor Forum

i want to make a quiz app but also want to add a score up for correct answers and dow for wrong answers. how do i get score to carry over to next page? here is an image of what one of the question pages looks like. after answering i can get the "correct" to highlight green and the score to go up one or down one. but when i click to next page score is back to zero.

Nico Marikucza

unread,
Jul 2, 2017, 7:31:07 AM7/2/17
to MIT App Inventor Forum
See aia attached.
Nico
Quiz.aia

cherry pita

unread,
Jul 2, 2017, 9:33:58 AM7/2/17
to MIT App Inventor Forum
wow. thats a lot to take in. i will look and try to break it down and decipher it. i am very very new to this. but thank you for helping. i hope to improve my understanding enough to complete my project the way i want it.

cherry pita

unread,
Jul 2, 2017, 6:34:25 PM7/2/17
to mitappinv...@googlegroups.com
my quiz is four pages  (screens) do i do this on every page? here is sample of what i have so far.
colortestcounterquiz.aia

Abraham Getzler

unread,
Jul 3, 2017, 11:46:25 AM7/3/17
to MIT App Inventor Forum
I looked at your project.

You had one screen per question, hard wired into the app.

The approach is totally wrong if you plan on going past 9 questions.

Find a quiz app that loads its questions and answers from a file,
and works in just one screen.

If this is a class assignment,
it should get a failing grade  in its present form.

ABG


Taifun

unread,
Jul 3, 2017, 5:32:27 PM7/3/17
to MIT App Inventor Forum

cherry pita

unread,
Jul 4, 2017, 12:28:33 AM7/4/17
to mitappinv...@googlegroups.com
i appreciate the criticism. do you have any suggestions on correcting and improving this? i am very new to all of this. it is a personal project for my school. just trying to work out how this works. this way just seemed easy but if its incorrect i have no problem fixing. i also want to add a score keeper for +1 for correct answers and -1 for incorrect. that seems to be harder to figure out. any help is highly welcomed. thank you for looking at it.

cherry pita

unread,
Jul 4, 2017, 4:00:41 AM7/4/17
to MIT App Inventor Forum
ok i have redone quiz to try and learn. now my problem is i cannot get images to change with next question. i dont see what i am doing wrong. 
Testquiz.aia

Abraham Getzler

unread,
Jul 4, 2017, 10:35:32 AM7/4/17
to MIT App Inventor Forum
Your image file names end in .png
but your list of image file names is missing the .png suffixes.

For faster answers, make it easier for your readers
by also posting downloaded images of your blocks,
like attached.

ABG

blocks.png
Media.PNG

cherry pita

unread,
Jul 4, 2017, 7:16:22 PM7/4/17
to MIT App Inventor Forum
apologies on not making easier with pics as well will remember for next time. thank you..

i figured that out about the image .png and made appropriate changes. i am now researching how to keep a score and after last question end the quiz instead of if automatically going back to first question. any suggestions would be great. 
Reply all
Reply to author
Forward
0 new messages