niusouti.com
更多“Sometimes we feel the need ____ out of the city and take things easy. ”相关问题
  • 第1题:

    阅读以下说明和java代码,将应填入(n)处的字句写在对应栏内。

    [说明]

    本程序使用类来管理员工的通讯地址信息。已知程序的输出为:

    输出记录:5

    姓名:王丽华

    街道地址:中华路15号

    市:襄樊市

    省:湖北省

    邮政编码:430070

    [Java代码]

    public class Employee{

    protected String (1);

    protected String street;

    protected String city;

    protected String prov;

    protected String post;

    protected int no;

    public Empbyee(){}

    public Employee(String name,String street,String city,String prov,String post, (2) ){

    this.name=name;

    this.street=street;

    this.city=city;

    this.prov=prov;

    this.post=post;

    this.no=no;

    }

    public static void main(String[]args){

    Employee emp=new Employee(“王华”,“中华路15号”,“武汉市”,“湖北省”,“430070”,1);

    emp.changeName(“王丽华”);

    (3) (“襄樊市”);

    emp.changeNo(5);

    (4);

    }

    void changeName(String name){this.name=name;}

    void changeStreet(String street){this.street=street;}

    void changeCity(String city){this.city=city;}

    void changeProv(String prov){this.prov=prov;}

    void changeNo(int no){(5);}

    void display(){

    System.out.println(“输出记录:”+this.no);

    System.out.Println(“姓名:”+this.name);

    System.out.println(“街道地址:”+this.street);

    System.out.println(“市:”+this.city);

    System.out.println(“省:”+this.prov);

    System.out.println(“邮政编码:”+this.post);

    }

    }


    正确答案:(1) name (2) int no (3) emp.changeCity (4) emp.display() (5)this.no=no
    (1) name (2) int no (3) emp.changeCity (4) emp.display() (5)this.no=no 解析:本程序创建一个employee类,包括姓名、街道地址、市、省、邮政编码和记录号等信息以及若干函数:构造函数employee()初始化每个成员;changname()、……changeno()等用于更改类中各属性的值;display()函数用于打印数据。

  • 第2题:

    关系模式CSZ(CITY,ST,ZIP)其属性组上的函数依赖集为F={(CITY,ST)+ZIP, ZIP→CITY},关系模式CSZ的主属性是

    A.ZIP

    B.CITY,ST,ZIP

    C.CITY,ZIP

    D.ST,ZIP


    正确答案:B
    解析:包含在任何一个候选码中的属性叫做主属性。在这道题中全部属性都是主属性。

  • 第3题:

    关系模式CSZ(CITY,ST,ZIP)其属性组上的函数依赖集为F={(CITY,ST)→ZIP,ZIP→CITY},关系模式CSZ的主属性是

    A.ZIP

    B.CITY,ST,ZIP

    C.CITY,ZIP

    D.ST,ZIP


    正确答案:B
    解析:本题主要考查了对函数依赖和主属性的理解。 包含在任何一个候选码中的属性叫做主属性。在这道题中全部属性都是主属性。

  • 第4题:

    这个c++程序中char city[20]; 的作用是什么 ?

    #include <fstream>

    #include <iostream>

    using namespace std;

    int main()

    {

        fstream inout;

    inout.open("city.txt",ios::out);

    inout<<"Dallas"<<" "<<"tonghua"<<" "<<"长春"<<" " ;

    inout.close();

    inout.open("city.txt",ios::app | ios::out);

    inout<<"罗马"<<" "<<"巴黎"<<" ";

    inout.close();

    char city[20];

    inout.open("city.txt",ios::in);

    while(!inout.eof())

    {inout>>city;

    cout<<city<<" ";

                     } 

                     inout.close();

                     

        system("PAUSE");

        return 0;

    }


     

    定义一个字符型数组city[20],将从文本文件“city.txt”所读取的数据,暂时存在city[20]中,然后通过输出函数cout将数据输出。

     

  • 第5题:

    关系模式CSZ(CITY,ST,ZIP)其属性组上的函数依赖集为F={(CITY,ST)→ZIP, P→CITY},关系模式CSZ的主属性是

    A.ZIP

    B.CITY,ST,ZIP

    C.CITY,ZIP

    D.ST,ZIP


    正确答案:B
    解析:包含在任何一个候选码中的属性叫做主属性。在这道题中全部属性都是主属性。

  • 第6题:

    36. We ___________ keep the new traffic law and learn how to protect ourselves.

    A.may.

    B.should

    C.can

    D.need


    正确答案:B
    36.B【解析】句意:我们应该遵守新的交通法规并学会保护自己。所填词意思为“应该”,表示一种义务和责任,用should。