复习题1一、选择题1、写“HelloWorld”的正确javascript语法是?A.document.write("HelloWorld")B."HelloWorld"C.response.write("HelloWorld")D.("HelloWorld")2、JS特性不包括()A.解释性B.用于客户端C.基于对象D.面向对象3、下列JS的判断语句中()是正确的A.if(i==0)B.if(i=0)C.ifi==0thenD.ifi=0then4、下列JavaScript的循环语句中()是正确的A.if(i<10;i++)B.for(i=0;i<10)C.fori=1to10D.for(i=0;i<=10;i++)5、下列的哪一个表达式将返回假A.!(3<=1)B.(4>=4)&&(5<=2)C.(“a”==”a”)&&(“c”!=”d”)D.(2<3)||(3<2)6、下列选项中,()不是网页中的事件A.onclickB.onmouseoverC.onsubmitD.onpressbutton7、有语句“varx=0;while(____)x+=2;”,要使while循环体执行10次,空白处的循环判定式应写为:A.x<10B.x<=10C.x<20D.x<=208、JS语句vara1=10;vara2=20;alert(“a1+a2=”+a1+a2)将显示()结果A.a1+a2=30B.a1+a2=1020C.a1+a2=a1+a29、将字串s中的所有字母变为小写字母的方法是()A.s.toSmallCase()B.s.toLowerCase()C.s.toUpperCase()D.s.toUpperChars()10、以下()表达式产生一个0~7之间(含0,7)的随机整数.A.Math.floor(Math.random()*6)B.Math.floor(Math.random()*7)C.Math.floor(Math.random()*8)D.Math.ceil(Math.random()*8)11、产生当前日期的方法是()A.Now();B.Date()C.newDate()D.newNow()12、如果想在网页显示后,动态地改变网页的标题()A.是不可能的B.通过document.write(“新的标题内容”)C.通过document.title=(“新的标题内容”)D.通过document.changeTitle(“新的标题内容”)13、某网页中有一个窗体对象,其名称是mainForm,该窗体对象的第一个元素是按钮,其名称是myButton,表述该按钮对象的方法是()A.document.forms.myButtonB.document.mainForm.myButtonC.document.forms[0].element[0]D.以上都可以14、HTML文档的树状结构中,()标签为文档的根节点,位于结构中的最顶层。A.B.C.D.