niusouti.com

A person with Latent TB Infection has symptoms that may include: a bad cough that lasts 3 weeks or longer and pain in the chest. ()此题为判断题(对,错)。

题目
A person with Latent TB Infection has symptoms that may include: a bad cough that lasts 3 weeks or longer and pain in the chest. ()

此题为判断题(对,错)。


相似考题
更多“A person with Latent TB Infection has symptoms that may include: a bad cough that lasts 3 weeks or longer and pain in the chest. () ”相关问题
  • 第1题:

    有以下程序:includeincludeusingnameSpacestd;classperson{ intage; Char*nam

    有以下程序:

    include <iostream>

    include <string>

    using nameSpace std;

    class person

    {

    int age;

    Char * name;

    public:

    person ( int i, Char * str )

    {

    int j;

    j = strlen( str ) + 1;

    name = new char[ j ];

    strcpy( name, str );

    age = i;

    }

    ~person()

    {

    delete name;

    cout<<"D";

    }

    void display()

    {

    cout<<name<<":"<<age;

    }

    };

    int main()

    {

    person demo( 30,"Smith" );

    demo.display();

    return 0;

    }

    则该程序的输出结果为:【 】。


    正确答案:Smith:30 D
    Smith:30 D 解析:本题考核类与对象的操作。主函数中定义类person的对象 demo,并赋初值(30,"smith")。然后调用成员函数display()输出赋值结果,即Smitch:30。程序结束时demo对象的析构函数被调用,再输出“D”。

  • 第2题:

    使用VC6打开考生文件夹下的工程test28_3。此工程包含一个test28_3.cpp,其中定义了类Person,但该类的定义并不完整。请按要求完成下列操作,将程序补充完整。

    (1)定义类Person的私有数据成员forename、surname 和 money,forename 和 surname都是char型的指针数据,money是double型的数据。请在注释“//**1**”之后添加适当的语句。

    (2)完成类Person的带三个参数的构造函数Person(char *f, char *s,double m),分别为forename和surname申请新的空间来存储参数f和s指针指向的内容,注意空间的大小,最后把参数m的值赋给money,请在注释“//**2**”之后添加适当的语句。

    (3)完成类Person的析构函数的定义,把forename和surname指向的空间释放,请在注释“//**3**”之后添加适当的语句。

    (4)完成类Person的成员函数display的定义,使其以格式“forname surname has money”的形式输出内容,请在注释“//**4*。”之后添加适当的语句。

    注意:除在指定位置添加语句之外,请不要改动程序中的其他内容。

    输出结果如下:

    Richard Berk has 1000.56

    源程序文件test28_3.cpp清单如下:

    include <iostream.h>

    include <string.h>

    class Person

    {

    private:

    //** 1 **

    double money;

    public:

    Person(char *f, char *s, double m);

    ~Person();

    void display();

    };

    Person::Person(char *f, char *s, double m)

    {

    //** 2 **

    strcpy(forename, f);

    surname = new char[strlen(s)+1];

    strcpy(surname, s);

    money=m;

    }

    Person: :-Person ()

    {

    //** 3 **

    }

    void Person:: display ( )

    {

    //** 4 **

    }

    void main ( )

    {

    Person p("Richard", "Berk", 1000.56);

    p.display ( );

    }


    正确答案:(1) char *forename; char *surname; (2) forename = new char[strlen(f)+1]; (3) delete []forename; delete []surname; (4) coutforename" "surname"has"moneyend1;
    (1) char *forename; char *surname; (2) forename = new char[strlen(f)+1]; (3) delete []forename; delete []surname; (4) coutforename" "surname"has"moneyend1; 解析:主要考查考生对于类的定义和字符指针的动态空间申请和释放的掌握,具中(2)中new关键字是动态申请空间,里面使用了函数strlen,该函数是返回参数字符串的长度,之所以加一是要加入字符串结尾标志,这一点考生切记。(3)中 delete是释放动态内存的关键字,释放一位数组占用的内存格式是先写[],之后是指针名,括号内不写数组的大小。

  • 第3题:

    3.—__________ 1 go out for a while?

    —No,you __________ You must finish your homework first.

    A. Must,needn't

    B. Can,may

    C. May,mustn't

    D. May,must


    正确答案:C

  • 第4题:

    —_______ I return the book to the library this week?— No, you _______.You can keep it until the end of this month.

    A.Must; needn’t

    B.Can; can’t

    C.May; mustn’t

    D.Can; mustn’t


    答案:A

  • 第5题:

    下列程序中需要清理动态分配的数组,划线处应有的语句是_______。 include class pers

    下列程序中需要清理动态分配的数组,划线处应有的语句是_______。

    include<iostream.h>

    class person

    {

    int age,tall;

    public:

    person( ){age=0;tall=40;cout<<"A baby is born."<<endl;}

    person(int i){age=i;tall=40;cout<<"A old person."<<endl;}

    person(int i,int j){age=i;tall=j;cout<<"a old person with tall."<<endl;)

    ~person( ){cout<<"person dead."<<endl;}

    void show( )

    {

    cout<<"age="<<age<<",tall="<<tall<<endl;

    }

    };

    void main( )

    {

    person*ptr;

    ptr=new person[3];

    ptr[0]=person( );

    ptr[1]=person(18);

    ptr[2]=person(20,120);

    for(int i=0;i<3;i++)

    ptr[i].show( );

    ______

    }


    正确答案:delete[]ptr;
    delete[]ptr; 解析:本题考察对象数组的销毁方法,注意删除对象数组时,[]内不要指定大小。

  • 第6题:

    37. —There's somebody at the door._________ it be Jim?

    —No ,It __________be him. It's just seven o'clock.It’s too early.

    A. May; can't

    B. Will; won't

    C. May; mustn’t

    D Must; may not


    正确答案:A
    37.A【解析】句意:——门口有人,会是吉姆吗?—— 不,可能不是他。刚7点,太早了。由题干可知第一空为。可能是吉姆吗?”,故应该A或C。而C选项中 mustn't不可用于否定句表推测,故选A。