-
11. public static void main(String[] args) { 12. Object obj = new Object() { 13. public int hashCode() { 14. returns 42; 15. } 16. }; 17. System.out.println(obj.hashCode()); 18. } What is the result? ()
A . 42
B . An exception is thrown at runtime.
C . Compilation fails because of an error on line 12.
D . Compilation fails because of an error on line 16.
E . Compilation fails because of an error on line 17.
-
When may the automatic identification system (AIS) be switched off? ()
A . At anytime as long as it is properly logged
B . At the Master's professional judgment
C . Only when the vessel is at anchor or in port
D . Under no circumstance
-
package test1; public class Test1 { static int x = 42; } package test2; public class Test2 extends test1.Test1 { public static void main(String[] args) { System.out.println(“x = “ + x); } } What is the result?()
A . x = 0
B . x = 42
C . Compilation fails because of an error in line 2 of class Test2.
D . Compilation fails because of an error in line 3 of class Test1.
E . Compilation fails because of an error in line 4 of class Test2.
-
Given: 1.<% int[] nums = {42,420,4200}; 2.request.setAttribute("foo", nums); %> 3.${5 + 3 lt 6} 4.${requestScope[’foo’][0] ne 10 div 0} 5. ${10 div 0} What is the result?()
A . True true
B . False true
C . False true 0
D . True true Infinity
E . False true Infinity
-
Which of the following statements is TRUE regarding automatic identification systems (AIS)? ()
A . AIS is a short-range VHF-FM system that automatically broadcasts a vessel's position,course,speed and other safety related information to all those with similar equipment in the area
B . AIS is a one-way centrally managed system that requires the local VTS to send commands to instruct each vessel to broadcast position,course,speed and other safety related information to all those with similar equipment in the area
C . AIS is a global tracking system that relies upon INMARSAT C service to communicate vessel position,course,speed and other safety related information to all those with similar equipment in the area
D . AIS is a short-range 3 cm X-band radar system that automatically sends a vessel's position,course,speed and other safety related information to all those with similar equipment within the area
-
Which of the following statements is TRUE regarding automatic identification systems (AIS) ? ()
A . AIS may be used to make passing arrangements via ship-to-ship text messaging thus relieving a vessel operator from sounding whistle signals or making contact via radiotelephone
B . AIS may be used to make passing arrangements via ship-to-ship text messaging but a vessel operator is still required to sound whistle signals unless the arrangement is made via radiotelephone
C . AIS cannot be used to make passing arrangements because the system does not have the ability to communicate from ship-to-ship in this manner
D . AIS cannot be used to make passing arrangements because the use of the ship-to-ship text messaging feature in this way is prohibited
-
Which of the following is the correct procedure to update the BIOS on LS42 blades without using the AMM?()
A . Insert the Update eXpress Service Pack Installer (UXSPI) CD, boot the LS42 blade and follow the prompts
B . Boot the blade to the Bootable Media Creator (BoMC) CD and follow the prompts
C . Press F1 when the LS42 system is booting, select Update BIOS, insert the diskette into the diskette drive, and select OK
D . Use the Remote Supervisor Adapter virtual disk
-
Automatic identification systems (AIS) are expected to broadcast all of the following information EXCEPT().
A . Port of origin
B . Name of vessel
C . Course and speed over ground
D . Draft of vessel
-
public class TestString 1 { public static void main(String[] args) { String str = “420”; str += 42; System.out.print(str); } } What is the output?()
A . 42
B . 420
C . 462
D . 42042
E . Compilation fails.
F . An exception is thrown at runtime.
-
The()transmits own ship data cyclically via two defined VHF channels and receives the same data of the other ships and objects that are equipped with AIS systems.
A、AIS
B、ECDIS
C、GPS
D、VDR
-
int i = 0, j = 1; if ((i++ == 1) && (j++ == 2)) { i = 42; } System.out.println(“i = “ + i + “, j = “ + j); What is the result?()
A . i = 1, j = 2
B . i = 1, j = 1
C . i = 42, j = 2
D . i = 42, j = 1
E . Compilation fails.
-
Which method is an appropriate way to determine the cosine of 42 degrees?()
A . Double d = Math.cos(42);
B . Double d = Math.cosine(42);
C . Double d = Math.cos(Math.toRadians(42));
D . Double d = Math.cos(Math.toDegrees(42));
E . Double d = Math.cosine(Math.toRadians(42));
-
Which of the following statements is TRUE regarding automatic identification systems (AIS) ?()
A . AIS cannot be used to make passing arrangements because the system is not capable of this type of ship-to-ship communications
B . AIS cannot be used to make passing arrangements because the ship-to-ship text messaging feature is for emergency use only
C . AIS can be used to make passing arrangements via ship-to-ship text messaging but a vessel operator is not relieved from the requirement to sound whistle signals or make arrangements via bridge-to-bridge radiotelephone
D . AIS can be used to make passing arrangements via ship-to-ship text massaging thus relieving a vessel operator from making such arrangements via bridge-to-bridge radiotelephone or signaling intent to pass via whistle signal
-
Which of the following is defined as static information of AIS?()
A、Navigational status.
B、Safety related messages.
C、MMSI.
D、Route plan.
-
42. Where is the Admiralty chart identification number? _______
-
Also, the device must be able to inform the outside world that it is running low on the chemicals ; once again this might be accomplished by a transponder setup .
-
下面程序的运行结果是( )。# include < stdio. h>mt main( ){ int a[9] = {0,6,12 ,18,42,44,52,67,94};int x=52,i,n=9,m;i= n/2+1;m= n/2;while(m! =0)if(xa[i]){ i=i+m/2+1; m=m/2;}else break;printf(\The index is:%d\n\,t);return 0;}
-
An investment of $42,000 is expected to generate the following annual cash flows:Year 1 $10,000Year 2 $15,000Year 3 $15,000Year 4 $12,000Assume straight-line depreciation is used. Ignore income taxes. What is the payback period?
-
30. Which of the following is defined as static information of AIS?
-
Mr. Anderson is talking to Alice. Watch the video clip and decide whether the following statements are true or false.u02p42.mp3:Mr. Anderson is quite satisfied with Alice’s work./js/editor20150812/dialogs/attachment_new/fileTypeImages/icon_mp3.gif
-
42 Which statement is NOT true of Covent Garden?
A It is crowded with people.
B It is located in London.
C It is filled with stalls.
D It is surrounded by shops, churches, restaurants and cafes.
-
42 Which statement is NOT true of Chris?
A She is the heroine of Sunset Song. B She had a miserable childhood.
C She is the creation of a man. D She married only once.
-
42 The surey was focused on
A the liing conditions of older physicians in the U. S.
B the career plans of older physicians in the U. S.
C the retirement plans of older physicians in the U. S.
D the achieements of older physicians in the U. S.
-
Michael, a 42 y.o. man is admitted to the med-surg floor with a diagnosis of acute pancreatitis. His BP is 136/76, pulse 96, Resps 22 and temp 101. His past history includes hyperlipidemia and alcohol abuse. The doctor prescribes an NG tube. Before inserting the tube, you explain the purpose to patient. Which of the following is a most accurate explanation?
A.“It empties the stomach of fluids and gas.”
B.“It prevents spasms at the sphincter of Oddi.”
C.“It prevents air from forming in the small intestine and large intestin
E.”
D.“It removes bile from the gallbladder.”