Building a Multiple Choice Quiz | Java | Tutorial 29

///Building a Multiple Choice Quiz | Java | Tutorial 29

Building a Multiple Choice Quiz | Java | Tutorial 29

FavoriteLoadingAdd to favorites

Giraffe Academy is rebranding! I’ve decided to re-focus the brand of this channel to highlight myself as a developer and teacher! The newly minted Mike Dane channel will have all the same content, with more to come in the future!

Java468x60

Source Code –

This video is one in a series of videos where we’ll be looking at programming in java. The course is designed for new programmers, and will introduce common programming topics using the java language.

Throughout the course we’ll be looking at various topics including variables, arrays, getting user input, loops, conditionals, object orientation, and much more.

If you’re enjoying Giraffe Academy and want to invest in our future, consider leaving a contribution

Links:
Website –
Facebook –
Twitter –

source

By |2020-08-25T09:03:41+00:00August 25th, 2020|Java Video Tutorials|28 Comments

28 Comments

  1. Scott Isitt August 25, 2020 at 9:03 am - Reply

    I added messages to the score checker:

    if(answer.equals(questions[i].answer)) {
    System.out.println("Nice!");
    score++;
    }else {
    System.out.println("Nope!");
    }

    Also added different messages depending on your score.

    if(score == questions.length) {
    System.out.println("You got " + score + " out of " + questions.length + "! Nice job!");
    }else if(score < questions.length && score > 0) {
    System.out.println("You got " + score + " out of " + questions.length + "! Not bad.");
    } else {
    System.out.println("You got " + score + " out of " + questions.length + "! That's a crap score!");
    }

  2. Mark Dalogdog August 25, 2020 at 9:03 am - Reply

    How to random the questions and answer?

  3. MatriManuel _ August 25, 2020 at 9:03 am - Reply

    I didn't understend very well the part of code of the parameters of takeTest.
    takeTest(questions);
    ^
    public static void takeTest (Question [] questions)
    ^

  4. Anees Fathima August 25, 2020 at 9:03 am - Reply

    On which software is the code written ?

  5. Hollow Nights 中空の夜 August 25, 2020 at 9:03 am - Reply

    How do I get the percentage?

  6. Salvus August 25, 2020 at 9:03 am - Reply

    On the off chance you see this because this comment is almost 4 years late, I would like to let you know your series of c++ and java are fantastic.

  7. T. Mensah August 25, 2020 at 9:03 am - Reply

    Hi Mike, Great work with your Java tutorials. I was just wondering why you chose double quote for the answer a ("a") instead of single quotes ('a') since 'a' is a character.

  8. Ashwini Bagali August 25, 2020 at 9:03 am - Reply

    Which algorithm is used sir???

  9. Albin Sopaj August 25, 2020 at 9:03 am - Reply

    What is the difference between a class type and a primitive data type? I don't see the difference?

  10. Jorelle Tuyor August 25, 2020 at 9:03 am - Reply

    Can you please tell me the codes to be used upon applying it to GUI

  11. Jorelle Tuyor August 25, 2020 at 9:03 am - Reply

    How can I apply this code into GUI?

  12. Landy Landinha August 25, 2020 at 9:03 am - Reply

    Hi Mike, how can I display true and false

  13. Ban Queen August 25, 2020 at 9:03 am - Reply

    How can i do that in 2d array?

  14. NETWORK gaming duniya 1178 August 25, 2020 at 9:03 am - Reply

    If i win in this app what will you give the price ex tablet free cost or geometry instrument or clorship

  15. venera antiquar August 25, 2020 at 9:03 am - Reply

    Hi, can you please make a tutorial on the same topic but instead of for loop could you please do it in a try-catch block?

  16. Daniel the Cat August 25, 2020 at 9:03 am - Reply

    is there a way that i can get these questions randomly ordered?

  17. Abdel Jalil August 25, 2020 at 9:03 am - Reply

    thank you so much Mike

  18. Utjita Anita Munamava August 25, 2020 at 9:03 am - Reply

    I like the way you teach Java thank you very much you came to rescue me

  19. FengShi Li August 25, 2020 at 9:03 am - Reply

    Hi,I have some problem creating 20 questions quiz game.I can't define my variable.can you help me with that.thanks!

  20. Joel Siennicki August 25, 2020 at 9:03 am - Reply

    recommend watching at 1.5 speed.

  21. Biswajit Sahoo August 25, 2020 at 9:03 am - Reply

    U are a god for me brother

  22. Shahzain Haider August 25, 2020 at 9:03 am - Reply

    Error in line
    public static void takeTest(Question[] questions){

  23. FAHRUL ROZI August 25, 2020 at 9:03 am - Reply

    can you tell me how to make the questions appear randomly please?

  24. Corey O'Neill August 25, 2020 at 9:03 am - Reply

    Can you upload the Source code? Website is not showing it.

  25. xlsupermonkeylx August 25, 2020 at 9:03 am - Reply

    Is there a better way to do a questionnaire type thing that can accept user input and multiple-choice questions?

  26. Franz Karlo Martinez KarLine01 August 25, 2020 at 9:03 am - Reply

    How to repeat or retake the quiz?

  27. alex popa August 25, 2020 at 9:03 am - Reply

    thanks for teaching us

  28. Mekk Naja August 25, 2020 at 9:03 am - Reply

    This is OOP ??

Leave A Comment

*