多选题Which of the following statements are legal?()Along l = 4990;Bint i = 4L;Cfloat f = 1.1;Ddouble d = 34.4;Edouble t = 0.9F;

多选题
Which of the following statements are legal?()
A

long l = 4990;

B

int i = 4L;

C

float f = 1.1;

D

double d = 34.4;

E

double t = 0.9F;


参考解析

解析: 此题的考点是数字的表示法和基本数据类型的类型自动转换,没有小数点的数字被认为是int型数,带有小数点的数被认为是double型的数,其它的使用在数字后面加一个字母表示数据类型,加l或者L是long型,加d或者D是double,加f或者F是float,可以将低精度的数字赋值给高精度的变量,反之则需要进行强制类型转换,例如将int,short,byte赋值给long型时不需要显式的类型转换,反之,将long型数赋值给byte,short,int型时需要强制转换(int a=(int)123L;)。

相关考题:

Which of the following financial statements reports information as of a specific date? () A. income statementB. statement of owner's equityC. statement of cash flowsD. balance sheet

8 Which of the following statements about accounting concepts and conventions are correct?(1) The money measurement concept requires all assets and liabilities to be accounted for at historical cost.(2) The substance over form. convention means that the economic substance of a transaction should be reflected inthe financial statements, not necessarily its legal form.(3) The realisation concept means that profits or gains cannot normally be recognised in the income statement untilrealised.(4) The application of the prudence concept means that assets must be understated and liabilities must be overstatedin preparing financial statements.A 1 and 3B 2 and 3C 2 and 4D 1 and 4.

Which of the following objects contains control structures that are considered the bound form of SQL statements?() A.UDTB.TriggerC.PackageD.Access plan

Which of the following statements is NOT a way of consolidating vocabulary A.Defining.B.Matching.C.Gapfilling.D.Labeling.

Which of the following statements is NOT true?()AAlfred the Great started the English navy.BAlfred the Great reorganized the Saxon any,making it more efficient.CAlfred the Great established schools and formulated a legal System.DAlfred the Great impose a tax,called the Danegeld,on the Saxons.

Which of the following is the MOST important consideration when implementing a data retentio program?()A、 The data destruction requirementsB、 The user awareness training programC、 The laws and legal requirements of the dataD、 The companys individual data retention policies

Which of the following statements is true regarding the VERSIONS BETWEEN clause?()  A、 The VERSIONS BETWEEN clause may be used in DML statements.B、 The VERSIONS BETWEEN clause may be used in DDL statements.C、 The VERSIONS BETWEEN clause may not be used to query past DDL changes to tables.D、 The VERSIONS BETWEEN clause may not be used to query past DML statements to tables.

Several @functions can execute multiple statements. Which one of the following initializes a variable and can increment in during the operation?()A、 @do B、 @for C、 @while D、 @dowhile

A companys legal and regulatory departments have drafted a new policy in which emails must be retained for no longer than three years.  Which of the following locations should an administrator configure when complying with the new policy?()A、 Local workstationsB、 Backup tapesC、 Domain controllersD、 Email serverE、 SMTP gatewayF、 Proxy server

When disposing of data, which of the following should be considered FIRST?()A、Company policy requirementsB、Local legal requirementsC、Storage requirementsD、Disposal requirements

Which of the following statements are legal?()         A、 long l = 4990;B、 int i = 4L;C、 float f = 1.1;D、 double d = 34.4;E、 double t = 0.9F;

Which of the following is the technology that helps organizations to reduce legal risks associated with e-mail?()A、Information Rights ManagementB、JoumalingC、Legal disclaimerD、Messaging Records Management

多选题If p and q are primes greater than 2, which of the following statements must be true? (Indicate all such statements.)Ap + q is evenBpq is oddCp2-q2 is even

多选题Concerning the figure below, if a =b, which of the following statements must be true? (Indicate all such statements.)Ac=dBl and k are parallelCm and l are perpendicular

多选题Which of the following statements are true? (Indicate all such statements.)Aτ(5) =τ(7)Bτ(5) τ(7) =τ(35)Cτ(5) + τ(7) =τ(12)

单选题The passage warns of which of the following dangers?ACompanies in the United States may receive no protection from imports unless they actively seek protection from import competition.BCompanies that seek legal protection from import competition may incur legal costs that far exceed any possible gain.CCompanies that are United States owned but operate internationally may not be eligible for protection from import competition under the laws of the countries in which their plants operate.DCompanies that are not United States owned may seek legal protection from import competition under United States import relief laws.

单选题Which of the following statements is NOT a way of presenting new vocabulary? _____.AdefiningBusing real objectsCwriting a passage by using new wordsDgiving explanations

单选题If there is a conflict in policy for data retention, which of the following should the technician adhere to FIRST?()AIndustry best practicesBCompany policyCInternational standardsDLocal legal requirements

单选题Which of the following is the technology that helps organizations to reduce legal risks associated with e-mail?()AInformation Rights ManagementBJoumalingCLegal disclaimerDMessaging Records Management

单选题Which of the following statements is NOT a way of consolidating vocabulary?ADefining.BMatching.CGap-filling.DLabeling.

单选题For the following statements, which one is the strongest symmetrical encryption algorithm?()AAESB3DESCDESDDiffie-Hellman

多选题A companys legal and regulatory departments have drafted a new policy in which emails must be retained for no longer than three years.  Which of the following locations should an administrator configure when complying with the new policy?()ALocal workstationsBBackup tapesCDomain controllersDEmail serverESMTP gatewayFProxy server

单选题Which of the following statements is NOT true?()AAlfred the Great started the English navy.BAlfred the Great reorganized the Saxon any,making it more efficient.CAlfred the Great established schools and formulated a legal System.DAlfred the Great impose a tax,called the Danegeld,on the Saxons.

单选题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

单选题Which of the following is the MOST important consideration when implementing a data retentio program?()A The data destruction requirementsB The user awareness training programC The laws and legal requirements of the dataD The companys individual data retention policies

单选题Which of the following statements is least likely to cause the ignition of fuel vapors?()AStatic electricityBAn open running electric motorCLoose wiringDExplosion proof lights

单选题Which of the following statements describes the functions of a reservoir used in a hydraulic system?()ADissipate heatBTrap foreign matterCSeparate air from the oilDAll of the above