问题 问答题

【问题3】 下面是用户登录页面的部分代码,基本功能是检测用户是否填写用户名,如果没有填写,弹出对话框提示错误,否则提交用户信息。请为下列(9)~(13)处选择合适的答案。 . . . <form name=loginfo method=post (9) ="chkuser.asp"> <input type=submit value="登录" onClick="return checkuu() ;"> </form> <SCRIPT language=" JavaScript" > <!-- (10) checkuu () { if (checkspace(document,loginfo.username. (11) ) ) { document.loginfo.username, focus ();(12) ("用户名不能为空");(13) false; } . . . } //--> </script> (9)~(13)备选答案 A. run B. actionC. value D. returnE. a href F. alert G. submitH. function

答案

参考答案:

解析:【问题3】 (9)B(action) (10)H(function) (11)C(value) (12)F(alert) (13)D(return)

[分析]:【问题3】 本问题考查的是页面脚本的应用能力。 <form></form>标志对用来创建一个表单,即定义表单的开始和结束位置,在标志对之间的一切都属于表单的内容。<form>标志具有Action、Method和Target属性。Action属性指明处理程序的程序名。 从题目提供的程序<form name=loginfo method=post> (9) ="chkuser.asp">可见,以 post方式提交数据,并将数据提交给main_search.asp处理。所以(9)为Action。 根据题目要求网页要实现的功能是检测用户是否填写用户名,如果没有填写,则弹出对话框提示错误,否则提交用户信息,再根据<input type=submit value=“登录” onClick="retum checkuu();”>可知,当用户单击“登录”按钮时会执行函数checkuu(),所以(10)为function,根据功能要求,在函数checkuu()中首先判断usemame的值是否为空,所以(11)为value,(12)为alert,(13)为return。

阅读理解

阅读理解

    Maybe ten-year-old Elizabeth put it best when she said to her father,“But,Dad,you can’t be healthy if you’re dead?”

    Dad,in a hurry to get home before dark so he could go for a run,had forgotten to wear his safety belt--a mistake 75% of the US population make every day.The big question is why.

    There have been many myths about safety belts ever since their first appearance in cars some forty years ago.The following are three of the most common.

     Myth Number One:It’s best to be“thrown clear”of a serious accident.

Truth:Sorry,but any accident serious enough to “throw you clear”is also going to be serious enough to give you a very bad landing.And chances are you’ll have traveled through a windshield(挡风玻璃)or door to do it.Studies show that chances of dying after a car accident are twenty-five times greater in cases where people are“thrown clear.”

    Myth Number Two:Safety belts“trap”people in cars that are burning or sinking in water.

    Truth:Sorry again,but studies show that people knocked unconscious(昏迷)due to not wearing safety belts have a greater chance of dying in these accidents,People wearing safety belts are usually protected to the point of having a clear head to free themselves from such dangerous situations,not to be trapped in them.

    Myth Number Three:Safety belts aren’t needed at speeds of less than 30 miles per hour(mph).

    Truth:When two cars traveling at 30 mph hit each other,an unbelted driver would meet the windshield with a force equal to diving headfirst into the ground from a height of 10 meters.

1.Why did Elizabeth say to her father,“But Dad,you can’t be healthy if you’re dead”?

A.He didn’t have his safety belt on.

B.He was running across the street.

C.He was driving at great speed    

D.He didn’t take his medicine on time.

2.The reason Father was in a hurry to get home was that he____  .

A.wasn’t feeling very well

B.wanted to take some exereise

C.hated to drive in the dark

D.didn’t want to be caught by the police

3.According to the text,to be “thrown clear”of a serious accident is very dangerous

because you_____.

A.may be knocked down by other cars

B.may get caught in the car door

C.may find it impossible to get away from the seat

D.may get seriously hurt being thrown out of the car

4.Some people prefer to drive without wearing a safety belt because they believe__     .

A.they will be unable to think clearly in an accident

B.the belt prevents them from escaping in an accident

C.they will be caught when help comes

D.cars catch fire easily

5.What is the advice given in the text?

A.Never drive faster than 30 miles an hour.

B.Never forget to wear the safety belt while driving.

C.Try your best to save yourself in a car accident.

D.Drive slowly while you’re not wearing a safety belt.

单项选择题