单选题现有如下五个声明:  Linel: int a_really_really_really_long_variable_name=5 ;     Line2: int  _hi=6;  Line3:  int  big=Integer. getlnteger("7”);      Line4:int $dollars=8;      line5: int %opercent=9;      哪行无法通过编译?()A Line1B Line3C Line4D Line5

题目
单选题
现有如下五个声明:  Linel: int a_really_really_really_long_variable_name=5 ;     Line2: int  _hi=6;  Line3:  int  big=Integer. getlnteger("7”);      Line4:int $dollars=8;      line5: int %opercent=9;      哪行无法通过编译?()
A

Line1

B

Line3

C

Line4

D

Line5


相似考题
更多“单选题现有如下五个声明:  Linel: int a_really_really_really_long_variable_name=5 ;     Line2: int  _hi=6;  Line3:  int  big=Integer. getlnteger("7”);      Line4:int $dollars=8;      line5: int %opercent=9;      哪行无法通过编译?()A Line1B Line3C Line4D Line5”相关问题
  • 第1题:

    现有如下五个声明:inta_really_really_really_long_variable_name=5;int_hi=6;intbig=Integer.getInteger("7");int$dollars=8;int%percent=9;有几个可以通过编译?()

    A.1

    B.2

    C.3

    D.4


    参考答案:D

  • 第2题:

    int[][] myarray3=new int[3][]{new int[3]{5,6,2},new int[5]{6,9,7,8,3},new

    int[2]{3,2}};myarray3[2][2]的值是( )。


    正确答案:
     

  • 第3题:

    ● 有一段C 程序如下,执行后,其运行结果为 (52) 。

    int f(int a) {

    auto int b = 0;

    static int c = 3;

    b ++; c++;

    return(a+b+c);

    }

    main() {

    int a=2,i;

    for(i=0; i<3; i++) printf("%d, ",f(a));

    }

    (52)

    A. 7,8,9,

    B. 7,7,7,

    C. 6,7,8,

    D. 9,8,7,


    正确答案:A

  • 第4题:

    在下面的函数声明中,存在着语法错误的是()。

    • A、BC(int a, int)
    • B、BC(int, int)
    • C、BC(int, int=5)
    • D、BC(int x=6, int y)

    正确答案:D

  • 第5题:

    现有如下五个声明:   int a_really_really_really_long_variable_name = 5;  int _hi =6;   int big = Integer.getInteger("7");   int $dollars = 8;   int %percent = 9;   有几个可以通过编译?()  

    • A、1
    • B、2
    • C、3
    • D、4

    正确答案:D

  • 第6题:

    现有:   1. class Synapse {    2.    protected int gap() { return 7; }    3. }   4.     5. class Creb extends Synapse {    6.   // insert code here   7. }    分别插入到第 6 行,哪三行可以编译?()

    • A、 int gap() { return 7; }
    • B、 public int gap() { return 7; }
    • C、 private int gap(int x) { return 7; }
    • D、 protected Creb gap() { return this; }
    • E、 public int gap() { return Integer.getInteger ("42"); }

    正确答案:B,C,E

  • 第7题:

    1. class SuperFoo {  2. SuperFoo doStuff(int x) {  3. return new SuperFoo(); 4. }  5. }  6.  7. class Foo extends SuperFoo {  8. //insert code here  9. }   下面哪三项分别插入到第8行,可以编译?()

    • A、int doStuff() { return 42; }
    • B、int doStuff(int x) { return 42; }
    • C、Foo doStuff(int x) { return new Foo(); }
    • D、SuperFoo doStuff(int x) { return new Foo(); }

    正确答案:A,C,D

  • 第8题:

    现有:   1. interface Altitude {   2.   //insert code here  3. }    和4个声明:  int HIGH = 7;   public int HIGH = 7;   abstract int HIGH = 7;   interface int HIGH = 7;    分别插入到第2行,有多少行可以编译?()  

    • A、 0
    • B、 1
    • C、 2
    • D、 3
    • E、 4

    正确答案:C

  • 第9题:

    单选题
    1.class SuperFo{   2. SuperFo doStuff(int x){   3.return new SuperFo()   4.}   5.}  6.   7.class Foo extends SuperFo{   8.//insert code here   9.}   和四个声明:   Foo doStuff(int x){return new Foo();}   Foo doStuff(int x){return new SuperFoo();}   SuperFoo doStuff(int x){return new foo();}   SuperFoo doStuff(int y){return new SuperFoo();}   分别插入到第8行,有几个可以通过编译 ()
    A

    1

    B

    2

    C

    3

    D

    4

    E

    5


    正确答案: D
    解析: 暂无解析

  • 第10题:

    单选题
    现有:   1. interface Altitude {   2.   //insert code here  3. }    和4个声明:  int HIGH = 7;   public int HIGH = 7;   abstract int HIGH = 7;   interface int HIGH = 7;    分别插入到第2行,有多少行可以编译?()
    A

     0

    B

     1

    C

     2

    D

     3

    E

     4


    正确答案: D
    解析: 暂无解析

  • 第11题:

    单选题
    现有如下五个声明:  Linel: int a_really_really_really_long_variable_name=5 ;     Line2: int  _hi=6;  Line3:  int  big=Integer. getlnteger("7”);      Line4:int $dollars=8;      line5: int %opercent=9;      哪行无法通过编译?()
    A

    Line1

    B

    Line3

    C

    Line4

    D

    Line5


    正确答案: C
    解析: 暂无解析

  • 第12题:

    单选题
    int a_really_really_really_long_variable_name=5;   int _hi=6;   int big=Integer.getInteger(“7”);   int $dollars=8;   int %percent=9;   有几个可以通过编译?()
    A

    2

    B

    3

    C

    4

    D

    5

    E

    1


    正确答案: C
    解析: 暂无解析

  • 第13题:

    现有如下五个声明:Linel:inta_really_really_really_long_variable_name=5;Line2:int_hi=6;Line3:intbig=Integer.getlnteger("7”);Line4:int$dollars=8;line5:int%opercent=9;哪行无法通过编译?()

    A.Line1

    B.Line3

    C.Line4

    D.Line5


    参考答案:D

  • 第14题:

    有如下程序 float fun (int x,int y){return(x+y);} main() { int a=2,b=5,c=8; printf("%3.Of\n",fun((int)fun(a+c,B) ,(a-C) )) } 程序运行后的输出结果为_______。

    A.编译出错

    B.9

    C.21

    D.9


    正确答案:B
    解析:本题中先执行(int)fun(a+c,b)函数的调用,值为整型数值15;然后再执行fun(15,(a-c))函数调用,值为单精度实型数值9.000000。输出为%3.of,即有效数长度为3,没有小数位数,所以最后结果为9。

  • 第15题:

    现有如下程序段

    #include "stdio.h"

    int *fun(int *a,int *b)

    {int c;

    c=*a%*b;

    return &c;}

    main()

    {int a=5,b=19,*c;

    c=fun(&a,&b);

    printf("%d\n",++*c);}

    则程序段执行后的结果为

    A.8

    B.7

    C.6

    D.5


    正确答案:C

  • 第16题:

    1.class SuperFo{   2. SuperFo doStuff(int x){   3.return new SuperFo()   4.}   5.}  6.   7.class Foo extends SuperFo{   8.//insert code here   9.}   和四个声明:   Foo doStuff(int x){return new Foo();}   Foo doStuff(int x){return new SuperFoo();}   SuperFoo doStuff(int x){return new foo();}   SuperFoo doStuff(int y){return new SuperFoo();}   分别插入到第8行,有几个可以通过编译 ()

    • A、1
    • B、2
    • C、3
    • D、4
    • E、5

    正确答案:C

  • 第17题:

    现有如下五个声明: Linel: int a_really_really_really_long_variable_name=5 Line2: int _hi=6; Line3: int big=Integer. getlnteger("7”); Line4:int $dollars=8; line5: int %opercent=9; 哪行无法通过编译?()

    • A、Line1
    • B、Line3
    • C、Line4
    • D、Line5

    正确答案:D

  • 第18题:

    int a_really_really_really_long_variable_name=5;   int _hi=6;   int big=Integer.getInteger(“7”);   int $dollars=8;   int %percent=9;   有几个可以通过编译?()  

    • A、2
    • B、3
    • C、4
    • D、5
    • E、1

    正确答案:C

  • 第19题:

    现有如下五个声明:  Linel: int a_really_really_really_long_variable_name=5 ;     Line2: int  _hi=6;  Line3:  int  big=Integer. getlnteger("7”);      Line4:int $dollars=8;      line5: int %opercent=9;      哪行无法通过编译?()

    • A、Line1
    • B、Line3
    • C、Line4
    • D、Line5

    正确答案:D

  • 第20题:

    单选题
    现有如下五个声明:   int a_really_really_really_long_variable_name = 5;  int _hi =6;   int big = Integer.getInteger("7");   int $dollars = 8;   int %percent = 9;   有几个可以通过编译?()
    A

    1

    B

    2

    C

    3

    D

    4


    正确答案: D
    解析: 暂无解析

  • 第21题:

    单选题
    int[][] myArray3=new int[3][]{newint[3]{5,6,2},new int[5]{6,9,7,8,3},new int[2]{3,2}};myArray3[2][2]的值是()。
    A

    9

    B

    2

    C

    6

    D

    越界


    正确答案: C
    解析: 暂无解析

  • 第22题:

    单选题
    现有如下五个声明: Linel: int a_really_really_really_long_variable_name=5 Line2: int _hi=6; Line3: int big=Integer. getlnteger("7”); Line4:int $dollars=8; line5: int %opercent=9; 哪行无法通过编译?()
    A

    Line1

    B

    Line3

    C

    Line4

    D

    Line5


    正确答案: A
    解析: 暂无解析

  • 第23题:

    单选题
    在下面的函数声明中,存在着语法错误的是()。
    A

    BC(int a, int)

    B

    BC(int, int)

    C

    BC(int, int=5)

    D

    BC(int x=6, int y)


    正确答案: C
    解析: 暂无解析

  • 第24题:

    单选题
    有以下程序#include struct S{ int n; int a[20];};void f(int *a, int n){ int i; for(i=0;i
    A

    1,2,3,6,8,7,5,4,10,9,

    B

    3,4,2,7,9,8,6,5,11,10,

    C

    2,3,1,6,8,7,5,4,10,9,

    D

    2,4,3,9,12,12,11,11,18,9


    正确答案: C
    解析:
    将数组首地址作为实参传递,函数调用可以修改实参数组中元素的值。f函数将数组中前9个元素的值加上对应的下标值。答案选择D选项。