更多“如果有定义LOCAL data,data的初值是(  )。”相关问题
  • 第1题:

    ( 12 )有如下类定义和变量定义:

    class A{

    publie:

    A () {data=0;}

    ~A () {}

    int GetData ( ) coast { return data;}

    void SetData ( int n ) {data=n;}

    private:

    int data;

    };

    ccnst A a;

    A b;

    下列函数调用中错误的是

    A ) a .GetData ( ) ;

    B ) a .SetData ( 10 ) ;

    C ) b .GetData ( ) ;

    D ) b .SetData ( 10 ) ;


    正确答案:B

  • 第2题:

    如果有定 LOCAL data, data 的初值是:

    A) 整数 0

    B) 不定值

    C) 逻辑真

    D) 逻辑假


    正确答案:D

  • 第3题:

    下列标识符定义正确的是( )。

    A.3DATA

    B.DATA_3

    C.DATA3

    D.DATA3


    正确答案:B

  • 第4题:

    有如下类定义和变量定义:

    class A{

    public:

    A(){data=O; }

    一A(){}

    int GetData()const{ retum data; }

    void SetData(int n) {data=n; }

    private:

    int data;

    };

    const A a;

    A b;

    下列函数调用中错误的是

    A.a.GetData();

    B.a.SetData(10);

    C.b.GetData();

    D.b.SetData(10);


    正确答案:B
    解析:常量是指在程序执行过程中值不改变的量。因为a是常量类型,而a的SetData成员函数会造成a的值被改变,所以B)项调用错误

  • 第5题:

    设有定义:

    则以下赋值语句中错误的是( )。

    A.data2=(2,6);

    B.data2=datal;

    C.data;real=datal.real;

    D.data2.real=datal.unreal;


    正确答案:A
    A)选项中可以在声明变量的同事为data2赋值,但是dala2=(2,6);应写作data2={2,61。所以选择A。

  • 第6题:

    设有定义:

    struct complex

    { int real,unreal;} datal={1,8},data2;

    则以下赋值语句中错误的是

    A.Data2=Data1;

    B.Data2=(2,6);

    C.Data2.Rea1=Data1.Real;

    D.Data2.Real=Datal.unRea


    正确答案:B
    解析:选项B需要强制转换数据类型,应该为(struct complex){2,6};。

  • 第7题:

    设有如下定义:

    struct sk

    { int m;

    floatx;

    }data,*q;

    若要使q指向data中的m域,正确的赋值语句是( )。

    A)q=&data.m;

    B)*q=data.m;

    C)q=(struct sk*)&data.m;

    D)q=(struct sk*)data.m;


    正确答案:C

  • 第8题:

    Regarding disk scrub, which two of these occur to the data on any local drives upon disassociation? ()

    • A、 If disk scrub is enabled, all BIOS settings for the server are erased.
    • B、 If disk scrub is enabled, all the data access on any local drives is destroyed.
    • C、 If disk scrub is enabled, the LSI active RAID is destroyed but data is still preserved.
    • D、 If disk scrub is disabled, all data on any local drives is preserved, including the local storage configuration.
    • E、 If disk scrub is enabled, all data on any local drives is preserved, including the local storage configuration.

    正确答案:B,D

  • 第9题:

    设已定义浮点型变量data,以二进制代码方式把data的值写入输出文件流对象outfile中,正确的语句是()

    • A、outfile.write((double*)&data,sizeof(double));
    • B、outfile.write((double*)&data,data);
    • C、outfile.write((char*)&data,sizeof(double));
    • D、outfile.write((char*)&data,data);

    正确答案:C

  • 第10题:

    A Company.com developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in a thread-safe manner.  Which two can support this design goal?()

    • A、 Store the data in a local variable.
    • B、 Store the data in an instance variable.
    • C、 Store the data in the HttpSession object.
    • D、 Store the data in the ServletContext object.
    • E、 Store the data in the ServletRequest object.

    正确答案:A,E

  • 第11题:

    单选题
    What is the objective of the aaa authentication login console-in local command?()
    A

    It specifies the login authentication method list named console-in using the local user database on the router

    B

    It specifies the login authorization method list named console-in using the local RADIUS username-password data base

    C

    It specifies the login authentication list named console-in using the local username- password data base on the router

    D

    It specifies the login authorization method list named console-in using the local username- password data base on the router


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

  • 第12题:

    多选题
    Regarding disk scrub, which two of these occur to the data on any local drives upon disassociation? ()
    A

    If disk scrub is enabled, all BIOS settings for the server are erased.

    B

    If disk scrub is enabled, all the data access on any local drives is destroyed.

    C

    If disk scrub is enabled, the LSI active RAID is destroyed but data is still preserved.

    D

    If disk scrub is disabled, all data on any local drives is preserved, including the local storage configuration.

    E

    If disk scrub is enabled, all data on any local drives is preserved, including the local storage configuration.


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

  • 第13题:

    ( 10 )类 Sample 的构造函数将形参 data 赋值给数据成员 data 。请将类定义补充完整。

    class Sample{

    public:

    Sample(int data=0);

    Private:

    Int data;

    };

    Sample::Sample(int data){

    【 10 】

    }


    正确答案:

  • 第14题:

    设有如下定义:

    struck sk

    { int a;

    float b;

    } data;

    int *p;

    若要使P指向data中的a域,正确的赋值语句是

    A.p=&a;

    B.p=data.a;

    C.p=&data.a;

    D.*p=data.a;


    正确答案:C

  • 第15题:

    设有下列定义:

    struct sk

    { int m;

    float x;

    }data,*q;

    若要使q指向data中的m域,正确的赋值语句是( )。

    A.q=&data.m;

    B.*q=data.m;

    C.q=(struct sk*)&data.m;

    D.q=(struct sk*)data.m;


    正确答案:C
    解析:利用强制类型转换(street sk*),把整数型地址&data.m转换成结构体变量指针赋给结构体指针变量q。

  • 第16题:

    设有定义: Struct complex {int real,unreal;}data1={1,8},data2; 则以下赋值语句中错误的是( )。

    A.data2={data1.rea1,data1.unrea1};

    B.data2=(2,6);

    C.data2.rea1=data1->rea1;

    D.data2->rea1=data1.unrea1;


    正确答案:B

  • 第17题:

    设有以下定义: struck sk { int a; float b; }data; int *p; 若要使p指向data中的a域,正确的赋值语句是( )。

    A.p=&a;

    B.p=data.a;

    C.p=&data.a;

    D.*p=data.a;


    正确答案:C
    解析:p定义为指针变量。选项A中对结构体分量a的引用错误,应为data.a。选项B中data.a是取分量的值,它是一个整型数据,而p的值应为地址,所以不能将data.a赋值给p。&为取地址符,取分量data.a的地址赋值给p,是正确的赋值语句。*是间接访问运算符,选项D中的浯句是将分量data.a的值赋值给p所指存储单元,*p相当于一个变量,而不能实现使p指向data中的a域。

  • 第18题:

    在PL/SQL中预定义了所要查询的数据没有找到例外,它是()

    A.NO DATA FOUND

    B.DATA_NOT_FOUND

    C.NO_DATA_FOUND

    D.DATA_NO_FOUND


    参考答案:C

  • 第19题:

    若有如下定义:  struct sk{      int a;  int b;  }data,*p=&data;  则对data中的成员x的正确引用的是()。 

    • A、(*p).a
    • B、(*p).data.a
    • C、p->data.a
    • D、p.data.a

    正确答案:A

  • 第20题:

    What is the objective of the aaa authentication login console-in local command?()

    • A、It specifies the login authentication method list named console-in using the local user database on the router
    • B、It specifies the login authorization method list named console-in using the local RADIUS username-password data base
    • C、It specifies the login authentication list named console-in using the local username- password data base on the router
    • D、It specifies the login authorization method list named console-in using the local username- password data base on the router

    正确答案:A

  • 第21题:

    设有如下定义,structsk{inta;floatb;}data,*p=&data;则对data中的a成员的正确引用是()。

    • A、(*p).data.a
    • B、(*p).a
    • C、p->data.a
    • D、p.data.a

    正确答案:B

  • 第22题:

    单选题
    若有如下定义:  struct sk{      int a;  int b;  }data,*p=&data;  则对data中的成员x的正确引用的是()。
    A

    (*p).a

    B

    (*p).data.a

    C

    p->data.a

    D

    p.data.a


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

  • 第23题:

    多选题
    A Company.com developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in a thread-safe manner.  Which two can support this design goal?()
    A

    Store the data in a local variable.

    B

    Store the data in an instance variable.

    C

    Store the data in the HttpSession object.

    D

    Store the data in the ServletContext object.

    E

    Store the data in the ServletRequest object.


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

  • 第24题:

    多选题
    A developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in athread-safe manner. Which two can support this design goal?()
    A

    Store the data in a local variable.

    B

    Store the data in an instance variable.

    C

    Store the data in the HttpSession object.

    D

    Store the data in the ServletContext object.

    E

    Store the data in the ServletRequest object.


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