单选题Which statement of assigning a long type variable to a hexadecimal value is correct?()A long number = 345L;B long number = 0345;C long number = 0345L;D long number = 0x345L;

单选题
Which statement of assigning a long type variable to a hexadecimal value is correct?()
A

 long number = 345L;

B

 long number = 0345;

C

 long number = 0345L;

D

 long number = 0x345L;


参考解析

解析: 十六进制数以0x开头,long型数以L(大小写均可,一般使用大写,因为小写的l和数字1不易区分)。

相关考题:

Which of the following facts is the last?A. Piano Man was released.B. Billy Joel played in a number of Long Island groups.C. Cold Spring Harbor was released.D. Billy Joel was named "Best New Male Vocalist".

As research techniques become more______(advance),the number of animals used in experiments may decrease,but stopping testing on animals altogether is a long way away.

下列( )是将一个十六进制值赋值给一个long型变量。A.long number=123L;B.long number=0123;C.long number=0123L;D.long number=0x123L;

阅读下面求质数的程序 import java. lang. Math. * ; public class MorePrimesTest{ public static void main(String[]args){ long[]primes=new long[20]; primes[0]2L; primes[1]3L; long number=5L; outer: for(int count=2; count<primes. length; number+ =2L){ long limit=(long)Math. ceil(Math. sqrt((double)number)); for(int i=1; i<count primes[i]<limit; i+ +){ if(number______primes[i]==0L){ cotinue outer; } } for(int j=0; j<primes. length; j ++){ long n=primes[j]; System. out. println(n); } } } 在程序下画线处填入的正确选项是A.B.*C./D.%

下列哪个选项是将一个十六进制值赋值给一个long型变量? ( )A.long number=123L;B.long number=0123;C.long number=0123L;D.long number=0x123L;

Which of the following are all valid DB2 data types?() A.LONG VARCHAR, SMALLINT, NUMBER, BLOBB.DECIMAL, DATE, DBCLOB, INTERVALC.NUMERIC, TIMESTAMP, BYTE, FLOATD.NUM, TIME, XML, DOUBLE

阅读下面求质数的程序 import java.lang.Math.*: public class MorePrimesTest { public static void main(String[] args) { long[] primes=new long[20]; primes[0]=2L; primes[0]=3L; long number=5L; outer: for(int count=2;count<primes.length;number+=2L) { long limit=(long)Math.ceil(Math.sqrt((double)number)); for(int i=1;i<countprimes[i]<=limit;i++) { if(number primes[i]==OL)continue outer; } primes[count++]=number; } for(int J=0;j<primes.length;j++) { long n=primes[j]; System.out.println(n); } } } 程序下画线处应填入的正确选项是A.B.*C./D.%

According to the passage, when you get a wrong number in making a long-distance call, you should______.A. check your number and call againB. tell the operator what has happenedC. Ask the operator to put you throughD. Ask the operator what has happened

As the number of local residents' visits to public swimming facilities climbs,__________the demand for lifeguards to supervise them.A.as toB.Aas doesC.as long asD.whereas

Advertising has long been viewed as a method of mass ______ in that a single message can reach a large number of people.A.promotionB.permissionC.fantasyD.popularity

The number of the disabled Americans went up for so long that the trend of falling out of the labor force seemed like it might be______。A.adequateB.concreteC.practicalD.permanent

The TTL field was originally designed to hold a time stamp, which was decremented by each visited router. The datagram was ( ) when the value became zero. However, for this scheme, all the machines must have synchronized clocks and must know how long it takes for a datagram to go from one machine to another. Today, this field is used mostly to control the ( ) number of hops (routers) visited by the datagram. When a source host sends the datagram, it (请作答此空) a number in this field. Each router that processes the datagram decrements this number by 1. If this value, after being decremented, is zero, the router discards the datagram.This field is needed because routing tables in the Internet can become corrupted.A datagram may travel between two or more routers for a long time without ever getting delivered to the ( ).This field limits the ( ) of a datagram.A.controlsB.transmitsC.storesD.receives

The TTL field was originally designed to hold a time stamp, which was decremented by each visited router. The datagram was ( ) when the value became zero. However, for this scheme, all the machines must have synchronized clocks and must know how long it takes for a datagram to go from one machine to another. Today, this field is used mostly to control the ( ) number of hops (routers) visited by the datagram. When a source host sends the datagram, it ( ) a number in this field. Each router that processes the datagram decrements this number by 1. If this value, after being decremented, is zero, the router discards the datagram.This field is needed because routing tables in the Internet can become corrupted.A datagram may travel between two or more routers for a long time without ever getting delivered to the (请作答此空).This field limits the ( ) of a datagram.A.switchB.routerC.source hostD.destination host

Which statement is true?()A、An IPv6 address is 64 b long and is represented as hexadecimal characters.B、An IPv6 address is 32 b long and is represented as decimal digits.C、An IPv6 address is 128 b long and is represented as decimal digits.D、An IPv6 address is 128 b long and is represented as hexadecimal characters

You need to store a Java long primitive attribute, called customerOID, into the session scope. Which two code snippets allow you to insert this value into the session?()A、long customerOID = 47L;session.setAttribute("customerOID", new Long(customerOID));B、long customerOID = 47L;session.setLongAttribute("customerOID", new Long(customerOID));C、long customerOID = 47L;session.setAttribute("customerOID", customerOID);D、long customerOID = 47L;session.setNumericAttribute("customerOID", new Long(customerOID));

Which statement is true?()A、An IPv6 address is 64 b long and is represented as hexadecimal characters.B、An IPv6 address is 32 b long and is represented as decimal digits.C、An IPv6 address is 128 b long and is represented as decimal digits.D、An IPv6 address is 128 b long and is represented as hexadecimal characters.

How long will a port remain in the listening state by default?()A、Depends on the number of switches in the spanning tree domainB、50 secondsC、15 secondsD、Until the root directs it to start forwardingE、20 secondsF、Depends on the pott speed

哪个是将一个十六进制值赋值给一个long型变量?()A、long number=345LB、long number=0345C、long number=0345LD、long number=0x345L

Which statement is true about vishing?()A、Influencing users to forward a call to a toll number (for example, a long distance or international number)B、Influencing users to provide personal information over a web pageC、Using an inside facilitator to intentionally forward a call to a toll number (for example, a long distance orinternational number)D、Influencing users to provide personal information over the phone

Which of the following are all valid DB2 data types?()A、LONG VARCHAR, SMALLINT, NUMBER, BLOBB、DECIMAL, DATE, DBCLOB, INTERVALC、NUMERIC, TIMESTAMP, BYTE, FLOATD、NUM, TIME, XML, DOUBLE

Which statement of assigning a long type variable to a hexadecimal value is correct?()A、 long number = 345L;B、 long number = 0345;C、 long number = 0345L;D、 long number = 0x345L;

单选题哪个是将一个十六进制值赋值给一个long型变量?()Along number=345LBlong number=0345Clong number=0345LDlong number=0x345L

单选题Which statement is true?()AAn IPv6 address is 64 b long and is represented as hexadecimal characters.BAn IPv6 address is 32 b long and is represented as decimal digits.CAn IPv6 address is 128 b long and is represented as decimal digits.DAn IPv6 address is 128 b long and is represented as hexadecimal characters

单选题Which statement is true about vishing?()AInfluencing users to forward a call to a toll number (for example, a long distance or international number)BInfluencing users to provide personal information over a web pageCUsing an inside facilitator to intentionally forward a call to a toll number (for example, a long distance orinternational number)DInfluencing users to provide personal information over the phone

单选题Which statement is true?()AAn IPv6 address is 64 b long and is represented as hexadecimal characters.BAn IPv6 address is 32 b long and is represented as decimal digits.CAn IPv6 address is 128 b long and is represented as decimal digits.DAn IPv6 address is 128 b long and is represented as hexadecimal characters.

单选题In the US, there is a long waiting list for organs because ______.Athere is a shortage of actual organsBonly a few people become organ donorsCdoctors have set a limit to the number of organ recipientsDtransplant surgery is still experimental

单选题The primary function of the first paragraph of the passage is to _____.Apresent a historical context for the author’s observationsBanticipate challenges to the prescriptions that followCclarify some disputed definitions of economic termsDsummarize a number of long—accepted explanations