Throw a ()to the person overboard and help him come on board.A、lifeboatB、life-raftC、lifebuoyD、fire mask
Throw a ()to the person overboard and help him come on board.
- A、lifeboat
- B、life-raft
- C、lifebuoy
- D、fire mask
相关考题:
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 foodB、person who is on dietC、person who can eat a lotD、person who can cook
下列程序中需要清理动态分配的数组,划线处应有的语句是_______。 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( );______}
给出下列的不完整的方法,则下列的哪个声明可以被加入①行完成此方法的声明? ① ② { success = connect( ); ③ if (success = = - 1 ) { ④ throw new TimedoutException( ) ⑤ } ⑥ }A.public void method( )B.public void method( ) throws ExceptionC.public void method( ) throw TimedoutExceptionD.public throw TimedOutException void method( )
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 immediatelyB.throw lifebuoys overboardC.call out “ man overboard ” and keep your eyes on the person in the waterD.try to find medicine for the person to use when he is rescued
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.
程序读入用户输入的一个值,要求创建一个自定义的异常,如果输入值大于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!");
public class Person { private name; public Person(String name) { this.name = name; } public boolean equals(Object o) { if( !o instanceof Person ) return false; Person p = (Person) o; return p.name.equals(this.name); } } Which is true?() A、 Compilation fails because the hashCode method is not overridden.B、 A HashSet could contain multiple Person objects with the same name.C、 All Person objects will have the same hash code because the hashCode method is not overridden.D、 If a HashSet contains more than one Person object with name=”Fred”, then removing another person, also with name=”Fred”, will remove them all.
假设有自定义异常类ServiceException,那么抛出该异常的语句正确的是哪项?() A、 raise ServiceExceptionB、 throw new ServiceException()C、 throw ServiceExceptionD、 throws ServiceException
单选题程序读入用户输入的一个值,要求创建一个异常,如果输入值大于10,使用throw语句显示地引发异常,异常输出的信息为“something‟s wrong!”,语句为()Aif(i10) throw Exception (“something‟s wrong!”);Bif(i10) throw Exception e (“something‟s wrong!”);Cif(i10) throw new Exception (“something‟s wrong!”);Dif(i10) throw new Exception e (“something‟s wrong!”);
单选题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.
多选题在J2EE中,使用()选项中的代码,可以生成如下XML文档: Tony BlairAElement people = doc.createElement(PEOPLE); Element person = doc.createElement(PERSON); Element name = doc.createElement(NAME); name.appendChild(doc.createTextNode(Tony Blair)); people.appendChild(person); person.appendChild(name); doc.appendChild(people);BElement people = doc.createElement(PEOPLE); Element person = doc.createElement(PERSON); people.appendChild(person); Element name = doc.createElement(NAME); name.appendChild(doc.createTextNode(Tony Blair)); person.appendChild(name); doc.appendChild(people);CElement people = doc.createElement(PEOPLE); Element person = doc.createElement(PERSON); people.appendChild(person); Element name = doc.createElement(NAME); name.appendText(doc.createTextNode(Tony Blair)); person.appendChild(name); doc.appendChild(people);DElement people = doc.createElement(PEOPLE); Element person = doc.createElement(PERSON);Element name = doc.createElement(NAME); name.createTextNode(Tony Blair); people.appendChild(person); person.appendChild(name); doc.appendChild(people);
单选题假设有自定义异常类ServiceException,那么抛出该异常的语句正确的是哪项?()A raise ServiceExceptionB throw new ServiceException()C throw ServiceExceptionD throws ServiceException
单选题You are developing a Windows Communication Foundation (WCF) service that contains the following service contract.[ServiceContract( )]public interface IPaymentService{ [OperationContract( )] void RecordPayments(Person person);}public class Person{ ... }public class Employee : Person{ ... }public class Customer : Person{ ... }You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object. What should you do?()AAdd the following KnownType attribute to the Employee class and to the Customer class. [KnownType(GetType(Person))]BImplement the IExtensibleDataObject interface in the Person class.CImplement the IExtension(ofType(T)) interface in the Person class.DAdd the following KnownType attributes to the Person class. [KnownType(GetType(Employee))] [KnownType(GetType(Customer))]
单选题On a vessel,if someone fell overboard and you did not know over which side the person fell,you should().Aimmediately reverse the enginesBstop the propellers from turning and throw a ring buoy over the sideCincrease speed to full to get the vessel away from the personDfirst put the rudder hard over in either direction
单选题To launch a liferaft by hand you should().Acut the casing bands,throw the liferaft over the side,and it will then inflateBdetach the operating cord,throw the raft over the side,and it will then inflateCcut the casing bands,throw the raft over the side,and pull the operating cordDthrow the liferaft over the side and pull the operating cord
单选题According to the context we can guess that a genius is _____ while an idiot is _____.Aa normal person . . . a funny personBa strong person . . . a weak personCa highly intelligent person . . . a foolish or weak-minded personDa famous person . . . an ordinary person
单选题Throw a ()to the person overboard and help him come on board.AlifeboatBlife-raftClifebuoyDfire mask
单选题What kind of person does the grandfather think is the noblest?AA person who has pity on others.BA person who has a large heart.CA person who is brave to save people.DA person who is cheerful to finish a task.
单选题—I must have eaten something wrong. I feel like ______. —I told you not to eat at a restaurant. You’d better ______ at home.Ato throw up ... to eatBthrowing up ... eatingCto throw up ... eatDthrowing up ... eat