【单选题】【消耗次数:1】
有如下JavaScript代码: .... script language=JavaScript var x = true; document.write(x); /script .....页面运行后,输出( )。(选择一项)
1
0
true
参考答案:
复制
纠错
相关题目
【单选题】 在JavaScript中,运行下面代码后的返回值是( )。var flag = true;document.write(typeof(flag));(选择一项)
①  undefined
②  null
③  number
④  boolean
【单选题】 在JavaScript中,运行下面代码后的返回值是( )。 var flag = true; document.write(typeof(flag));
①  undefined
②  null
③  number
④  boolean
【单选题】 有如下JavaScript代码: ....。 .....。 页面运行后,输出( )。
①  1
②  0
③  true
④ 
【单选题】 有如下JavaScript代码,运行后页面文档背景色为蓝色,要实现该效果,横向处应填写( )。script language=JavaScriptfunction change( ){ document.______=blue}/scriptbody onload=change( )/body(选择一项)
①  bgColor
②  backgroud
③  color
④  background-color
【单选题】 在HTML中,运行下面的javascript代码,则在弹出的提示框中显示的消息内容为()。(script language=javascript) x=3; y=2; z=(x+2)/y; alert(z);(/script)(选择一项)
①  2
②  2.5
③  32/2
④  16
【单选题】 在javaScript中,运行下列代码后的结果是 var d=1; document.write(typcof(d));
①  char
②  number
③  string
④  undefined
【单选题】 在javaScript中,运行下列代码后的结果是 var d=1document.write(typcof(d));(选择一项)
①  char
②  number
③  string
④  undefined
【单选题】 分析下面的JavaScript代码段,输出结果是()。var mystring=I am a studenta=mystring.charAt(9);document.write(a);(选择一项)
①  I am a st
②  u
③  udent
④  t
【单选题】 假设今天是2006年4月1日星期六,请问以下javascript代码输出结果是:( )var time = new Date( );document.write(time.getDate( ));(选择一项)
①  2006
②  4
③  1
④  6
【单选题】 分析下面的JavaScript代码段,输出的结果是()。emp=new Array(5);emp[1]=1;emp[2]=2;document.write(emp.length);(选择一项)
①  2
②  3
③  4
④  5
随机题目
【单选题】 Thanks to Mr. Wang, he kept____ us to remember the important things.?
①  to ask ?
②  asking ?
③  to be asked ?
④  not asking?
【单选题】 They will inform him ____ any progress they make in the experiment.
①  about
②  on
③  of
④  with
【单选题】 The reason I didn’t go to school that day was ____ill.
①  due to
②  that I fell
③  because of falling
④  because I fell
【单选题】 Chinahas launched a number of ____satellites since the 1970s.
①  information
②  Communication
③  TV
④  message
【单选题】 The weather in Harbin is quite different from____ in Hainan.
①  the one
②  one
③  that
④  it
【单选题】 24. The music sounded____. I enjoyed every minute of it
①  well
②  boring
③  wonderfully
④  beautiful
【单选题】 Julie has gained more experience than____ in her restaurant and the customers like her.
①  any waitress
②  other waitresses
③  the waitress
④  any other waitress
【单选题】 I eagerly answered all the questions, never ____ much about making mistakes.
①  worry
②  worried
③  worries
④  worrying
【单选题】 —Good morning, John. How are you doing?—____.
①  Im pleased.
②  Good night.
③  Not so bad. And you?
④  How do you do?
【单选题】 We often get ____ when people cut in line.
①  annoying
②  annoyed
③  to annoy
④  annoy