Can I create a quiz that won't show the answers? And is this the best way to create a quiz?
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.
Can I create a quiz that won't show the answers? And is this the best way 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.
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.
purple_ninja (September 6th, 2013)
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
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 . . .
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
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!