This is where we will discuss the modular quiz I'm going to attempt to program in Visual Basic.
So first off.......The look and layout of the quiz.
I was thinking of one screen that could be reusable. Load the questions into the same form each time. But that didn't work.
So then I figured I could make 50 indentical forms, except each one would load different questions and answers. This would work but it would make the program bigger, but more customizible.
The layout of the question files will look something like this:
[question1]
question=The question would be written here.
answer1=Answer1
if1selected=Correct. Score. Interesting Fact.
value=2
answer2=Answer2
if2selected=Correct. Score. Interesting Fact.
value=1
answer3=Answer3
if3selected=Incorrect. Score. Interesting Fact.
value=0
answer4=null
if4selected=null
value=null
answer5=null
if5selected=null
value=null
max=2
endoftest=no
Now I'll explain it.
The "[question1]" is just the question number. Then the "answer1" through "answer5" are the answers that will appear. If it equals "null" then no answer will be shown. "if?selected=???" this is what it will show you when you select your answer. The "value=?" is how much each question is worth. "max=?" is the maximum points the question can score you. This will come in handy when trying to calculate the %'age. This value will be added to a variable called "tot" or something. And "endoftest=yes/no" this would tell the program when the end of the test is and when to calculate the final score/show the last screen with the custom names/ranks for the scores.
Do you think I'm missing anything??
Now...at the very beginning we would be able to choose the set of questions you want to use. They would have a special extention...like .cqq or something. (Cool Quiz Questions)
I will eventually write a program that will allow you to write the questions in an easy to use interface. It will be cool ass too, but for now that's on the back burner.
So anything else I should meantion? Hummm....Maybe I can design multiple interfaces. A professional, LCARS, Civ Theme....and then there could be an option for that at the beginning of the file....like:
[interface]
type=lcars
This would trigger a series of forms with a Star Trek feel. Although the code will be indentical the layout will differ. Of course...this make the program bigger too. But once you have the program the question files will only be a few KB's!!!
So first off.......The look and layout of the quiz.
I was thinking of one screen that could be reusable. Load the questions into the same form each time. But that didn't work.
So then I figured I could make 50 indentical forms, except each one would load different questions and answers. This would work but it would make the program bigger, but more customizible.
The layout of the question files will look something like this:
[question1]
question=The question would be written here.
answer1=Answer1
if1selected=Correct. Score. Interesting Fact.
value=2
answer2=Answer2
if2selected=Correct. Score. Interesting Fact.
value=1
answer3=Answer3
if3selected=Incorrect. Score. Interesting Fact.
value=0
answer4=null
if4selected=null
value=null
answer5=null
if5selected=null
value=null
max=2
endoftest=no
Now I'll explain it.
The "[question1]" is just the question number. Then the "answer1" through "answer5" are the answers that will appear. If it equals "null" then no answer will be shown. "if?selected=???" this is what it will show you when you select your answer. The "value=?" is how much each question is worth. "max=?" is the maximum points the question can score you. This will come in handy when trying to calculate the %'age. This value will be added to a variable called "tot" or something. And "endoftest=yes/no" this would tell the program when the end of the test is and when to calculate the final score/show the last screen with the custom names/ranks for the scores.
Do you think I'm missing anything??
Now...at the very beginning we would be able to choose the set of questions you want to use. They would have a special extention...like .cqq or something. (Cool Quiz Questions)

I will eventually write a program that will allow you to write the questions in an easy to use interface. It will be cool ass too, but for now that's on the back burner.
So anything else I should meantion? Hummm....Maybe I can design multiple interfaces. A professional, LCARS, Civ Theme....and then there could be an option for that at the beginning of the file....like:
[interface]
type=lcars
This would trigger a series of forms with a Star Trek feel. Although the code will be indentical the layout will differ. Of course...this make the program bigger too. But once you have the program the question files will only be a few KB's!!!