单选题Which of the following assignment is not correct?()A float f = 11.1;B double d = 5.3E12;C double d = 3.14159;D double d = 3.14;.

单选题
Which of the following assignment is not correct?()
A

 float f = 11.1;

B

 double d = 5.3E12;

C

 double d = 3.14159;

D

 double d = 3.14;.


参考解析

解析: 浮点数的赋值是带有小数点的数字缺省是double型的,如果在浮点数后面加f或者F则是float,后面加d或者D则是double,科学计数法形式的浮点数也是double型的,而double的精度比float高,将一个高精度的double赋值给一个低精度的float时需要进行强制类型转换,反之则不需要。

相关考题:

Which of the following is not correct? ()AIt is useless to complain.BIt is useless complaining.CComplaining is useless.DIt is useless of complaining.

Which of the following assignment is not correct?()         A、 float f = 11.1;B、 double d = 5.3E12;C、 double d = 3.14159;D、 double d = 3.14;.

An administrator is adding memory to a server. Once the system boots up, the same amount of memory appears as before the upgrade. Which of the following is the MOST likely cause?()A、The memory is not the correct CAS latency.B、The memory is not installed in the correct slot.C、The memory does not have the correct timing.D、The memory is not the correct speed.

Which of the following is the correct term for a virtual machine?()A、 HypervisorB、 Guest OSC、 Virtual CenterD、 Host OS

An administrator has a rack server that is 5.25 inches (13.3 cm) tall, which of the following is the correct U size for this server?()A、 OneB、 ThreeC、 FourD、 Five

An administrator has a rack server that is 3.5 inches (8.9 cm) tall. Which of the following is the correct U size for this server?()A、OneB、TwoC、ThreeD、Five

A user reports that they are unable to print to a remote printer. Which of the following should the technician check FIRST?()A、Printer driverB、Protocol stackC、Network connectivityD、Correct patch application

An administrator runs clstat on a cluster node and receives the following response: ’Can not get  Cluster Information.’ Which of the following daemons may need to be started in order to correct this problem?()A、 topsvcsB、 clinfoESC、 snmpinfoD、 clsmuxpdES

A system administrator decides to review the system error log after installing new hardware. Which of the following is the correct command to use?()A、errptB、syslogC、prtdiagD、errlogger

单选题Which of the following is the correct term for a virtual machine?()A HypervisorB Guest OSC Virtual CenterD Host OS

单选题An administrator runs clstat on a cluster node and receives the following response: ’Can not get  Cluster Information.’ Which of the following daemons may need to be started in order to correct this problem?()A topsvcsB clinfoESC snmpinfoD clsmuxpdES

单选题Which of the following assignment is not correct?()A float f = 11.1;B double d = 5.3E12;C double d = 3.14159;D double d = 3.14;.

单选题I saw a ship stop at a(). Which of the following is not correct?AdeckBharbourCpierDport

单选题An administrator is adding memory to a server. Once the system boots up, the same amount of memory appears as before the upgrade. Which of the following is the MOST likely cause?()A The memory is not the correct CAS latency.B The memory is not installed in the correct slot.C The memory does not have the correct timing.D The memory is not the correct speed.

单选题A technician needs to upgrade the memory in a laptop. Which of the following memory typeswould be the correct type?()ARIMMBDDR RAMCSDRAMDSODIMM

单选题Which of the following statements is correct concerning the “flash point ” of a liquid?()AIt is lower than the ignition temperatureBIt is the temperature at which a substance will spontaneously igniteCIt is the temperature at which a substance, when ignited, will continue to bumDIt is the temperature at which the released vapors will fall within the explosive range

单选题I think they are() Which of the following is not correct?ABritonBBritishCEnglishDEnglishmen