• 2022-06-19 问题

    有如下定义struct data{ int x;int y;} test1={10,20}, test2;则以下赋值语句中错误的是( )。 A: test2=test1; B: test2.x=test1.x; C: test2.x=test1.y; D: test2={30,40};

    有如下定义struct data{ int x;int y;} test1={10,20}, test2;则以下赋值语句中错误的是( )。 A: test2=test1; B: test2.x=test1.x; C: test2.x=test1.y; D: test2={30,40};

  • 2022-06-08 问题

    下列代码的运行结果是______ <script> var x = 1; function test() { var x = 2; y = 3; document.write(x); } test(); document.write(x); document.write(y); </script>

    下列代码的运行结果是______ <script> var x = 1; function test() { var x = 2; y = 3; document.write(x); } test(); document.write(x); document.write(y); </script>

  • 2022-05-28 问题

    下面哪些是正确的携带URL参数的超级链接href属性 A: href=“{:url(‘test’), ‘id’=&gt;2}” B: href=“{:url(‘test’),[‘id’=&gt;2]}” C: href=“{:url(‘test’),[‘id’=&gt;2], [‘X’=&gt;input(‘sid’)]}” D: href=“{:url(‘test’),[‘id’=&gt;2 , ‘X’=&gt;input(‘sid’) ]}”

    下面哪些是正确的携带URL参数的超级链接href属性 A: href=“{:url(‘test’), ‘id’=&gt;2}” B: href=“{:url(‘test’),[‘id’=&gt;2]}” C: href=“{:url(‘test’),[‘id’=&gt;2], [‘X’=&gt;input(‘sid’)]}” D: href=“{:url(‘test’),[‘id’=&gt;2 , ‘X’=&gt;input(‘sid’) ]}”

  • 2022-05-29 问题

    设有泛型类的定义如下class Test; { }则由该类创建对象时,使用正确的是? A: Test; x = new Test;(); B: Test x = new Test(); C: Test; x = new Test;(); D: Test; x = new Test;();

    设有泛型类的定义如下class Test; { }则由该类创建对象时,使用正确的是? A: Test; x = new Test;(); B: Test x = new Test(); C: Test; x = new Test;(); D: Test; x = new Test;();

  • 2021-04-14 问题

    阅读以下程序,写出运行结果。 #include using namespace std; class Test { private: int num; public: Test(); Test(int n); }; Test::Test() { cout << "Init defa" << endl; num = 0; } Test::Test(int n) { cout << "Init" << " " << n << endl; num = n; } int main() { Test x[2]; Test y(15); return 0; }

    阅读以下程序,写出运行结果。 #include using namespace std; class Test { private: int num; public: Test(); Test(int n); }; Test::Test() { cout << "Init defa" << endl; num = 0; } Test::Test(int n) { cout << "Init" << " " << n << endl; num = n; } int main() { Test x[2]; Test y(15); return 0; }

  • 2022-05-29 问题

    设有泛型类的定义如下class Test<T> { }则由该类创建对象时,使用正确的是? A: Test x = new Test();<table width="77" cellspacing="0" cellpadding="0"><colgroup><tbody><tr class="firstRow">数据添加到文件中; B: Test<int> x = new Test<int>(); C: Test<Object> x = new Test<Object>(); D: Test<T> x = new Test<T>();

    设有泛型类的定义如下class Test<T> { }则由该类创建对象时,使用正确的是? A: Test x = new Test();<table width="77" cellspacing="0" cellpadding="0"><colgroup><tbody><tr class="firstRow">数据添加到文件中; B: Test<int> x = new Test<int>(); C: Test<Object> x = new Test<Object>(); D: Test<T> x = new Test<T>();

  • 2021-04-14 问题

    (6-6)请阅读程序,写出程序运行结果。 class Test{ static int x=10; int y=99; { y=y+10; } static { x=x+5; } { y=y+10; } static { x=x+5; } public Test() {//构造方法 x=x+5; } { System.out.println(x*y); } } public class Demo11 { public static void main(String[] args) { Test t1=new Test(); Test t2=new Test(); } }

    (6-6)请阅读程序,写出程序运行结果。 class Test{ static int x=10; int y=99; { y=y+10; } static { x=x+5; } { y=y+10; } static { x=x+5; } public Test() {//构造方法 x=x+5; } { System.out.println(x*y); } } public class Demo11 { public static void main(String[] args) { Test t1=new Test(); Test t2=new Test(); } }

  • 2022-06-07 问题

    以下是"public static void test(int x, int y)"的方法重载( ) A: public static void Test(int x) B: public static int test(int x, int y) C: public static void test(int y, int x) D: public static void test(int x, int y)

    以下是"public static void test(int x, int y)"的方法重载( ) A: public static void Test(int x) B: public static int test(int x, int y) C: public static void test(int y, int x) D: public static void test(int x, int y)

  • 2022-07-24 问题

    如下代码定义了一个类Test: class Test { private int y; Test (int x) { y:x; } }现在为Test 类生成一个对象,正确的语句是( )。 A: Test t = new Test( ); B: Test t=new Test(10, 20); C: Test t; D: Test t=new Test(10);

    如下代码定义了一个类Test: class Test { private int y; Test (int x) { y:x; } }现在为Test 类生成一个对象,正确的语句是( )。 A: Test t = new Test( ); B: Test t=new Test(10, 20); C: Test t; D: Test t=new Test(10);

  • 2022-06-06 问题

    passwd设置test用户口令时,修改密码时间间隔为2天,密码有效期为10天,到期前2天提示,过期后3天禁用 A: passwd -n 2 -x 7 -w 2 -i 3 test B: passwd -n 2 -e 7 -w 2 -i 3 test

    passwd设置test用户口令时,修改密码时间间隔为2天,密码有效期为10天,到期前2天提示,过期后3天禁用 A: passwd -n 2 -x 7 -w 2 -i 3 test B: passwd -n 2 -e 7 -w 2 -i 3 test

  • 1 2 3 4 5 6 7 8 9 10