资源预览内容
第1页 / 共9页
第2页 / 共9页
第3页 / 共9页
第4页 / 共9页
第5页 / 共9页
第6页 / 共9页
第7页 / 共9页
第8页 / 共9页
第9页 / 共9页
亲,该文档总共9页全部预览完了,如果喜欢就下载吧!
资源描述
(405) 北京理工大学远程教育学院2019-2020学年第二学期脚本程序设计期末试卷(A卷)校外学习中心 学号 姓名 成绩 闭卷 要答案:1785349572一、单项选择题(每题2分,共30分) 1. 编辑JavaScript程序时可使用的编辑工具有( )。A只能使用记事本 B只能使用Eclipse编辑软件C可以使用任何一种文本编辑器 D只能使用Dreamweaver编辑工具2. 以下哪个单词不属于javascript保留字( )。Awith BparentCclass Dvoid3. 在以下选项中,最大的常量值是( )。A020 B0X21C32 D434. 下面哪一个不是浮点数( )。A-434339.35 B3.189C. -7e12 D505. 以下生成对象的方法中,错误的是( )。 Avar z = new Boolean(T); Bvar str = JavaScript; Cfruit=new Array(8); Dtoday=new Date(January 1,2020);6. 在以下选项中,合法的if语句首行是( )。Aif (x=0) Bif (x=0)C.else Delse if7. 下列Javascript的循环语句中正确的是( )。Aif (i10;i+) Bfor(i=0;i10)Cfor i=1 to 10 Dfor(i=0;i11)的值为 。7. JavaScript语言中三种循环语句是 和 。8. 表达式(6=6)&(7=6)的值为 。9. window 对象的setInterval()方法用于 。10. document对象的 属性可以访问文档中的所有 HTML 元素对象。11. 对象就是浏览器对象,用于获得与浏览器相关的信息。12. Document对象的简单属性中的 和 属性来设置网页文档文本背景颜色和文档文本的文字颜色。三、看代码段,写结果(每题7分,共28分)1. var a=10, b=20 , c=30; +a; a+; e=+a+(+b)+(c+)+a+; alert(e);输出结果为:2. var a=2; var b=3; var c=2;document.write(a=2, b=3, c=2 ); document.write();document.write(小于:ab=); document.write(ab); document.write();document.write(小于等于:a=b=); document.write(a=b); document.write();document.write(大于:ab=); document.write(ab); document.write();document.write(大于等于:a=b=); document.write(a=b); document.write();document.write(等于:a = =c=); document.write(a = c); document.write();输出结果为:3. test !- /自定义构造函数
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号