//change 5 to the total number of questions
var total=5
var question=new Array()
for (i=1;i<=total+1;i++){
temp="choice"+i+"=new Array()"
eval(temp)
}
var solution=new Array()

/*Below lists the phrases that will be randomly displayed if the user correctly answers the question. You may extend or shorten this list as desired*/
var compliments=new Array()
compliments[0]="Excellent!"
compliments[1]="Yes!"
compliments[2]="Good job!"
compliments[3]="Correctomundo."
compliments[4]="Correct!"
compliments[5]="Great Job!"
compliments[6]="Good work!"


/*Below lists the questions, its choices, and finally, the solution to each question. Folow the exact format below when editing the questions. You may have as many questions as needed. Check doc at http://javascriptkit.com/script/script2/comboquiz.htm for more info
*/

question[1]="What is the decimal equivalent of the binary number 10101011?"
choice1[1]="101"
choice1[2]="171"
choice1[3]="170"
choice1[4]="180"

question[2]="How many MB are in a GB?"
choice2[1]="10"
choice2[2]="1000"
choice2[3]="1024"
choice2[4]="2048"

question[3]="A _____________ is another name for a system board."
choice3[1]="Planar board"
choice3[2]="Sub System board"
choice3[3]="Processor board"
choice3[4]="Socket board"

question[4]="The _________________________ is the brain of the computer."
choice4[1]="Computer Programming Unit (CPU)"
choice4[2]="Central Processing Unit (CPU)"
choice4[3]="Arithmetic and Logic Unit (ALU)"
choice4[4]="Calculation Processing Unit (CPU)"

question[5]="What type of memory stores data without a constant source of electricity and is considered non-volatile?"
choice5[1]="RAM"
choice5[2]="ROM"
choice5[3]="ERAM"
choice5[4]="RAMS"

solution[1]="b"
solution[2]="c"
solution[3]="a"
solution[4]="b"
solution[5]="b"

