多选题Which two are valid and equivalent?()A%! int i; %B%= int i; %Cjsp:exprint i;/jsp:exprDjsp:scriptletint i;/jsp:scriptletEjsp:declarationint i;/jsp:declaration

多选题
Which two are valid and equivalent?()
A

<%! int i; %>

B

<%= int i; %>

C

<jsp:expr>int i;</jsp:expr>

D

<jsp:scriptlet>int i;</jsp:scriptlet>

E

<jsp:declaration>int i;</jsp:declaration>


参考解析

解析: 暂无解析

相关考题:

下列语句中不是死循环的是A.int i=10; while(1) { i-- ; if (i= =1)break; }B.for(int i=l ;i<10;i++) { i -- ; }C.int i=0; do{ i++; }while(i >= 0);D.int i=l ; for (;;)i = i+1;

下列语句中不是死循环的是A.int i=10; while(1) { i--; if(i==1) break; }B.for(int i=1;i<10;i++) { i--; }C.int i=0; do{ i++; }while(i>=0) ;D.int i=1; for(;;) i=i+1;

下面程序段的输出结果是( )。 public class Test {public static void main(String args[]){ int[] a=new int[11]; int[] p=new int[4]; int k=5; for(int i= 1 ; i<= 10;i++) a[i]=i; for(int i=1 ; i<=3;i++) p[i]=a[i*i]; for(int i= 1 ;i<=3;i++) k=k+p[i]*2; System.out.println(k); }}A.37B.31C.33D.35

下面函数的作用是【 】。int index(int x,int a[],int n){for(int i=0;i<n;i++){if(a[i]==x)return i;}return i;}

有以下程序: include using namespace std; int f(int); int main() {int i;for(i=0; 有以下程序:include <iostream>using namespace std;int f(int);int main(){int i;for(i=0;i<5;i++)cout<<f(i)<<" ";return 0;}int f(int i){static int k=1;for(;i>0;i--)k+=i;

Giventheelementfromthewebapplicationdeploymentdescriptor:jsp-property-groupurl-pattern/main/page1.jsp/url-patternscripting-invalidtrue/scripting-invalid/jsp-property-groupandgiventhat/main/page1.jspcontains:%inti=12;%b%=i%/bWhatistheresult?()A.b/bB.b12/bC.TheJSPfailstoexecute.D.%inti=12%b%=i%/b

有以下程序:include define N 20fun(int a[] ,int n,int m){int i,j;for(i=m;i> :n;i 有以下程序: #include <stdio.h> #define N 20 fun(int a[] ,int n,int m) { int i,j; for(i=m;i> :n;i--) a[i+1] =a[i]; } main( ) { int i,a[N.] = 11,2.3,4,5,6,7,8,9,10[; fun( a,2,9) for(i =0;i<5;i ++ ) printf("% d" ,a[i] );程序运行后的输出结果是( )。A.10234B.12344C.12334D.12234

阅读以下说明及C++程序代码,将应填入(n)处的语句写在对应栏内。【说明】本程序的功能是实现任意两个大整数的乘法运算,例如:输入整数1:8934793850094505800243958034985058输入整数2:234584950989689084095803583095820923二者之积:209596817742739508050978890737675662366433464256830959194834854876 8534【C++代码】include<iostream.h>const int MAXINPUTBIT=100;const int MAXRESULTBIT=500;class LargeNumber{int i,j;int temp;int one[MAXINPUTBIT+1];int onebit; //one的位数int two[MAXINPUTBIT+1];int twobit; //two的位数int result[MAXRESULTBIT+1];public:LargeNumber();~LargeNumber();int inputone(); //出错返叫0,否则返回1int inputtwo(); //同上void multiplication(); //乘void clearresult(); //清零void showresult(); //显示};LargeNumber∷LargeNumber(){for(i=0;i<=MAXINPUTBIT;i++){one[i]=0;two[i]=0;}nebit=0;twobit=0;inputone();inputtwo();}LargeNumber∷~LargeNumber(){}int LargeNumber∷inputone(){char Number[MAXINPUTBIT+1];cout<<"Please enter one:";cin>>Number;i=0;j=MAXINPUTBIT;while(Number[i]!='\0')i++;nebit=i;for(i--;i>=0;i--,j--){if(int(Number[i])>=48int(Number[i])<=57)(1); //由字符转换为数字elsereturn 0;}return 1;}int LargeNumber∷inputtwo(){char Number[MAXINPUTBIT+1];cout<<"Please enter two:";cin>>Number;i=0;j=MAXINPUTBIT;while(Number[i]!='\0')i++;twobit=i;for(i--;i>=0;i--,j--){if(int(Number[i])>=48int(Number[i])<=57)two[j]=int(Number[i]-48); //由字符转换为数字elsereturn 0;}return 1;}void LargeNumber∷multiplication() //乘法{clearresult();int m;for(i=MAXINPUTBIT;i>=0;i--){temp=two[i];for(j=(2),m=MAXINPUTBIT;m>=0;m--,j--){result[j]+=temp*one[m];if(result[j]>9){result[j-1]+=result[j]/10;(3);}}&n

下列有关指针的用法中,错误的是( )。A.int i;int *p=i;B. int i;int *p;i=*p;C. int *p;p=0;D.int i=5;int *p;p=i;

For manageability purposes, you have been told to add a "count" instance variable to a critical JSP Document so that a JMX MBean can track how frequent this JSP is being invoked. Which JSP code snippetmust you use to declare this instance variable in the JSP Document?()A、jsp:declarationint count = 0;jsp:declarationB、%! int count = 0; %C、jsp:declaration.instanceint count = 0;. jsp:declaration.instanceD、jsp:scriptlet.declarationint count = 0;. jsp:scriptlet.declaration

编写JSP小脚本,实现访问该JSP时,在会话对象中保存int型变量i的有效语句是()。A、session.setAttribute(i,”I”)B、session.setParameter(“I”,i)C、session.setAttribute(new Integer(i),”I”)D、session.setAttribute(“I”,new Integer(i))

下面代码  在J2EE中,aa.jsp文件如下 %!  Starci  int I=0;  int j=0;%    % for ( ; I++2;) method_  { out.pringt(j++) ; out.print(“   ”);} %      %! i="0;" int="" j="0;%" starci=""      % for="" method_="" /{ out.pringt(j++) ; out.print(“   ”);} % 有两个客户依次使用浏览器浏览aa.jsp,且每个客户只浏览aa.jsp依次, 那么第二个客户看到浏览器显示()。 A、 0  1B、 1 2C、 3  4D、5  6E、 什么也没有

ArraryList a = new ArrayList();  a.add(“Alpha”);  a.add(“Bravo”):  a.add(“Charlie”);  a.add(“Delta”);  Iterator iter = a.iterator(); Which two, added at line 17, print the names in the ArrayList in alphabetical order?()A、 for (int i=0; i a.size(); i++)  System.out.println(a.get(i)));B、 for (int i=0; i a.size(); i++)  System.out.println(a[i]);C、 while( iter.hasNext() )  System.out.println(iter.next()) ;D、 for (int i=0, i a.size(); i++)  System.out.println(iter[i]);E、 for (int i=0; i a.size(); i++)  System.out.println(iter.get(i));

You need to create a JSP that generates some JavaScript code to populate an array of strings used on theclient-side. Which JSP code snippet will create this array?()A、MY_ARRAY = new Array();% for ( int i = 0; i  serverArray.length; i++ ) { MY_ARRAY[%= i %] = ’%= serverArray[i] %’;} %B、MY_ARRAY = new Array();. % for ( int i = 0; i  serverArray.length; i++ ) { . MY_ARRAY[${i}] = ’${serverArray[i]}’;. } %C、MY_ARRAY = new Array();. % for ( int i = 0; i  serverArray.length; i++ ) { % . MY_ARRAY[%= i %] = ’%= serverArray[i] %’;. % } %D、MY_ARRAY = new Array();% for ( int i = 0; i  serverArray.length; i++ ) { % . MY_ARRAY[${i}] = ’${serverArray[i]}’;. % } %

Which are syntactically valid statement at// point x?()     class Person {     private int a;  public int change(int m){  return m;  }     }  public class Teacher extends Person {     public int b;  public static void main(String arg[]){     Person p = new Person();     Teacher t = new Teacher();    int i;  // point x     }    } A、 i = m;B、 i = b;C、 i = p.a;D、 i = p.change(30);E、 i = t.b.

Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains: % int i = 12; % %= i %  What is the result?()A、b/bB、b12/bC、The JSP fails to execute.D、% int i = 12 %b%= i %/b

Given the following interface definition, which definitions are valid?()   interface I {   void setValue(int val);   int getValue();   }    DEFINITION a:   (a) class a extends I {  int value;   void setValue(int val) { value = val;  }   int getValue() {  return value;  }   }   DEFINITION b:   (b) interface b extends I {   void increment();   }   DEFINITION c:   (c) abstract class c implements I {   int getValue() {  return 0;  }  abstract void increment();   }   DEFINITION d:   (d) interface d implements I {  void increment();  }   DEFINITION e:   (e) class e implements I {  int value;   public void setValue(int val) { value = val; }  }  A、Definition a.B、Definition b.C、Definition c.D、Definition d.E、Definition e.

for( int i = min; i A、 init i = min;while( i  max ){}B、 int i = min;  do system.out.println(i++); } while( i max );C、 for (int i=min; iD、 for (int i=; i++

Which two are valid and equivalent?()A、%! int i; %B、%= int i; %C、jsp:exprint i;/jsp:exprD、jsp:scriptletint i;/jsp:scriptletE、jsp:declarationint i;/jsp:declaration

单选题You need to create a JSP that generates some JavaScript code to populate an array of strings used on theclient-side. Which JSP code snippet will create this array?()AMY_ARRAY = new Array();% for ( int i = 0; i  serverArray.length; i++ ) { MY_ARRAY[%= i %] = ’%= serverArray[i] %’;} %BMY_ARRAY = new Array();. % for ( int i = 0; i  serverArray.length; i++ ) { . MY_ARRAY[${i}] = ’${serverArray[i]}’;. } %CMY_ARRAY = new Array();. % for ( int i = 0; i  serverArray.length; i++ ) { % . MY_ARRAY[%= i %] = ’%= serverArray[i] %’;. % } %DMY_ARRAY = new Array();% for ( int i = 0; i  serverArray.length; i++ ) { % . MY_ARRAY[${i}] = ’${serverArray[i]}’;. % } %

多选题Which two are valid and equivalent?()A%! int i; %B%= int i; %Cjsp:exprint i;/jsp:exprDjsp:scriptletint i;/jsp:scriptletEjsp:declarationint i;/jsp:declaration

多选题Given the following interface definition, which definitions are valid?()   interface I {   void setValue(int val);   int getValue();   }    DEFINITION a:   (a) class a extends I {  int value;   void setValue(int val) { value = val;  }   int getValue() {  return value;  }   }   DEFINITION b:   (b) interface b extends I {   void increment();   }   DEFINITION c:   (c) abstract class c implements I {   int getValue() {  return 0;  }  abstract void increment();   }   DEFINITION d:   (d) interface d implements I {  void increment();  }   DEFINITION e:   (e) class e implements I {  int value;   public void setValue(int val) { value = val; }  }ADefinition a.BDefinition b.CDefinition c.DDefinition d.EDefinition e.

单选题编写JSP小脚本,实现访问该JSP时,在会话对象中保存int型变量i的有效语句是()。Asession.setAttribute(i,”I”)Bsession.setParameter(“I”,i)Csession.setAttribute(new Integer(i),”I”)Dsession.setAttribute(“I”,new Integer(i))

单选题Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains:   What is the result?()Ab/bBb12/bCThe JSP fails to execute.D% int i = 12 %b%= i %/b

单选题Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains:   What is the result?()Ab/bBb12/bCThe JSP fails to execute.D% int i = 12 %b%= i %/b

多选题ArraryList a = new ArrayList();  a.add(“Alpha”);  a.add(“Bravo”):  a.add(“Charlie”);  a.add(“Delta”);  Iterator iter = a.iterator(); Which two, added at line 17, print the names in the ArrayList in alphabetical order?()Afor (int i=0; i a.size(); i++)  System.out.println(a.get(i)));Bfor (int i=0; i a.size(); i++)  System.out.println(a[i]);Cwhile( iter.hasNext() )  System.out.println(iter.next()) ;Dfor (int i=0, i a.size(); i++)  System.out.println(iter[i]);Efor (int i=0; i a.size(); i++)  System.out.println(iter.get(i));

单选题for( int i = min; i A init i = min;while( i  max ){}B int i = min;  do system.out.println(i++); } while( i max );C for (int i=min; iD for (int i=; i++

单选题For manageability purposes, you have been told to add a "count" instance variable to a critical JSP Document so that a JMX MBean can track how frequent this JSP is being invoked. Which JSP code snippetmust you use to declare this instance variable in the JSP Document?()Ajsp:declarationint count = 0;jsp:declarationB%! int count = 0; %Cjsp:declaration.instanceint count = 0;. jsp:declaration.instanceDjsp:scriptlet.declarationint count = 0;. jsp:scriptlet.declaration