【HTML文本】
1.<html>
2.<title>Calculator</title>
3.<head>
4.</head>
5.<body>
6.<h2>Calculator</h2>
7.<br>
8.<form action=get method="result.asp" name=form1>
9.VALUE1:<input type=text name=txtvalue1 width=15 maxlength=15>
10.<br>
11.VALUE2:<input type=text name=txtvalue2 width=15 maxlength=15>
12.<br>
13.<input type=button name=submit value=" PLUS ">
14.<input type=reset name=submit value=" MINUS "><br>
15.<from>
16.</body>
17.</html>
試題二(25分)
請(qǐng)回答以下關(guān)于FrontPage 使用與操作的問(wèn)題1至問(wèn)題3,把解答填入答題紙的對(duì)應(yīng)欄內(nèi)。
【問(wèn)題1】
FrontPage 中的“字幕”方向有哪兩種表現(xiàn)形式?
【問(wèn)題2】
FrontPage 中如何使頁(yè)面中的表單中的下拉菜單在打開(kāi)該頁(yè)面時(shí)就選中指定的某一項(xiàng)?
【問(wèn)題3】
FrontPage 中如何使單擊一個(gè)頁(yè)面中的URL鏈接后在新的瀏覽窗口打開(kāi)指定的URL頁(yè)面?
試題三 (25分)
閱讀下列說(shuō)明和HTML文本,分析其中嵌入的javascript腳本,將應(yīng)填入___(n)___處的語(yǔ)句寫在答題紙的對(duì)應(yīng)欄內(nèi)。
【說(shuō)明】
本題是通過(guò)javascript語(yǔ)言,在主頁(yè)上實(shí)現(xiàn)一個(gè)求1到n范圍內(nèi)的所有素?cái)?shù)的算法。視覺(jué)效果如圖所示:
運(yùn)行結(jié)果如下所示:
2
3
5
7
11
13
17
19
23
【HTML文本】
<html>
<head>
<title>求1到n范圍內(nèi)的所有素?cái)?shù)</title>
_(1)_
function pn(n) {
var i, j, k=0, flag, pnstr="";
a = new Array;
for(i=2; i<=n; i++) {
flag=0;
for(j=2; _(2)_; j++)
if _(3)_ {flag=1; break;} //當(dāng)i不是素?cái)?shù)時(shí)flag置1
if _(4)_ {a[k]=i; _(5)_;}
}
for(_(6)_ in _(7)_) pnstr _(8)_; //將求得的1到n范圍內(nèi)的所有素?cái)?shù)做成一個(gè)字符串
document.write(pnstr); //輸出1到n范圍內(nèi)的所有素?cái)?shù)
}
</script>
</head>
<body>
<br><br>
<h3>求1到n范圍內(nèi)的所有素?cái)?shù)</h3>
<br><br>
<form name=form1>
value of n:<input type=text name=nvalue>
<br><br><br>
<input type=button name=submit value="求1到n范圍內(nèi)的所有素?cái)?shù)" onclick=_(9)_>
</from>
</body>
</html>
參考答案
上午試卷
1A 2B 3B 4B 5C 6C 7C 8D 9C 10B
11C 12A 13B 14A 15B 16B 17C 18D 19C 20B
21B 22A 23B 24A 25B 26C 27D 28A 29A 30B
31B 32A 33D 34B 35A 36B 37C 38A 39C 40D
下午試卷
試題一
2、<title>Calculator</title>
8、<form action=get method="result.asp" name=form1>
13、<input type=button name=submit value=" PLUS ">
14、<input type=reset name=submit value=" MINUS "><br>
15、<from>
試題三
(1) <script language=javascript>
(2) j<=Math.sqrt(i)
(3) i%j==0
(4) flag==0
(5) k++
(6) k
(7) a
(8) += a[k]+"<br>"
(9) "pn(document.form1.nvalue.value);"
附:2004年網(wǎng)絡(luò)管理員級(jí)考試大綱
網(wǎng)絡(luò)管理員測(cè)試題(基礎(chǔ)部分)