niusouti.com

when you are steering on a pair of range lights and find the upper light is in line above the lower light ,you should _____.A.continue on the present courseB.come rightC.wait until the lights are no longer in a vertical lineD.come left

题目

when you are steering on a pair of range lights and find the upper light is in line above the lower light ,you should _____.

A.continue on the present course

B.come right

C.wait until the lights are no longer in a vertical line

D.come left


相似考题
更多“when you are steering on a pair of range lights and find the upper light is in line above ”相关问题
  • 第1题:

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

    【说明】

    c++标准模板库中提供了map模板类,该模板类可以表示多个“键一值”对的集合,其中键的作用与普通数组中的索引相当,而值用作待存储和检索的数据。此外,c++模板库还提供了pair模板类,该类可以表示一个“键-值”对。pair对象包含两个属性:first和second,其中first表示“键-值”中的“键”,而Second表示“键-值”中的“值”。map类提供了insert方法和find方法,用于插入和查找信息。应用时,将一个pair。对象插入(insert)到map对象后,根据“键”在map对象中进行查找(find),即可获得一个指向pair对象的迭代器。下面的c++代码中使用了map和pair模板类,将编号为1001、1002、1003的员工信息插入到map对象中,然后输入一个指定的员工编号,通过员工编号来获取员工的基本信息。员工编号为整型编码,员工的基本信息定义为类employee。map对象与员工对象之间的关系及存储结构如图5—1所示。

    【c++代码】

    include

    include

    include

    using namespace std;

    class employee {(1) :

    employee(string name,string phoneNumber,string address){

    this->name=name;

    this->phoneNumber=phoneNumber ;

    this->address=address;

    }

    string name;

    string phoneNumber;

    string address;

    );

    int main()

    {

    mapemployeeMap;

    typedef pair>employeeNo; //从标准输入获得员工编号

    map::const_iterator it;

    it= (5) .find(employeeNo); //根据员工编号查找员工信息

    if(it==employeeMap.end()){

    cout<first<second一>nafae(phoneNumber<second->address<


    正确答案:(1)public (2)temp (3)insert (4)cin (5)employeeMap
    (1)public (2)temp (3)insert (4)cin (5)employeeMap 解析:在c++中,在生成类的对象的时候需要调用类的构造函数,因此employee的构造函数应该是公有函数,在代码中的空(1)处的答案为“public ”;在空(2)所在行通过注释可以看出来在这一行我们需要把char型的数组temp转换成string型的对象,所以空(2)的答案为“temp”;在空(3)所在的代码行我们构造了一个新的员工对象,并将其插入Pair对象中,按照代码注释的意思需要将这个Pair对象添加到employeeMap对象中,在题目前面的说明中已经给出了Map类的使用方法,可以直接通过调用Map类中的insert函数实现这一功能,所以空(3)的答案为“insert”;空(4)处需要从标准输入获得员工编号,c++的标准类库中已经提供了标准输入函数cin,所以这里的答案为“cin”;空(5)处根据注释我们知道是要根据员工编号查找员工信息,这里我们可以直接调用Map类的find函数来实现,因而之前员工编号和员工信息都是通过调用Map类的insert函数存储在Map类的实例employeeMap中,所以空(5)的答案为“employeeMap”。

  • 第2题:

    以下对于字符串的相关操作,正确的输出结果是哪些选项?

    A.>>> 'Life is short, you need Python.'.find('you') 15

    B.>>> seq = [1, 2, 3, 4]; >>> sep = '+'; >>> sep.join(seq) '1+2+3+4'

    C.>>> print('{:5.3f}'.format(math.pi)) 3.1416

    D.>>> print('you' in 'Life is short, you need Python.') True


    >>> 'Life is short, you need Python.'.find('you')15;>>> print('you' in 'Life is short, you need Python.')True

  • 第3题:

    设 str = 'python' ,想把字符串的第一个字母大写,其他字母还是小写,正确的选项是()

    A.print(str[0].upper()+str[1:])

    B.print(str[1].upper()+str[-1:1])

    C.print(str[0].upper()+str[1:-1])

    D.print(str[1].upper()+str[2:])


    A

  • 第4题:

    Why do you want a new job ______you've got such a good one already?

    A. that

    B. where

    C. which

    D. when


    正确答案:D

    17.答案为D。为什么你已经有个好工作,还要找新工作?分析整句结构,从句做状语,只有 D为正确选项。

  • 第5题:

    9、以下对于字符串的相关操作,正确的输出结果是哪些选项?

    A.>>> 'Life is short, you need Python.'.find('you') 15

    B.>>> seq = [1, 2, 3, 4]; >>> sep = '+'; >>> sep.join(seq) '1+2+3+4'

    C.>>> print('{:5.3f}'.format(math.pi)) 3.1416

    D.>>> print('you' in 'Life is short, you need Python.') True


    >>> 'Life is short, you need Python.'.find('you') 15;>>> print('you' in 'Life is short, you need Python.') True

  • 第6题:

    Pair类表示“有序整数对”,考虑该类应具有的必要数据和行为,写出该Pair类的定义。


    long