test

6
Test <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>TEST</title> </head> <body style="background-color: rgb(255, 204, 128); color: rgb(0, 0, 0);" alink="#ee0000" link="#0000ee" vlink="#551a8b"> <table style="text-align: left; width: 966px; height: 1227px;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="vertical-align: top; text-align: center;"><big style="color: rgb(153, 51, 0); font-weight: bold;"><big><big><big>TEST</big></big></big></big></td> </tr> <tr> <td style="vertical-align: top;"><br> <table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="vertical-align: top; background-color: rgb(204, 102, 0); text-align: center;"><span style="font-style: italic; font-weight: bold;">&nbsp;TEST DE CUNOSTINTE GENERALE</span><br> </td> </tr> </tbody> </table> <br> <i> <script language="JavaScript"> <!--start of JavaScript hide var a=0; var b=0; var c=0; var d=0; var e=0; var f=0; var g=0; var h=0; var i=0; var p=0; function checkq1(value) { if(value==1){a=0} else if(value==2){a=10} 1

Upload: ana-mariapopescu

Post on 31-Jan-2016

219 views

Category:

Documents


0 download

DESCRIPTION

Crearea testelor cu html si JavaScript

TRANSCRIPT

Page 1: Test

Test<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <title>TEST</title> </head><body style="background-color: rgb(255, 204, 128); color: rgb(0, 0, 0);" alink="#ee0000" link="#0000ee" vlink="#551a8b"><table style="text-align: left; width: 966px; height: 1227px;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="vertical-align: top; text-align: center;"><big style="color: rgb(153, 51, 0); font-weight: bold;"><big><big><big>TEST</big></big></big></big></td> </tr> <tr> <td style="vertical-align: top;"><br> <table style="width: 100%; text-align: left;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="vertical-align: top; background-color: rgb(204, 102, 0); text-align: center;"><span style="font-style: italic; font-weight: bold;">&nbsp;TEST DE CUNOSTINTE GENERALE</span><br> </td> </tr> </tbody> </table> <br> <i> <script language="JavaScript"><!--start of JavaScript hidevar a=0;var b=0;var c=0;var d=0;var e=0;var f=0;var g=0;var h=0;var i=0;var p=0;

function checkq1(value){if(value==1){a=0}else if(value==2){a=10}else a=0return a;}

function checkq2(value){if(value==1){b=10}else if(value==2){b=0}

1

Page 2: Test

else b=0return b;}

function checkq3(value){if(value==1){c=0}else if(value==2){c=10}else c=0return c;}

function checkq4(value){if(value==1){d=10}else if(value==2){d=0}else d=0return d;}

function checkq5(value){if(value==1){e=0}else if(value==2){e=10}else e=0return e;}

function checkq6(value){if(value==1){f=10}else if(value==2){f=0}else f=0return f;}

function checkq7(value){if(value==1){g=10}else if(value==2){g=0}else g=0return g;}

function checkq8(value){if(value==1){h=0}else if(value==2){h=0}else h=10return h;}

function checkq9(value){if(value==1){i=10}else if(value==2){i=0}

2

Page 3: Test

else i=0return i;}

function calc(){p=a+b+c+d+e+f+g+h+i+10;if(p<70){alert('Ati obtinut: '+p+' puncte, mai trebuie sa studiati!');}else if(p>=70 & p<100){alert('Felicitari!Ati obtinut: '+p+' puncte');}else alert('Sunteti invingator! Ati obtinut: '+p+' puncte [email protected]');return p;}

//--> </script><br> <i><font size="+1"><b><font color="#0000ff">Cititi cu atentie</font><font color="#3333ff"> </font></b> cerintele si <b><font color="#0000ff">bifati raspunsul</font></b> pe care il considerati corect. Pentru a vizualiza rezultatul obtinut accesati butonul <b><font color="#0000ff">Rezultat</font><font color="#3333ff">.</font></b></font></i> </i> <center><i><b><i><font color="#cc0000"><font size="+1">SUCCES!</font></font></i></b></i></center> <ol> <li> <form name="Question1"><i> &nbsp; <strong>Numele primei locomotive construite a fost? </strong> </i> <ol> <i> <input name="Q1" value="1" onclick="checkq1(1);" type="radio"> <span style="font-weight: bold;">Hunedoara 1</span><br style="font-weight: bold;"> <input style="font-weight: bold;" name="Q1" value="2" onclick="checkq1(2);" type="radio"><span style="font-weight: bold;">Resita 1</span><br> <input name="Q1" value="3" onclick="checkq1(3);" type="radio"> <span style="font-weight: bold;">Astra Arad</span><br> </i> </ol> </form> </li> <i> <li> <form name="Question2"> &nbsp;&nbsp; <b>Cum se numeste ultimul tip de tren construit?</b> <ol> <input name="Q2" value="1" onclick="checkq2(1);" type="radio"> <span style="font-weight: bold;">intercity</span><br> <input name="Q2" value="2" onclick="checkq2(2);" type="radio"> <b>rapid</b> <br> <input name="Q2" value="3" onclick="checkq2(3);" type="radio"> <b>personal</b> </ol> </form> </li> <li> <form name="Question3"> &nbsp; <strong>Care este numarul de legaturi feroviare pe care le are Romania cu vecinii?</strong> <ol>

3

Page 4: Test

<input name="Q3" value="1" onclick="checkq3(1);" type="radio"> <b>123</b><br> <input name="Q3" value="2" onclick="checkq3(2);" type="radio"> <b>15</b><br> <input name="Q3" value="3" onclick="checkq3(3);" type="radio"><span style="font-weight: bold;"> 2</span><br> </ol> </form> </li> <li> <form name="Question4"> &nbsp;&nbsp;&nbsp; <b>Podurile de la Cernavoda, Borcea si Dunare au fost construite intre anii...<br> </b> <ol> <input name="Q4" value="1" onclick="checkq4(1);" type="radio"> <b>1890- 1895</b><br> <input name="Q4" value="2" onclick="checkq4(2);" type="radio"> <b>1895- 1900</b><br> <input name="Q4" value="3" onclick="checkq4(3);" type="radio"> <b>1900- 1905</b><br> </ol> </form> </li> <li> <form name="Question5"> &nbsp;&nbsp; <b>Cine este arhitectul podului de la Cernavoda?<br> </b> <ol> <input name="Q5" value="1" onclick="checkq5(1);" type="radio"> <b>Carol I</b><br> <input name="Q5" value="2" onclick="checkq5(2);" type="radio"> <b>Anghel Saligny</b><br> <input name="Q5" value="3" onclick="checkq5(3);" type="radio"> <b>Carol II</b><br> </ol> </form> </li> <li> <form name="Question6"> &nbsp; <span style="font-weight: bold;">Prima cale ferata din lume a fost construita intre...? </span> <ol> <input name="Q6" value="1" onclick="checkq6(1);" type="radio"> <b>Liverpool si Manchester</b><br> <input name="Q6" value="2" onclick="checkq6(2);" type="radio"> <b>Budapesta si Witzer</b><br> <input name="Q6" value="3" onclick="checkq6(3);" type="radio"> <span style="font-weight: bold;">Bucuresti si Resita</span> </ol> </form> </li> <li> <form name="Question7"> &nbsp;&nbsp; <b>Care a fost secolul care a marcat inceputul istoriei C.F.R?</b> <ol> <input name="Q7" value="1" onclick="checkq7(1);"

4

Page 5: Test

type="radio"> <b>XIX</b><br> <input name="Q7" value="2" onclick="checkq7(2);" type="radio"> <b>XX</b><br> <input name="Q7" value="3" onclick="checkq7(3);" type="radio"> <b>XIII</b><br> </ol> </form> </li> <li> <form name="Question8"> &nbsp;&nbsp;&nbsp; <b>Cand a aparut prima locomotiva cu abur?</b> <ol> <input name="Q8" value="1" onclick="checkq8(1);" type="radio"> <b>1657</b><br> <input name="Q8" value="2" onclick="checkq8(2);" type="radio"> <b>1920</b><br> <input name="Q8" value="3" onclick="checkq8(3);" type="radio"> <b>1896</b><br> </ol> </form> </li> <li> <form name="Question9"> &nbsp;&nbsp;&nbsp; <b>Unde au aparut prima data trenurile?</b> <ol> <input name="Q9" value="1" onclick="checkq9(1);" type="radio"> <b>Franta</b><br> <input name="Q9" value="2" onclick="checkq9(2);" type="radio"> <b>Anglia</b><br> <input name="Q9" value="3" onclick="checkq9(3);" type="radio"> <b>Germania</b><br> </ol> </form> </li> </i> </ol> <form> <i> </i> <div align="center"><i> <input name="ControlButton" value="Rezultat" onclick="calc()" type="button"> </i></div> </form> <i> <br> </i></td> </tr> </tbody></table><br><br></body></html>

5