Making a Quiz App: Multiple Choice

Поділитися
Вставка
  • Опубліковано 14 гру 2024

КОМЕНТАРІ • 97

  • @rexverdz2579
    @rexverdz2579 7 років тому +2

    this tutorial is the "BEST" tutorial I've ever seen here in youtube. I like the way you explain, they're understandable. even a grade 3 student could follow. Great job! hoping to see your other tutorials in the future. Thanks. God bless you and your family! fm the PHILIPPINES.

  • @Destroyer_of_Worlds
    @Destroyer_of_Worlds 4 роки тому +3

    I was having a really hard time with my programming project, but this was very helpful. Subscribed.

  • @ikestudios2590
    @ikestudios2590 6 років тому +1

    HELLO PLEASE AM TRYING TO ADD THE SCORE TO IT BUT ONLY THE QUESTION IS BEEN SCORED THE REST CANT BE SCORED PLEASE HELP ME OUT.

  • @saathvika3550
    @saathvika3550 7 років тому +1

    I have designed three levels in my game. Each level has 12 questions. For each question you answer correctly, you get 1 point. But, in a level, if you answer more than three questions wrong, then you have to restart the level. I want to make it in such a way that only when the user answers all the questions correctly in level 1, he can go to the next level.
    Thx for your prompt reply... Your tutorials were very helpful for designing the quiz and keeping track of the score.

    • @PagetTeaches
      @PagetTeaches  7 років тому

      OK, so you have a variable called Level. Start at zero.
      You also make a variable for CorrectAnswersThisLevel. Start it at zero, as well.
      When the game picks a question to display, the number is (Level * 12) + QuestionNumber
      Every time they get a question right, you add one to CorrectAnswersThisLevel and run a check: Is QuestionNumber == 12 and CorrectAnswersThisLevel> 9? If so, increase Level by one and set QuestionNumber and CorrectAnswersThisLevel back to zero. Otherwise, just set both variables back to zero, so they have to play the level again.

  • @HusseinMzuory_GIS
    @HusseinMzuory_GIS 7 років тому

    how can i ( copy) all the block and the designer from screen1 to screen2 ???? ?
    i mean how can i duplicate screen1 for example

  • @rachidbacchus6659
    @rachidbacchus6659 6 років тому

    How to open a new screen at the end of the quiz ? i tried to replace " set global number question number to 1 by open another screen" but it gives an error : Select list item: Attempt to get item number 4 of a list of length 3. what i have to do please?

  • @riven8789
    @riven8789 4 роки тому

    How do you go from this to next screen? PLEASE HELP

  • @sofeaanisa4761
    @sofeaanisa4761 4 роки тому

    hi i want to ask why my pictures wont come out? i mean for the initialize global pictures, it said that there is error

  • @vinnicole240
    @vinnicole240 7 років тому +2

    THANKYOU SO MUCH! I HAVE FINALLY MADE MY OWN APP!! :D

  • @yohannimo8153
    @yohannimo8153 6 років тому

    Hi,
    is it possible to make this quiz dynamic from web or firebase. in case pictures or question are change it change automaticly in the app ?
    thank you in advance

  • @ninaschafer5117
    @ninaschafer5117 6 років тому

    I`ve just started my project and got a few questions. I use Checkboxes rather than buttons, but the number of possible answers varies between 2 and 8 (more than one can be right). Is there a way to set the Checkboxes, which do not have text for the current question, invisible?
    Also some of the possible answers in the Checkboxes are too long to be displayed entirely. Can I make it so, that they use 2 rows so that they are still readable?

  • @artineskandari7201
    @artineskandari7201 7 років тому +1

    So if it helps :my problem is that you showed this quiz only for one screen I have these blocks and this design for 4 screen what do I need to change because you explained it (example): initialize global answers to make a list... and I have this 4 times for every single category what do I need to change for that?
    Example: category chemistry: initialize global answers
    Chemistry to...
    Now category games: initialize global answers games to..
    Is that so right?

    • @PagetTeaches
      @PagetTeaches  7 років тому

      Hi, sorry this comment went into spam so I didn't see it. Did you manage to solve it?

  • @mymarathischool
    @mymarathischool 6 років тому

    You are a great teacher!!
    I am facing problem with scoring system. Will you help me ?

  • @saathvika3550
    @saathvika3550 7 років тому

    How do you lock & unlock levels in a quiz game with different levels of difficulty in app inventor?

    • @PagetTeaches
      @PagetTeaches  7 років тому

      That's not a straightforward question! It raises lots of follow-up questions:
      What does a player have to do to "unlock" the next level? Get a certain score? Answer all previous questions correctly?
      Do they need to select a level by pressing a button, or do the next questions simply appear?
      Can they still go back and repeat the earlier level questions? How would they navigate this?
      It's going to come down to some sort of variable to store the "currentLevel", and some code to check which level we're on when displaying questions.

  • @IPG_888
    @IPG_888 7 років тому

    Hi! Great video! I need to do a similar a app, but using questions and multiple choice answers from a database. Is it possible to do that with App Inventory?

  • @artineskandari7201
    @artineskandari7201 7 років тому +1

    So I have a quiz with 4 categories and i have in every category 10 questions but my app is without pictures. I wanted to ask : my first screen shows the categories you can choose you click on one and then I think so the quiz starts but when the quiz is finished I need to go back to screen 1 she'll I put something like when question 10 click go to screen one I don't know how to do that and I haven't much time so it would be nice if I could get help in a few minutes thx ;)

    • @PagetTeaches
      @PagetTeaches  7 років тому

      Artin Eskandari I don't think I can explain how to use multiple screens in a UA-cam comment in a few minutes. sorry!

  • @user-bc4rn1jw7e
    @user-bc4rn1jw7e 7 років тому

    Is there a way to make it so that there can be both multichoice and typing in answers on the same page? At the moment, I have only found out how to make the two different methods of answering on different screens. The problem with this is that I am having too many screens which causes a lag in the app, and it makes the scoring system more difficult as I am using a tinyDB but that introduces a lot of other problems. Of you could please reply that would be very helpful

    • @PagetTeaches
      @PagetTeaches  7 років тому

      Laura Kang of course! I'm guessing you want it to work so that some questions are multi choice and some are typed in. I would make another list called something like QuestionType. This would contain a simple indication of whether each question is typed or multi choice. Maybe it could be 1 for typed or 2 for multi.
      I would put both typed of controls on the screen, but only display one set at a time.
      When a new question is loaded, I would check the QuestionType list to see what type it was. Then I would hide or show the relevant controls. I don't think you'd have to change any of the other code, because it wouldn't be possible for the user to press the wrong button if it was hidden.
      Does that make sense?

  • @miracleanyanegbu2565
    @miracleanyanegbu2565 7 років тому

    hi , I have followed your tutorial and i still get error codes . for example The operation index in list cannot accept the arguments: , [(berry.jpg book.png calf.jpg peach.png bunny.gif cherry.png cat.jpg key.jpg)], [7]
    Note: You will not see another error reported for 5 seconds.

    • @PagetTeaches
      @PagetTeaches  7 років тому

      It sounds to me like you have got the two inputs the wrong way round in a "Select List Item" block. The item in the top slot should be the list, and the one in the bottom slot should be a number.
      If that's not the problem, let me know and we'll sort out an email you can send a screen shot to.

  • @krishnamahat
    @krishnamahat 7 років тому

    hey thanks for tutorial but still am facing one problem.
    For eg Lets say if Q No 1 answer is on Button 2 and Q No 2 answer is on Button 4 and several other questions have there answers on several different button using this logic didnot work for all the questions, it works for only first question. What is this am i getting it wrong way or still there is some more logic to be added. Please HELP!!!

    • @PagetTeaches
      @PagetTeaches  7 років тому

      It should work for all questions. The Answers list contains the number of the button that has the right answer for each question. So for Q1 in my example, it's button 4. For Q2 it's button 1. For Q3 it's button 4 again. Each Choice button checks to see if it's the correct button when it is pressed.Did you try downloading the demo file from the description?

    • @user-hf2qy5gh2f
      @user-hf2qy5gh2f 6 років тому

      @@PagetTeaches I have the same problem button 1 is the only button that works

  • @ikestudios2590
    @ikestudios2590 6 років тому

    THANKS FOR YOUR HELP BUT STILL NEEDS HELP. AM DESIGNING AN APP OF WHICH THE QUESTION IS IN A PICTURE FORM AND THE ANSWER IS ALSO IN THE IMAGE FORM SO ONE NEEDS TO CHOOSE FROM OPTIONS A,B AND C. IF YOU GET IT WRONG THERE WILL BE ACROSS SIGN AND IF YOU GET IT CORRECT THERE WILL BE A TICK SIGN. THIS IS THE IDEA I HAVE IN MIND KINDLY HELP ME OUT.

    • @PagetTeaches
      @PagetTeaches  6 років тому

      You can replace the buttons with pictures, and instead of storing the answers as text, store the name of the image in the list. When you switch to a new question, load the new images into the buttons.

    • @ikestudios2590
      @ikestudios2590 6 років тому

      THANKS ....I HAVE BEEN ABLE TO DO IT NOW......AM MUCH EXCITED .......YOU HAVE REALLY HELP ME

    • @ikestudios2590
      @ikestudios2590 6 років тому

      PLEASE I WANT TO SCORE BUT ONLY THE FIRST QUESTION IS BEEN SCORED AND THE REST CANT BE SCORED. I HAVE 5 QUESTIONS. KINDLY HELP ME OUT.THANK YOU.

  • @saathvika3550
    @saathvika3550 7 років тому

    how do I change the screen's name i.e. make screen 2 appear before screen 1?

    • @StevePagetWorld
      @StevePagetWorld 7 років тому

      I'm pretty sure this is not possible! It's one of the limitations of App Inventor.

  • @GROUP1-tj7df
    @GROUP1-tj7df 8 місяців тому

    Thank you for helping me do my project i love you so much

  • @MaskMage
    @MaskMage 7 років тому

    Hello, thanks for your tutorial! I have a question: in your tutorial, you show the condition of Green button or red button (correct / incorrect answer). In your .aia file in download, there aren't those blocks but it works. Can you explain me?

    • @PagetTeaches
      @PagetTeaches  7 років тому +1

      Of course! In the .aia, those blocks are collapsed to save on screen space. If you look at the top left of the code area you'll see them. They look broken. If you right-click and expand them, you'll see the code for the buttons.

    • @MaskMage
      @MaskMage 7 років тому

      Paget Teaches... thank you!!!!!!!

    • @PagetTeaches
      @PagetTeaches  7 років тому

      You're very welcome!

  • @strawberrypushpop
    @strawberrypushpop 9 місяців тому

    hello sir! i have some urgent questions about modifying this code, is it possible to consult you directly? via email is fine too!!!

  • @whatistrue2278
    @whatistrue2278 4 роки тому

    Thank you , You have done a great job.

  • @nikobellic2086
    @nikobellic2086 4 роки тому

    thanks! you explain everything very clearly

  • @Joshua-lq9co
    @Joshua-lq9co 7 років тому

    how do you set up a scoring system for this app ??????????? Please

    • @PagetTeaches
      @PagetTeaches  7 років тому

      There's a video for that!
      ua-cam.com/video/X2pBSpE1CPY/v-deo.html

    • @Joshua-lq9co
      @Joshua-lq9co 7 років тому

      Ive been watching that video but i am confused how to set it up for the multiple choice quiz

    • @PagetTeaches
      @PagetTeaches  7 років тому

      It's the same principle. Create a global score variable. Increase it by one every time they get a question right.
      Of course, if you have set up your quiz to loop your questions or randomly selecting them, you'll end up having a score that keeps on going up and up. Maybe a percentage correct score would be a better measure of success?
      To do this, have two variable. One that counts the QuestionsCorrect (QC) and one for QuestionsAnswered (QA). The score would be QC/QA*100
      Stick that on a label somewhere on the screen and you're done!

    • @Joshua-lq9co
      @Joshua-lq9co 7 років тому

      (sorry for all the questions i am still trying to learn this for collage)
      would you put "get global score to get global score + 1" under the block where you change the background colour of the buttons to green. ??

    • @PagetTeaches
      @PagetTeaches  7 років тому

      Yes, that's right. That's the bit of code that deals with a correct answer.

  • @TheAcidburn007
    @TheAcidburn007 7 років тому

    Hey, great video! I was just wondering whether it is possible to display the questions by taking them from a database rather than hard coding it?

    • @StevePagetWorld
      @StevePagetWorld 7 років тому

      TheAcidburn007 Sure. What sort of database are you thinking of? Where's it hosted?

    • @TheAcidburn007
      @TheAcidburn007 7 років тому

      +Steve Paget Through a Web source?

  • @abderrahimmoudrikah3437
    @abderrahimmoudrikah3437 7 років тому

    Thank you, I just want to ask about something, after closing the app, does it going to remember the closing point when I reopen it ?
    Ex: I've answered the question 1 "Cat" then I closed the app in question 2 without answering, next time when I reopen it, am I going to start over from the question 1 or it's going to remember where I closed it.
    Please I want to know how to make an app remember the closing point

    • @StevePagetWorld
      @StevePagetWorld 7 років тому

      Abderrahim Moudrikah Hi! No, the app does not store any data between sessions. If you want to save things, look into the TinyDB control in the help functions.

    • @abderrahimmoudrikah3437
      @abderrahimmoudrikah3437 7 років тому

      Thank you !

  • @b-maths7895
    @b-maths7895 6 років тому

    I want to make a question and answer quiz. I just want to replace the image with a question. How do I do that? Please help. And Paget you are AMAZING!!!

    • @PagetTeaches
      @PagetTeaches  6 років тому

      Instead of the image box, use a label box. Instead of the image name in the list, use the text for the question. Instead of loading the image into the image box, update the text for the label.

  • @thenatous_
    @thenatous_ 5 років тому

    very quality turtorial. thanks so much!

  • @Blu_Maryze
    @Blu_Maryze 7 років тому

    I have a question.
    How can I make it so that the app has to wait, let's say in Question 1, until the user clicks the right answer?
    Thank you for this tutorial, it really helped!!

    • @PagetTeaches
      @PagetTeaches  7 років тому +1

      in the code for each Answer button, simply move the Next Question block so that it sits inside the "correct" IF block (just after it makes the button green). then it will only be called on a correct answer.

    • @PagetTeaches
      @PagetTeaches  7 років тому +1

      Sorry, you probably have a block that activates the timer instead of a Next Question block.

    • @Blu_Maryze
      @Blu_Maryze 7 років тому

      Paget Teaches... Thank you very much!!! I'll try it as soon as possible! Again, thank you!

  • @rommelbalala8713
    @rommelbalala8713 7 років тому

    Very helpful video. Can you please make a video on how to do randomize quiz? That means you have a folder of questions(say 100) and then you can specify the number of questions for the quiz(say 10) and the the app will do a quiz by randomly selecting 10 questions from the folder. It will be good to also tract if the question has been asked already.😀. Not sure how easy that is but it will really greatly help.

    • @rommelbalala8713
      @rommelbalala8713 7 років тому

      The quiz I mentioned above is a multiple choice quiz. Thank you very much!

    • @PagetTeaches
      @PagetTeaches  7 років тому +1

      I can probably give some advice, even if I don't make a video.
      To make a randomised question order, try this.
      Make a new list with the same number of elements as you have questions. Call it something like 'questionUsed'
      Each item in this list is set to 'False' at the start. It's going to keep track of which questions you have used.
      When you want to choose the next question, do the following:
      questionNumber = random number between 1 and your number of questions.
      while questionUsed[questionNumber ] == True:
      pick a new random number
      end while
      set questionused[questionNumber ] to True
      That way, as you set various questions to True, the While loop will keep running and picking new random numbers until it finds one you haven't used.
      Assuming that all works, you'll also want to make sure you check when all questions have been used to stop the quiz. I'll let you work on that!
      Good luck!

    • @Natasha-mw2nt
      @Natasha-mw2nt 7 років тому

      How do you "pick a random number?"

  • @saathvika3550
    @saathvika3550 7 років тому

    sorry for bothering you... But, I have one more question. How do I know which screen is the default screen in my app?. Is screen 1 always the default one?
    Thanks again!

    • @PagetTeaches
      @PagetTeaches  7 років тому

      Yes, that's right. Screen 1 will always be the first to appear, but you could always make it automatically switch to a different one as soon as it loads.

  • @rexverdz2579
    @rexverdz2579 7 років тому

    hello.. just a clarification... did you use multiple screen here? thanks for the reply.

    • @PagetTeaches
      @PagetTeaches  7 років тому

      Rex Verds No, I just re-use the same controls for each question.

    • @rexverdz2579
      @rexverdz2579 7 років тому

      so how will you create if the quiz are a form of "QUESTIONs"?

    • @PagetTeaches
      @PagetTeaches  7 років тому

      Rex Verds I'm not sure what you're asking here, sorry. Can you describe how you want your quiz to work?

    • @rexverdz2579
      @rexverdz2579 7 років тому

      I'm creating a quiz/trivia app and it's a form of questions with multiple button choices. and i've made a multiple screens for each questions. So, how can I make like one screen only for multiple questions that will have a count score for the right and wrong answers?

    • @PagetTeaches
      @PagetTeaches  7 років тому

      Rex Verds it could work just like this one, but instead of storing pictures in a list you have text questions in the list. Instead of an image control you have a label. instead of updating the image box, you pop the question into the label. it shouldn't be too hard to change.

  • @KeiTech0
    @KeiTech0 7 років тому

    Thank you so much , you helped me with a Proyect Bro , and i have learned a lot of things in the progress , really , thank you so much , i will subscribe , pls continue doing more videos.

  • @tinhtut1
    @tinhtut1 8 років тому +1

    Thank you. Excellent Tutorial

  • @shellawaramena7688
    @shellawaramena7688 7 років тому

    thank you so much this is very helpful, but the dropbox link is dead btw

  • @boskadev1482
    @boskadev1482 6 років тому

    nice tuto , i like it , thank you for idea

  • @AnmAtAkAn
    @AnmAtAkAn 7 років тому

    Thank you. It is help awesomely :)

  • @artineskandari7201
    @artineskandari7201 7 років тому +1

    Hey Paget i need help

  • @pondokkoding5023
    @pondokkoding5023 5 років тому

    thank you so much....love from Indonesia

  • @mustaphaarour8819
    @mustaphaarour8819 8 років тому +1

    Thanx a lot Paget.

  • @saathvika3550
    @saathvika3550 7 років тому

    great tutorial!

  • @saathvika3550
    @saathvika3550 7 років тому

    Thank you very much!!

  • @madokakagurazaka1508
    @madokakagurazaka1508 5 років тому

    Thank you so much

  • @mirk0vic
    @mirk0vic 4 роки тому

    thanks

  • @areebrehman6900
    @areebrehman6900 8 років тому

    dude your the best!! helped me so much

  • @saathvika3550
    @saathvika3550 7 років тому

    Thank you!

  • @HusseinMzuory_GIS
    @HusseinMzuory_GIS 7 років тому

    thanx you are a big man and i like you soooo much thanx you help me to make my dream in true >>>> my english not good i know hhhhhhhhh

  • @k1f2i3r4
    @k1f2i3r4 7 років тому

    FANTASTIC!
    Great tutorial. Works perfectly and it just what I was looking for.
    Thank a lot! You got a Like and Subscribe from me :)

  • @johnniewilson1326
    @johnniewilson1326 7 років тому

    you was kinda boring to me, but your video is good thanks

  • @Rimixer
    @Rimixer 6 років тому

    N one using your video to make a video it just has a cringy intro