• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Code for a quiz

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am trying to develop a very simple quiz applet but can't really think where to start, can anyone give me a blueprint or even better some code.
Thanks
Douglas.
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
great effort.may i know about what topic this quiz will be?or is it multipurpose?
I am not an expert, but here is my suggestion.
1. Keep your questions and answer options in a text file, seperated by special characters.(then we can parse them using StringTokeniser).
2. Display the questions in a panel and the answer options in a panel. Next to the answer options will be four(or the exact number) of radio buttons.
3. There will be a button, which pickes up the value checked and compare it with the correct value.
4. The score can be calculated after each question has been answered.
5. In future you can use threading for setting timelimits for each question and you can also add graphics like our javaranch cattle roundup quiz. .
Keep us posted about your progress.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic