题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-12-04 05:37:03

[单选题]function Foo(){ var i=0; return function(){document.write(i++); } } var f1=Foo(), f2=Foo(); f1(); f1(); f2(); 请问以上程序的输出是()
A.010
B.012
C.000
D.011

更多"[单选题]function Foo(){ var i=0; retur"的相关试题:

[单选题]function Foo(){ var i=0; return function(){document.write(i++); } } var f1=Foo(), f2=Foo(); f1(); f1(); f2(); 请问以上程序的输出是()
A.010
B.012
C.000
D.011
[单选题]下面这个 JS 程序的输出是什么: function Foo() { var i = 0; return function() { console.log(i++); } } var f1 = Foo(), f2 = Foo(); f1(); f1(); f2();
A.0 1 0
B.0 1 2
C.0 0 0
D.0 0 2
[单选题]var myObject = { foo: "bar", func: function() { var self = this; console.log(this.foo); console.log(self.foo); (function() { console.log(this.foo); console.log(self.foo); }()); } }; myObject.func(); 程序的输出是什么?
A.bar bar bar bar
B.bar bar bar undefined
C.bar bar undefined bar
D.undefined bar undefined bar
[单选题]分析下面的 Javascript 代码段,输出结果是() var mystring=”I am a student”; var a=mystring.substring(9,13); document.write(a);
A.stud
B.tuden
C.uden
D.udent
[单选题]- How do I get to the cinema?
- _________
A.It's very far.
B.Yes, there is a cinema near here.
C.It's well known.
D.Go down this street and turn left.
[单选题]I/O模块DO表示( )。
A.模拟量输入
B.模拟量输出
C.数字量输入
D.数字量输出
[单选题]- Do you think I can borrow your bike for a few hours?
- _________
A.I'm afraid you can.
B.I'm sorry, but I really need it this afternoon.
C.Yes, I don't think so.
D.I'll think about it later.
[单选题]foo 对象有 att 属性,那么获取 att 属性的值,以下哪些做法是不可以的:()
A.foo.att
B.foo(“att”)
C.foo*“att”+
D.foo*“a”+”t”+”t”+
[单选题]- Do you mind if I read the text aloud here?
- _________
A.Yes, you read it.
B.No, I don't.
C.Yes, I don't.
D.No, I don't like to read.
[单选题] — It's rather cold in here. Do you mind if I close the window?
— ________
A. Yes, please.
B. No, please.
C. Sure, please.
D. I don't like it.
[单选题]- You have such a nice house! I do like it.
- _________
A.No, you needn't.
B.It's very kind of you to say so.
C.No, it is not.
D.Don't mention it.
[单选题] I didn't mean to do that. Please forgive me.
— ________
A. Not too bad.
B. That's all right
C. It's a pleasure.
D. Thank you.
[单选题]I didn't know what to do, but then an idea suddenly ________ to me.
A.appeared
B.happened
C.occurred
D.emerged
[单选题] I didn’t know what to do, but then an idea suddenly ________to me.
A. appeared
B. happened
C. occurred
D. emerged
[单选题]JavaScript 定义 var a="40",var b=7,则执行 a%b 会得到()。
A.5
B."5"
C.undefined
D.null

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码