【单选题】【消耗次数: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 student; a=mystring.charAt(9); document.write(a);
①  I am a st
②  u
③  udent
④  t
【单选题】 分析下面的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中,运行下列代码后的结果是 var d=1; document.write(typcof(d));
①  char
②  number
③  string
④  undefined
【单选题】 假设今天是2006年4月1日星期六,请问以下javascript代码输出结果是:( )var time = new Date( );document.write(time.getDate( ));(选择一项)
①  2006
②  4
③  1
④  6
【单选题】 以下程序的运行结果是( )。 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
【单选题】 这条旋律 “3 4 | 5 6 2 3 | 4 - 1 2 | 3 3 2 2 | 2 1 ||”的节拍为( )
①  2/4
②  3/4
③  4/4
【单选题】 以下程序段运行后,x[1]的值为()。intx[5]={5,4,3,2,1};x[1]=x[3]+x[2+2]-x[3-1];
①  6
②  0
③  1
④  5
【单选题】 下列程序段If(2*2=5)(2*2=4)Then:Print"Trueisgreaterthanfalse":Else:Print"Falseisgreaterthantrue"的运行结果是()。
①  Trueisgreaterthanfalse
②  Falseisgreaterthantrue
③  False
④  True
随机题目
【单选题】 How can he ____if he is not ____?
①  listen--hearing
②  hear--listening
③  be listening--heard
④  be hearing--listened to
【单选题】 Lily: Hello, John! What was the weather like yesterday?John: ____
①  I like nice and bright weather.
②  You don’t like cold weather, do you?
③  That was a favorable weather.
④  Nice and bright, not too cold.
【单选题】 10. Far away around the corner I could see a small female ____advancing towards us.
①  body
②  figure
③  man
④  symbol
【单选题】 It is often more difficult to find trained men than ____ for scientific research.
①  getting financial support
②  to getting financial support
③  to get financial support
④  in getting financial support
【单选题】 “Here is the money I promised,” he said. “I always ____ promises.”
①  agree
②  follow
③  make
④  keep
【单选题】 This advertisement is a ____ example of their marketing plan.
①  social
②  typical
③  natural
④  historical
【单选题】 The earth ____ heat and light from the sun.
①  takes on
②  takes in
③  absorbs in
④  picks out
【单选题】 —When ____ the show ____?—It begins at 7 o’clock this evening.
①  does--begin
②  will--begin
③  is--beginning
④  is--going to begin
【单选题】 5. ____ come to this university, you need to get very good grades at the end of secondary school.
①  So you can
②  For you
③  In order to
④  To be able
【单选题】 Finding it difficult to ____ to the climate in the city, he decided to move to the North. ?
①  adopt ?
②  adapt ?
③  fit ?
④  suit?