Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 10 of 10

Thread: How to make a quiz in Java?

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to make a quiz in Java?

    Hi guys!

    I'm new to Java and know a little bit about it and honestly I don't want to learn anymore about it. I'm currently an Apprentice Millwright and I've got a cd with 600 questions on it to help study for the millwright exams and I would like to make a quiz in Java for it. I've got Netbeans installed so I'm ready to go.

    I would prefer for the quiz to be in different sections, maybe 100 questions a section and when I'm done I would like to see my score in a percentage and which questions I got wrong.

    Any help will be greatly appreciated!


  2. #2
    Administrator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    24,848
    Thanks
    64
    Thanked 2,645 Times in 2,615 Posts

    Default Re: How to make a quiz in Java?

    How long are the questions and answers? Do you want a multiple choice format: question on top and choices below?

    I don't want to learn anymore about it.
    What does that mean? You'll have to make a complete list of what you know for anyone to suggest using your existing knowledge for the project.

  3. The Following User Says Thank You to Norm For This Useful Post:

    ilhamnovitra (December 27th, 2015)

  4. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to make a quiz in Java?

    I was hoping someone already had the code and all I had to do was fill it in. I don't know much, only a little about if and else statements, booleans and integers.

  5. #4
    Administrator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    24,848
    Thanks
    64
    Thanked 2,645 Times in 2,615 Posts

    Default Re: How to make a quiz in Java?

    That won't be enough to write a program.

    Get some 3X5 cards, write the question on front and answer on back.

  6. #5
    Junior Member
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to make a quiz in Java?

    Quote Originally Posted by Norm View Post
    That won't be enough to write a program.

    Get some 3X5 cards, write the question on front and answer on back.
    That's why I'm asking how to make it.

  7. #6
    Administrator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    24,848
    Thanks
    64
    Thanked 2,645 Times in 2,615 Posts

    Default Re: How to make a quiz in Java?

    What good would it be if I suggested a way, if the requirements didn't include only the java statements you know how to use?

    Would your quiz program use prompts on a console using keyboard input
    or GUI with labels and mouse click input?

    Do you know how to read from files and separate the lines?

  8. The Following User Says Thank You to Norm For This Useful Post:

    ilhamnovitra (December 27th, 2015)

  9. #7
    Member
    Join Date
    Sep 2012
    Posts
    128
    Thanks
    1
    Thanked 15 Times in 15 Posts

    Default Re: How to make a quiz in Java?

    Your best bet would be to try and find a ready-made one on the internet. Doing it yourself will take time and patience if you aren't that far along in Java.

    Perhaps look in one of the better known Java books to see if they use this quiz idea as an example. I seem to recall one called Quiz Card Builder from "Head First Java".

  10. The Following User Says Thank You to Starstreak For This Useful Post:

    ilhamnovitra (December 27th, 2015)

  11. #8
    Junior Member
    Join Date
    Dec 2015
    Posts
    2
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: How to make a quiz in Java?

    how make a simple game quiz ?

  12. #9
    Junior Member
    Join Date
    Dec 2015
    Posts
    4
    My Mood
    Inspired
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Re: How to make a quiz in Java?

    Quote Originally Posted by ilhamnovitra View Post
    how make a simple game quiz ?
    To make a Simple Game Quiz :
    1. Basic Understanding of MySQL or any other database is required.
    2. You should know how to connect a Database to an IDE ( NetBeans here ).
    3. Very Basic Knowledge of MS Excel or any other spreadsheet program.

    It'll take you about 8 hours to make if you know the things about Programming.

    In MS Excel, Write the questions in one column , answers in other columns.
    Make a Tab Delimited file (a .txt it is seperated by tabs) [for importing into MySQL]
    You now have to create a database, a table in it and add the records by importing the Tab Delimited File into it
    by this code syntax :
    mysql> LOAD DATA LOCAL INFILE '/path/filename.txt' INTO TABLE tablename
    -> LINES TERMINATED BY '\r\n';

    Design you GUI in NetBeans, Connect To MySQL.
    Now it's time for the real coding. Just Do It.
    Google's your friend.[COLOR="Silver"]

  13. #10
    Senior Member Ada Lovelace's Avatar
    Join Date
    May 2014
    Location
    South England UK
    Posts
    708
    My Mood
    Angelic
    Thanks
    36
    Thanked 82 Times in 76 Posts

    Default Re: How to make a quiz in Java?

    Please do not dig up old threads - let them die so to speak.

    If you want to start a new topic then by all means post in the
    relevant forum.

    Wishes Ada xx
    If to Err is human - then programmers are most human of us all.
    "The Analytical Engine offers a new, a vast, and a powerful language . . .
    for the purposes of mankind
    ."
    Augusta Ada Byron, Lady Lovelace (1851)

Similar Threads

  1. simple gui java quiz
    By jumpman8947 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: February 4th, 2013, 07:41 AM
  2. Do You Know the Answer to Java Quiz?
    By dblog616 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: July 13th, 2012, 09:17 PM
  3. Making a Java quiz with Classes
    By diagnonsense in forum Java Theory & Questions
    Replies: 2
    Last Post: March 26th, 2012, 07:53 AM
  4. Free Java quiz .
    By skoiloth in forum Totally Off Topic
    Replies: 11
    Last Post: January 9th, 2012, 11:16 AM
  5. Quiz application
    By JonoF in forum Java ME (Mobile Edition)
    Replies: 1
    Last Post: May 10th, 2010, 07:06 AM