Int foo = (int) Math.max(bar);
Int foo = (int) Math.min(bar);
Int foo = (int) Math.abs(bar);
Int foo = (int) Math.ceil(bar);
Int foo = (int) Math.floor(bar);
Int foo = (int) Math.round(bar);
第1题:
A.int foo() { /* more code here */ }
B.void foo() { /* more code here */ }
C.public void foo() { /* more code here */ }
D.private void foo() { /* more code here */ }
E.protected void foo() { /* more code here */ }
第2题:
Given: 3.public class MyTagHandler extends TagSupport { 4.public int doStartTag() { 5.// insert code here 6.// return an int 7.} 8.// more code here ... 18.} There is a single attribute foo in the session scope. Which three code fragments,inserted independently atline 5,return the value of the attribute?()
第3题:
有如下类定义:
class Foo
{
public:
Foo(int v):value(v){} // ①
~Foo(){} // ②
private:
Foo(){} // ③
int value = 0; // ④
};
其中存在语法错误的行是
A . ①
B . ②
C . ③
D . ④
第4题:
Which JSTL code snippet can be used to perform URL rewriting?()
第5题:
int index = 1; String test = new String; String foo = test[index]; What is the result?()
第6题:
A.Foo { public int bar() { return 1; }
B.new Foo { public int bar() { return 1; }
C.new Foo() { public int bar() { return 1; }
D.new class Foo { public int bar() { return 1; }
第7题:
class One { void foo() {} } class Two extends One { //insert method here } Which three methods, inserted individually at line 14, will correctly complete class Two?()
第8题:
( 10 )已知下列程序的输出结果是 42 ,请将画线处缺失的部分补充完整。
#include
using namespace std;
class Foo {
int value;
public:
Foo( ) : value(0) {}
void setValue(int value)
{ 【 10 】 = value; // 给 Foo 的数据成员 value 赋值 }
void print( ) { cout << value; }
};
int main( )
{
Foo f;
f.setValue(42);
f.print();
return 0;
}
第9题:
Which code determines the int value foo closest to a double value bar?()
第10题:
int index = 1; boolean test = new Boolean; boolean foo= test [index]; What is the result?()