Throw a ()to the person overboar

题目

Throw a ()to the person overboard and help him come on board.

  • A、lifeboat
  • B、life-raft
  • C、lifebuoy
  • D、fire mask
参考答案和解析
正确答案:C
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

A gourmet always wants the best food, not the most. The word “gourmet” most probably means: _______.

A、person who is expert in the choice of food

B、person who is on diet

C、person who can eat a lot

D、person who can cook


参考答案:A

第2题:

下列程序中需要清理动态分配的数组,划线处应有的语句是_______。 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; 解析:本题考察对象数组的销毁方法,注意删除对象数组时,[]内不要指定大小。

第3题:

Many people () cigarette ends carelessly.

A. throw to

B. throw to

C. throw at

D. throw away


参考答案:D

第4题:

Which the statement is true?()

  • A、 The Error class is a Runtime Exception.
  • B、 No exceptions are subclasses of Error.
  • C、 Any statement that may throw an Error must be enclosed in a try block.
  • D、 any statement that may throw an Exception must be enclosed in a try block.
  • E、 Any statement that may throw an Runtime Exception must be enclosed in a try block.

正确答案:B

第5题:

If you see anybody fall overboard, act as follows except ______.

A.tell an officer / crew the person’s position in the water, or telephone the bridge immediately

B.throw lifebuoys overboard

C.call out “ man overboard ” and keep your eyes on the person in the water

D.try to find medicine for the person to use when he is rescued


正确答案:D
如果你发现有人落水,下列哪个做法是不对的?找到医疗救助用于他被救助时。

第6题:

Happiness is a feeling which varies from person to person.()


正确答案:对

第7题:

给出下列的不完整的方法,则下列的哪个声明可以被加入①行完成此方法的声明? ① ② { success = connect( ); ③ if (success = = - 1 ) { ④ throw new TimedoutException( ) ⑤ } ⑥ }

A.public void method( )

B.public void method( ) throws Exception

C.public void method( ) throw TimedoutException

D.public throw TimedOutException void method( )


正确答案:B
解析:如果程序在运行的过程中抛出异常,而这个异常又不是Runtime-Exception或者Error,那么程序必须捕获这个异常进行处理或者声明抛出(throWs)该异常,捕获异常可以使用try{…}catch(){...}语句,而抛出异常在方法声明前是声明,在方法的声明后面加上throwsXxxxException,抛弃多个异常时,在各异常间使用逗号“,”分隔,题目中的程序在运行时抛出的不是一个RuntimeExeeption,所有必须捕获或者抛弃,而程序又没有捕获,所有应该在方法声明中声明抛弃。由于Exception是所有异常的父类,所有当然也可以代表RuntimeExccption了。

第8题:

人际传播型(person to person transfer)


正确答案:此类原虫生活史中只需要一种宿主,通过直接、间接接触或经媒介的携带而传播。

第9题:

异常捕获发生在()块中?

  • A、try
  • B、catch
  • C、finally
  • D、throw

正确答案:B

第10题:

程序读入用户输入的一个值,要求创建一个自定义的异常,如果输入值大于10,使用throw语句显式地引发异常,异常输出信息为“something’s wrong!”, 语句为()。     

  • A、if ( i > 10 )   throw Exception(“something’s wrong!”);
  • B、if ( i > 10 )   throw Exception e (“something’s wrong!”);
  • C、if ( i > 10 )   throw new Exception(“something’s wrong!”);
  • D、if ( i > 10 )  throw new Exception e ("something’s wrong!");

正确答案:C

更多相关问题