答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数:1】
已知inta=4,b=5;,这执行表达式a=a>b后,变量a的值为()
①
0
②
1
③
4
④
5
参考答案:
复制
纠错
相关题目
【单选题】
已知inta=2,b=5;则表达式a+5>b+3的值是
①
0
②
1
③
不确定
④
表达式错误
查看完整题目与答案
【单选题】
若有定义:inta=5,b=2;则表达式b=(a!=5)的值为()。
①
5
②
0
③
3
④
2
查看完整题目与答案
【单选题】
设int a =5,b =7;则条件表达式8<4?a :b 的值为()
①
0
②
1
③
5
④
7
查看完整题目与答案
【单选题】
若定义inta=-5,b=-8,c=-12;则表达式a=b||bc的值为()。
①
变量i的值
②
变量j的值
③
0
④
1
查看完整题目与答案
【单选题】
若有定义:inta;且表达式!a的值为0,则表达式()的值为1。
①
a!=0
②
a==0
③
a=0
④
!(a0||a0)
查看完整题目与答案
【单选题】
b=5,则以下表达式值为真的是()。
①
(a=b)and(b10)
②
(((a0)or(b0)
③
(a0)and(b0)
④
(-3+5)aand(b0)
查看完整题目与答案
【单选题】
若有定义:inta[3][4];则表达式a[2][1]-a的值为()。
①
7
②
8
③
9
④
10
查看完整题目与答案
【单选题】
设int a =-12,b =5;则条件表达式a <b ?a+2:b 的值为()
①
1
②
0
③
-10
④
5
查看完整题目与答案
【单选题】
已知表达式 int m [ ] = {,1,2,3,4,5,6}; 下面哪个表达式的值与数组下标量总数相等?( )
①
m.length()
②
m.length
③
m.length()+1
④
m.length+1
查看完整题目与答案
【单选题】
如果int a=3,b=4;则条件表达式“a<b? a:b”的值是()。
①
3
②
4
③
0
④
1
查看完整题目与答案
随机题目
【多选题】
下列选项中,( )可以打开一个无状态栏的页面。(选择二项)
①
window.open(advert.html
②
window.open(advert.html,广告,toolbar=1,scrollbars=0,status=1
③
window.open(advert.html,,scrollbars=1,location=0,resizable=1
④
window.open(advert.html,,toolbars=0, scrollbars=1, location=1, status=no
查看完整题目与答案
【多选题】
在JavaScript中,下列方法中相当于客户端点击F5(刷新)的是()(选择二项)
①
document.replace( );
②
document.reload( );
③
location.replace(location.href);
④
location.reload( );
查看完整题目与答案
【单选题】
下面( )可实现刷新当前页面。(选择一项)
①
reload( )
②
replace( )
③
href
④
referrer
查看完整题目与答案
【单选题】
有如下JavaScript代码,运行后页面文档背景色为蓝色,要实现该效果,横向处应填写( )。script language=JavaScriptfunction change( ){ document.______=blue}/scriptbody onload=change( )/body(选择一项)
①
bgColor
②
backgroud
③
color
④
background-color
查看完整题目与答案
【单选题】
在javascript浏览器对象模型中,window对象的( )属性用来指定浏览器状态栏中显示的临时消息。(选择一项)
①
status
②
screen
③
history
④
document
查看完整题目与答案
【单选题】
以下选项中,( )可以打开一个无状态栏,无工具栏、有滚动条的页面。(选择一项)
①
window.open(adv.html
②
window.open(adv.html,广告,toolbar=0,scrollbar=0,status=1)
③
window.open(adv.html,广告,toolbar=1,scrollbar=1,status=0)
④
window.open(adv.html,广告,toolbar=0,scrollbar=1,status=0)
查看完整题目与答案
【单选题】
下面( )不是document对象的方法。(选择一项)
①
getElementsByName( )
②
getElementById( )
③
write( )
④
reload( )
查看完整题目与答案
【单选题】
有如下JavaScript代码: .... script language=JavaScript var x = true; document.write(x); /script .....页面运行后,输出( )。(选择一项)
①
1
②
0
③
true
④
真
查看完整题目与答案
【单选题】
下面( )不是document对象的方法。(选择一项)
①
getElementsByTagName( )
②
getElementById( )
③
write( )
④
reload( )
查看完整题目与答案
【单选题】
下面选项中()能获得焦点。(选择一项)
①
blur( )
②
select( )
③
focus( )
④
onfocus( )
查看完整题目与答案