【单选题】【消耗次数:1】
分析下面的JavaScript代码段,输出的结果是()。emp=new Array(5);emp[1]=1;emp[2]=2;document.write(emp.length);(选择一项)
2
3
4
5
参考答案:
复制
纠错
相关题目
【单选题】 分析下面的JavaScript代码段,输出的结果是()。 emp=new Array(5); emp[1]=1; emp[2]=2; document.write(emp.length);
①  2
②  3
③  4
④  5
【单选题】 分析下面的JavaScript代码段,输出结果是()。var mystring=I am a studenta=mystring.charAt(9);document.write(a);(选择一项)
①  I am a st
②  u
③  udent
④  t
【单选题】 分析下面的JavaScript代码段,输出结果是()。 var mystring=I am a student; a=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
【单选题】 假设今天是2006年4月1日星期六,请问以下javascript代码输出结果是:( ) var time = new Date( ); document.write(time.getDate( ));
①  2006
②  4
③  1
④  6
【单选题】 有如下JavaScript代码: .... script language=JavaScript var x = true; document.write(x); /script .....页面运行后,输出( )。(选择一项)
①  1
②  0
③  true
④ 
【单选题】 在javaScript中,运行下列代码后的结果是 var d=1document.write(typcof(d));(选择一项)
①  char
②  number
③  string
④  undefined
【单选题】 在javaScript中,运行下列代码后的结果是 var d=1; document.write(typcof(d));
①  char
②  number
③  string
④  undefined
【单选题】 在JavaScript中,运行下面代码后的返回值是( )。var flag = true;document.write(typeof(flag));(选择一项)
①  undefined
②  null
③  number
④  boolean
【单选题】 以下程序的运行结果是( )。 void fun(int array[3][3]) { int j; for(j=0;jj++) array[1][j]=array[1][j]++; printf(\n} void main(){ int j,a[3][3]={0,1,2,1,0,4,2,4,5};fun(a);for(j=0;jj++)printf(%d,a[1][j]); printf(\n }
①  1 0 4
②  2 1 5
③  0 1 2
④  1 2 3
随机题目
【单选题】 Tom is one of the people who ______ they are now.
①  from
②  like
③  with
④  as
【单选题】 I’ll never forget the days ______ we spent together in the country.
①  which
②  on which
③  when
④  on that
【单选题】 The book ______ you want is on the desk.Which of the following isn’t right?
①  that
②  which
③  /
④  it
【单选题】 It is in 1960 ______ Chinese first put out flag on Mount Qomolangma.
①  when
②  that
③  which
④  in which
【单选题】 I have the same pen ______.
①  which you have
②  as yours
③  that you are
④  as you
【单选题】 The first school ______ we visited yesterday is not far from here.
①  that
②  which
③  to which
④  where
【单选题】 Drive straight ahead, and then you will see a_______to the Shanghai-Nanjing Expressway.
①  sign
②  mark
③  signal
④  board
【单选题】 It’s a mistake to think of Florida only __ its tourist attractions.
①  by means of
②  in terms of
③  in connection with
④  by way of
【单选题】 The teacher said ______ wanted to go to the cinema must be there before 6:00.
①  those who
②  that
③  who
④  which
【单选题】 The number of people who ______ cars of their own is increasing.
①  has
②  have
③  there is
④  there are