questions=new Array();
questions[0]=new Array();	//Question 1 definition
questions[0][0]="A current of 2.5 A flows in a 20 ohm load. What power will be dissipated?";	//Question text
questions[0][1]=" 40 W";	//Answer option no.1
questions[0][2]=" 50 W";		//Answer option no.2
questions[0][3]=" 125 W";	//Answer option no.3
questions[0][4]="3";
questions[1]=new Array();	//Question 2 definition
questions[1][0]="In an a.c. circuit the phase angle is 45&#176. This means that:";	//Question text
questions[1][1]=" the resistance and reactance are equal";		//Answer option no.1
questions[1][2]=" the resistance is equal to the impedance";	//Answer option no.2
questions[1][3]=" the resistance is equal to half the impedance.";	//Answer option no.3
questions[1][4]="1";
questions[2]=new Array();	//Question 3 definition
questions[2][0]="A capacitance of 100&#181F connected to a resistance of 5 Mohm will have a time constant of:";	//Question text
questions[2][1]=" 20 s";	//Answer option no.1
questions[2][2]=" 50 s";		//Answer option no.2
questions[2][3]=" 500 s";	//Answer option no.3
questions[2][4]="3";
questions[3]=new Array();	//Question 4 definition
questions[3][0]="The inductance of a coil can be increased by using:";	//Question text
questions[3][1]=" a low permeability core";	//Answer option no.1
questions[3][2]=" a large number of turns";		//Answer option no.2
questions[3][3]=" wire having a low resistance.";	//Answer option no.3
questions[3][4]="2";
questions[4]=new Array();	//Question 5 definition
questions[4][0]="An sine wave has a peak value of 50 V. What is its r.m.s. value?";	//Question text
questions[4][1]=" 35.35 V";	//Answer option no.1
questions[4][2]=" 70.71 V";		//Answer option no.2
questions[4][3]=" 141.14 V";	//Answer option no.3
questions[4][4]="1";
questions[5]=new Array();	//Question 6 definition
questions[5][0]="A simple high-pass L-C filter would have:";	//Question text
questions[5][1]=" L in series and C in parallel";	//Answer option no.1
questions[5][2]=" C in series and L in parallel";		//Answer option no.2
questions[5][3]=" both L and C in series.";	//Answer option no.3
questions[5][4]="2";
questions[6]=new Array();	//Question 7 definition
questions[6][0]="The periodic time of a 50 Hz a.c. supply is:";	//Question text
questions[6][1]=" 20 ms";		//Answer option no.1
questions[6][2]=" 25 ms";	//Answer option no.2
questions[6][3]=" 50 ms.";	//Answer option no.3
questions[6][4]="1";
questions[7]=new Array();	//Question 8 definition
questions[7][0]="Carbon brushes fitted to a generator should have:";	//Question text
questions[7][1]=" low resistance and low coefficient of friction";	//Answer option no.1
questions[7][2]=" low resistance and high coefficient of friction";		//Answer option no.2
questions[7][3]=" high resistance and low coefficient of friction.";	//Answer option no.3
questions[7][4]="1";
questions[8]=new Array();	//Question 9 definition
questions[8][0]="The output of a generator can be controlled by:";	//Question text
questions[8][1]=" varying the armature current";	//Answer option no.1
questions[8][2]=" varying the field current";		//Answer option no.2
questions[8][3]=" varying the armature voltage.";	//Answer option no.3
questions[8][4]="2";
questions[9]=new Array();	//Question 10 definition
questions[9][0]="Which one of the following materials is suitable for the core of a power transformer?";	//Question text
questions[9][1]=" carbon fibre";	//Answer option no.1
questions[9][2]=" phosphor bronze";		//Answer option no.2
questions[9][3]=" laminated steel.";	//Answer option no.3
questions[9][4]="3";
document.write("<div id=\"quiz\">");
document.write("<form onSubmit=\"quizResult(this,questions);\">");
document.write("<input type=\"hidden\" value=\""+questions.length+"\" name=\"totalQuestions\">");
for(counter0=0;counter0<questions.length;counter0++){
	document.write("<p>"+questions[counter0][0]+"<br>");
	document.write("<input type=\"radio\" value=\"1\" name=\"Q"+counter0+"\">"+questions[counter0][1]+"<br>");
	document.write("<input type=\"radio\" value=\"2\" name=\"Q"+counter0+"\">"+questions[counter0][2]+"<br>");
	document.write("<input type=\"radio\" value=\"3\" name=\"Q"+counter0+"\">"+questions[counter0][3]+"<br>");
	document.write("<input type=\"hidden\" value=\""+questions[counter0][4]+"\" name=\"A"+counter0+"\"></p>");
}document.write("<input type=\"submit\" value=\"Check My Result\"><input type=\"reset\" value=\"Start Over Again\">");
document.write("</form>");
document.write("</div>");