东师《JavaScript基础与应用》2019年春季学期期末作业考核答案

下面Change事件过程中,文本框控件Text1用来接收数字字符的输入,该事件过程的作用是

Private Sub Text1_Change()

Text2.Text=Str(6.28 * Val(Text1.Text) )

End Sub ( )。

A.将在文本框Text1输入的数字变为数值

B.将在文本框Text1输入的数字作为半径,求圆的周长并转换为字符串

C.只要Text1中的内容一改变,Text2中显示的圆周长也随之改变

D.事件过程中的Val函数和Str函数使用错误,事件过程不能执行


正确答案:C


如果对象的名称为Mytext,而且对象有一个属性Text,那么在代码中引用该属性的正确

格式是( )

A.Text.Mytext

B.Mytext.Text

C.Mytext.(Text)

D.Mytext*Text


正确答案:B


Do you have ______ shrimps? ---Here they ______ .

A、any,are

B、some,is

C、any,be

D、some,are


参考答案: A


Here are a few apples. Would you like to have _____________?

A、ones

B、some ones

C、one


参考答案:C


— Shall we get you some drink? — __________. I am not thirsty.

A、Yes, please

B、Here you are

C、You are welcome

D、No, thanks


正确答案:D


JavaScript基础与应用19春作业考核-0001试卷总分:100 得分:0一、 单选题 (共 30 道试题,共 60 分)1.鼠标点击事件为?A.clickB.onclickC.ondblclickD.onmouseout正确答案:B2.日期函数中getMonth()得到的值的范围为多少?A.1-12B.1-24C.0-11正确答案:C3.下面哪一个字符串变量定义语句是不正确的?A. var mytext = Here is some text!B. var mytext = Here is some text!C. var mytext = Here is some text!D.var mytext = Here isnsome text!正确答案:C4.js事件中,当弹出是否确认关闭页面的场景的时候,调用的函数是?A.onunloadB.onloadC.onbeforeunloadD.ready正确答案:C5.下列哪项不属于js数据类型?A.泛型B.布尔C.对象D.字符串正确答案:A6.下面关于get请求的说法,错误的是A.post能发送更多的数据类型B.post比get慢C.get发送的数据量更大(post有url长度限制)D.post更安全正确答案:C7.实现每过一秒钟更新时间,setInterval的时间参数应该设置为?A.1B.0.1C.1000D.100正确答案:C8.下面不属于BOM对象的是?A.window对象B.screen对象C.document对象D.history对象正确答案:C9.关于attribute和property说法,错误的是?A.attribute是dom元素在文档中作为html标签拥有的属性B.property是dom元素在js中作为对象拥有的属性C.property的值可以改变D.attribute的值可以改变正确答案:D10.document.write(Number(001.1)+); 程序运行结果是?A.0B.001C.1.1D.1100正确答案:C11.内容调用innerText和innerHtml时运行的效果是怎么样的?A.内容,B., 内容C.内容,内容D.内容, 内容正确答案:C12.以下所涉及到的页面效果,不可以使用javascript实现的是哪些?A.淘宝官网主页的轮播图特效B.天猫网页中的侧边栏弹层效果C.调用并展示数据库中所有的商品信息D.使用选项卡实现切换不同省份展示各个市区效果联动正确答案:C13.在条件和循环语句中,使用什么来标记语句组?A.圆括号()B.方括号C.花括号D.大于号正确答案:C14.如何编写当 i 等于 5 时执行一些语句的条件语句?A.if (i=5)B.if i=5 thenC.if i=5D.if i=5 then正确答案:A15.调用history.go(-1),那么页面发生的变化是?A.后退到前一个网址B.后退到打开的第一个网址C.前进到下面一个网址D.页面保持不变正确答案:A16.语句“var i; while(i=0) i-;”中while的循环次数是_。A.0B.1C.5D.无限正确答案:A17.引入一个js文件到html页面需要用哪个html标签?A.styleB.linkC.scriptD.html正确答案:C18.作为if/else语句的第一行,下列选项中哪一个是有效的?A.if(x=2)B.if(y7)C.elseD.if (x=2&)正确答案:B19.js日期中获取当前年份的函数为?A.getYear()B.getFullYear()C.getDay()D.getHours()正确答案:B20.有一个数组arr,使用for(var key in arr)/ 循环体,循环体内怎么获取数组的每一项元素呢?A.keyB.keyarrC.arrkeyD.arr正确答案:C21.页面中有一个id为test的元素,获取到该元素后赋值给变量objTest,此时想改变元素的颜色为红色,正确的写法为?A.objTest.color = red;B.objTest.style.color = red;C.objTest.backhround = red;D.objTest.style.background = red;正确答案:B22.合并两个数组的方法为?A.concatB.popC.joinD.splice正确答案:A23.下列选项中哪一个可以作为for循环的有效的第一行?A.for(x=1; xB. for(x=1; x6; x+=1)C.for(x=1;x=6; x+=1)D. for(x+=1; x6; x=1)正确答案:A24.new Boolean(-1) = true的结果为什么?A.trueB.falseC.报错D.undefined正确答案:A25.下面的哪一个表达式将返回真?A.(3=3)&(5l)B.!(17=20)C.(3!=3) | (72)D.(1=1) | (3b & b ; console.log(c);console.log(b) ,控制台结果是?A.true,4B.true,3C.false,100D.false,3正确答案:D27.有一个数字变量age,如果age小于18,控制台输出未成年,下列哪个是错误的?A.if(age18) console.log(未成年);B.if(age18)console.log(未成年);C.age 18 ? 未成年 : 成年;D.if(!(age18) console.log(未成年)正确答案:D28.下列选项中哪一个可以作为for循环的有效的第一行?A.for(x=1; xB.for(x=1; x6; x+=1)C.for(x=1;x=6; x+=1)D.for(x+=1; x=1 & n1=100) sum=sum+n1; n1+; console.log(sum);,以上程序的运行结果是?A.4950B.5050C.100D.99正确答案:B30.在HTML页面上编写javascript代码时,应编写在( )标签中。A.javascript和/javascriptB.script和/scriptC.head和/headD.body和/body正确答案:B二、 判断题 (共 20 道试题,共 40 分)1.在JavaScript中,任何一种循环结构的程序段,都可以用while循环实现。A.对B.错正确答案:A2.BOM对象等价于DO

Some parcels from New York have been sold here()a much lower price.

A、for

B、at

C、on

D、in


参考答案:B


Don’t worry. There is ______ room for all your books here.

A、 more

B、 much

C、enough

D、 some


正确答案:C


如果对象的名称为mytext,而且对象有一个属性text,那么在代码中引用该属性的正确格式是()。

A.Mytext.(Text)

B.Mytext.text

C.Mytext*Text

D.Text.Mytext


正确答案:B


Here are some drawings () for the new apartment.

A、to design

B、designing

C、designed

D、design


参考答案:C


Here is a pen, a few envelopes and some paper for you.()

此题为判断题(对,错)。


参考答案:正确

更多 “东师《JavaScript基础与应用》2019年春季学期期末作业考核答案” 相关考题
考题 多选题31. // some code here  32. try {  33. // some code here  34. } catch (SomeException se) {  35. // some code here  36. } finally {  37. // some code here  38. }  Under which three circumstances will the code on line 37 be executed?()AThe instance gets garbage collected.BThe code on line 33 throws an exception.CThe code on line 35 throws an exception.DThe code on line 31 throws an exception.EThe code on line 33 executes successfully.正确答案:A,C解析:暂无解析

考题 单选题如果对象的名称为Mytext,而且对象有一个属性Text,那么在代码中引用该属性的正确格式是()。A Text.MytextB Mytext.TextC Mytext.(Text)D Mytext*Text正确答案:C解析:暂无解析

考题 单选题What should the teacher try to avoid when selecting listening materials?A The text scripted and recorded in the studio,B The text with implicated concepts beyond the comprehension of students.C The text with local accents in pronunciation.D The text with some difficult words for students.正确答案:C解析:

考题 单选题Let’s open the windows to have some ______ air here.A cheapB nervousC carefulD fresh正确答案:B解析:句意:让我们打开窗户,呼吸新鲜空气吧。本题考查形容词词辨析。cheap便宜的。nervous紧张的。careful仔细的。fresh新鲜的。故选D项。

考题 In the text, the author mainly deals with _________.[A] the necessity of drama in a culture[B] some social functions of dramas[C] the responsibility of dramatists[D] some key elements in drama-making正确答案:D本题考查文章主旨。本文主要从文学角度介绍了戏剧所包含的重要因素。其中提到了人文动作者、情节、冲突、危机、结局等术语。因此[D]是主旨。其他项在文中都没有涉及。

考题 单选题Here is some _____ advice to any young businessman.A variableB worthwhileC worthyD value正确答案:B解析:句意:这儿有一些对任何年轻的商人来说都非常有用的建议。worthwhile意为“值得的,非常有用的”;variable意为“可变的,不定的”;worthy意为“值得……的”,其后常跟被动语态不定式或of+名词;value只可作名词或动词,不符合题意。

考题 The teacher gives students 2 minutes to skim a text, and when time is up, he asks students to stop and answer some questions. Here the teacher is playing the role of a (an)__________.A. assessor B. prompter C. participant D. controller答案:D解析:考查课堂管理中教师的角色。教师是课堂教学的调控者(controller)、促进者(prompter)、参与者(panicipant)、组织者(organizer)、评估者(assessor)、资源提供者(resource.provider)。此处体现的是教师在课堂上的调控能力.故选D。

考题 31. // some code here  32. try {  33. // some code here  34. } catch (SomeException se) {  35. // some code here  36. } finally {  37. // some code here  38. }  Under which three circumstances will the code on line 37 be executed?()A、 The instance gets garbage collected.B、 The code on line 33 throws an exception.C、 The code on line 35 throws an exception.D、 The code on line 31 throws an exception.E、 The code on line 33 executes successfully.正确答案:B,C,E

考题 如果对象的名称为Mytext,而且对象有一个属性Text,那么在代码中引用该属性的正确格式是()。AText.MytextBMytext.TextCMytext.(Text)DMytext*TextB略

考题 以下哪段代码不能正确创建函数show()?()A、function show(text){ alert(text); }B、var showFun = function show(text){ alert(text); }C、var showFun = function(text){ alert(text); }D、var showFun =new function("text" , "alert(text)"};正确答案:D