• Aucun résultat trouvé

if (f.R1[2].checked) n+=4

N/A
N/A
Protected

Academic year: 2022

Partager "if (f.R1[2].checked) n+=4"

Copied!
1
0
0

Texte intégral

(1)

<html>

<head>

<title>TEST</title>

</head>

<script language=javascript>

function calcul() { var n=0;

if(f.D1.options[1].selected == true) n+=4;

if (f.R1[2].checked) n+=4;

if (f.T1.value==2) n+=4;

if (f.T2.value==1) n+=4;

if (f.T4.value==3) n+=4;

alert("Votre note est "+n+"/20");

}

</script>

<body bgcolor=#ADCF4F>

<form name=f>

<p align="center"><b><font color="#FF0000" face="Arial" size="6">Test</font></b></p>

<p><b><font color="#008000" size="3" face="Arial">Exercice 1 :</font></b></p>

<p><b><font face="Arial" size="3">Quels sont les opérateurs qui peuvent être utilisé avec des réels

?&nbsp;&nbsp;&nbsp;&nbsp; <select size="1" name="D1">

<option>and, or, not</option>

<option>+, -, *, /</option>

<option>div, mod

</option>

</select></font></b></p>

<p><b><font color="#008000" size="3" face="Arial">Exercice 2 :</font></b></p>

<p><b><font face="Arial" size="3">Quel est l'opérateur qui peut être utilisé dans l'expression suivante ?</font></b></p>

<p><b><font face="Arial" size="3">19 ....&nbsp; 3 = 1</font></b></p>

<p><b><font face="Arial" size="3"><input type="radio" name="R1">&nbsp;&nbsp;&nbsp;

DIV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<input type="radio" name="R1">&nbsp;&nbsp;

AND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&nbsp;

<input type="radio" name="R1">&nbsp;&nbsp; MOD</font></b></p>

<p><b><font color="#008000" size="3" face="Arial">Exercice 3 :</font></b></p>

<p><b><font face="Arial" size="3"><input type="text" name="T1" size="4">&nbsp;

Somme &#8592; A+B<span style="color: red"><o:p>

</o:p>

</span></font></b></p>

<p><b><font face="Arial" size="3"><input type="text" name="T2" size="4">&nbsp;

(2)

Lire(A,B)</font></b></p>

<p><b><font face="Arial" size="3"><input type="text" name="T3" size="4" value=4> Fin calcul</font></b></p>

<p><b><font face="Arial" size="3"><input type="text" name="T4" size="4"> Ecrire (Somme)</font></b></p>

<p><b><font face="Arial" size="3"><input type="text" name="T5" size="4"

value=0>&nbsp;

Début calcul</font></b></p>

<center><input type=submit value=valider onClick=calcul()>

<p>&nbsp;</p>

<p>&nbsp;</p>

</form>

</body>

</html>

Références

Documents relatifs

is an open hyperbolic triangular region qrith a vertex angle at least a at the vertex zn, and the hyperbolic distance from zn to the opposite side of the

of convex D and thin ring-shaped R, but before explaining in detail exactly which regions we consider we motivate what is to follow with some heuristic

Further,let oyp* denote the class of Riemann surfaces which do not carry nonconstant meromorphic func- tions with a finite spherical Dirichlet integral. Suppose

The notion of a weakly quasisymmetric embed- ding was introduced by Tukia and Våiisälä [TV]... Thefunction n*u(n')

L'entreprise a établi que son intervalle de rentabilité optimale doit correspondre à un coût marginal ne dépassant pas 25 €.. Un bureau d'étude est chargé de

L'entreprise a établi que son intervalle de rentabilité optimale doit correspondre à un coût marginal ne dépassant pas 25 €.. Un bureau d'étude est chargé de

◊ remarque : l'inductance est plus grande avec le noyau de fer feuilleté (aimantation induite) ; elle est un peu plus faible avec un noyau de métal non feuilleté (champ magnétique

• On considère un fil fin rigide, enroulé en hélice d'équa- tion : z = hθ (où h est une constante), sur un cylindre dʼaxe Oz, de rayon r et de hauteur totale L. • Un