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 8 of 8

Thread: Using Java to create a quiz...

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    3
    My Mood
    Bored
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Using Java to create a quiz...

    Can I create a quiz that won't show the answers? And is this the best way to create a quiz?



  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Using Java to create a quiz...

    Of course you can, and is what the best way? You haven't given us anything to compare and we have no idea what you're thinking.

  3. #3
    Member
    Join Date
    Sep 2013
    Posts
    70
    Thanks
    1
    Thanked 13 Times in 13 Posts

    Default Re: Using Java to create a quiz...

    You can do anything you want you just have to know how to program it.

    Take a look at:
    Data types (int, char, boolean, String, etc...)
    Scanner class (Accepting user input)
    Arrays (Storing data in an organized manner)
    Methods (Reducing repetition of code)

    Depending on complexity of program:
    java.io (Saving/Opening files)
    Objects (Creating your own class that contains data which is stored/manipulated within the class)
    Swing (GUI related for drawing out the quiz instead of keeping it console related)
    Action Listeners (If you create buttons the program has to know what do with them if some action is done)

    I might have missed something. If you have any questions pertaining to something you get stuck on post your question about it.

  4. The Following User Says Thank You to Ubiquitous For This Useful Post:

    purple_ninja (September 6th, 2013)

  5. #4
    Junior Member
    Join Date
    Sep 2013
    Posts
    3
    My Mood
    Bored
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Using Java to create a quiz...

    ahem, to clear up the fog, I have two instructors who are telling me that I can use XHTML to create a form for the quiz, which would be a multiple-choice type, and I'm assuming that the quiz also needs to restart if the user doesn't pass the required score. I would like a best site that I can visit to help me with this.

    Oh yea, can't forget, the answers will not show up in the source code will it?

    Thanks, Purple_Ninja

  6. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Using Java to create a quiz...

    The fog hasn't completely lifted. You're asking for help on this XHTML project in a Java Programming Forum called "What's Wrong With My Code?", because . . .

  7. #6
    Junior Member
    Join Date
    Sep 2013
    Posts
    3
    My Mood
    Bored
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Using Java to create a quiz...

    lol. my baaaad. I meant to say that I have two instructors, one telling me that I can use xhtml, and the other saying I can use java. perhaps I can be directed to a good site.

    thanks

  8. #7
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Using Java to create a quiz...

    I'm not an XHTML expert, but I can imagine how what you've described can be done easily in Java. I'm curious about the "security" requirements of the answers, though. There are several things that could be done to encrypt the answers, but If the users or quit takers have the source code, all necessary data files, the knowledge, the inclination, and the time to reverse engineer what has been done to hide the answers (how long will they have?) they could probably decipher the answers. I think that'll be true of any technology to which the users have access to the source code in which the answers will be included, encrypted or otherwise.

    As for suggesting a good site, I'm not sure what you mean. If you have no Java experience, start with the most basic Java Tutorials and then scale up from there depending on your experience. Or if you mean provide you with a link to a site that has source code for what you've described, you can search for and find that as easily as anyone else.

    In whichever direction you choose, good luck!

  9. #8
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Using Java to create a quiz...

    Quote Originally Posted by purple_ninja View Post
    one telling me that I can use xhtml, and the other saying I can use java
    java or javascript?

Similar Threads

  1. How to make a quiz in Java?
    By sly in forum Java Theory & Questions
    Replies: 6
    Last Post: March 18th, 2013, 10:43 AM
  2. simple gui java quiz
    By jumpman8947 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: February 4th, 2013, 07:41 AM
  3. 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, 08:17 PM
  4. Making a Java quiz with Classes
    By diagnonsense in forum Java Theory & Questions
    Replies: 2
    Last Post: March 26th, 2012, 06:53 AM
  5. Free Java quiz .
    By skoiloth in forum Totally Off Topic
    Replies: 11
    Last Post: January 9th, 2012, 11:16 AM

Tags for this Thread