单选题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不易区分)。

相关考题:

6The construct cobegin Statement1; Statement2; coend means Statement1 and Statement2 are to be executed in parallel. The only two atomic actions in this construct are loading thevalue of a variable and storing into a variablE.For the program segment x:=0; y:=O; cobegin begin x:=l; y:=y+x; end; begin y:=2; x:=x+3; end coend Which of the following indicate(s) possible values for the variables when the segment finishes execution? Ⅰ.x=1,y=2 Ⅱ.x=1,y=3 Ⅲ.x=4,y=6A.ⅠB.Ⅰ and ⅡC.Ⅰ and ⅢD.Ⅱand Ⅲ

Which statement describes the ROWID data type? () A. Binary data up to 4 gigabytes.B. Character data up to 4 gigabytes.C. Raw binary data of variable length up to 2 gigabytes.D. Binary data stored in an external file, up to 4 gigabytes.E. A hexadecimal string representing the unique address of a row in its table.

Which three features work together, to allow a SQL statement to have different cursors for the samestatement based on different selectivity ranges?() A. Bind Variable PeekingB. SQL Plan BaselinesC. Adaptive Cursor SharingD. Bind variable used in a SQL statementE. Literals in a SQL statement

______ is the address of a variable or a variable in which the address of another variable is stored.A.DirectorB.PointersystemC.ArrayD.Record

VLSM的含义是()。A.Variable Length Subnet MaskingB.Variable Length Shortest MaskingC.Very Long/Shortest MaskingD.Variable Long Subnet Masking

______is the address of.a variable or a variable in which the address of another variable is stored.A.DirectorB.PointerC.ArrayD.Record

Loran-C is which type of navigation system ________.A.Hyperbolic,long-range navigation systemB.Short-range electronicC.Long-range,high frequency navigation systemD.Long-range,with a frequency of 1950 kHz

With respect to program variables, ( ) means assigning a beginning value to a variable.A.setupB.startupC.initializationD.pre-compile

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

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.

A public member vairable called MAX_LENGTH which is int type, the value of the variable remains constant value 100. Use a short statement to define the variable.()   A、 public int MAX_LENGTH=100;B、 final int MAX_LENGTH=100;C、 final public int MAX_LENGTH=100;D、 public final int MAX_LENGTH=100;

Which three features work together, to allow a SQL statement to have different cursors for the samestatement based on different selectivity ranges?()A、Bind Variable PeekingB、SQL Plan BaselinesC、Adaptive Cursor SharingD、Bind variable used in a SQL statementE、Literals in a SQL statement

Write a line of code that declares a variable named layout of type LayoutManager and initializes it with a new object, which when used with a container can lay out components in a rectangular grid of equal-sized rectangles, 3 components wide and 2 components high.()

VLSM的含义是()。A、Variable Length Subnet MaskingB、Variable Length Shortest MaskingC、Very Long/Shortest MaskingD、Variable Long Subnet Masking

Which statement best describes OSPF external LSAs (type 5)?()A、OSPF external LSAs are automatically flooded into all OSPF areas, unlike type 7 LSAs, which require that redistribution be configured.B、External LSAs (type 5) are automatically changed to type 1 LSAs at ASBRs.C、Type 5 LSAs are route summaries describing routes to networks outside the OSPF Autonomous System.D、External network LSAs (type 5) redistributed from other routing protocols into OSPF are not permitted to flood into a stub area.

VLSM的含义是()A、Variable Length Subnet MaskingB、Variable Length Shortest MaskingC、Very Long/Shortest MaskingD、Variable Long Subnet MaskingE、Variable Length Short Measurement

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 WebLogic optimization allows one non-XA resource to participate in a distributed transaction?()A、enabling Pinned to ThreadB、enabling Logging Last ResourceC、increasing the Statement cache sizeD、setting the statement cache type to LRUE、setting the initial and maximum capacity to the same number

Which statement is true about the log-output variable?()A、It is a static variable and can be set only at MySQL server startupB、It enables and starts the General Query LogC、It sets the target location for the binary logs generated by the MySQL severD、It specifies output destinations for the slow and General Query logs

单选题Given: Which statement is true?()A  The cardID and limit variables break polymorphism.B  The code demonstrates polymorphism.C  The ownerName variable breaks encapsulation.D  The setCardInformation method breaks encapsulation.E  The class is fully encapsulated.

单选题A public member vairable called MAX_LENGTH which is int type, the value of the variable remains constant value 100. Use a short statement to define the variable.()A public int MAX_LENGTH=100;B final int MAX_LENGTH=100;C final public int MAX_LENGTH=100;D public final int MAX_LENGTH=100;

单选题Which statement describes the ROWID data type?()ABinary data up to 4 gigabytes.BCharacter data up to 4 gigabytes.CRaw binary data of variable length up to 2 gigabytes.DBinary data stored in an external file, up to 4 gigabytes.EA hexadecimal string representing the unique address of a row in its table.

多选题Which three features work together, to allow a SQL statement to have different cursors for the samestatement based on different selectivity ranges?()ABind Variable PeekingBSQL Plan BaselinesCAdaptive Cursor SharingDBind variable used in a SQL statementELiterals in a SQL statement

多选题The 8859-1 character code for the uppercase letter A is 65. Which of these code fragments declare and initialize a variable of type char with this value?()Achar ch = 65;Bchar ch = ’¥65’;Cchar ch = ’¥0041’;Dchar ch = ’A’;Echar ch = A;

单选题Which statement is true about the log-output variable?()AIt is a static variable and can be set only at MySQL server startupBIt enables and starts the General Query LogCIt sets the target location for the binary logs generated by the MySQL severDIt specifies output destinations for the slow and General Query logs

单选题Which statement best describes OSPF external LSAs (type 5)?()AOSPF external LSAs are automatically flooded into all OSPF areas, unlike type 7 LSAs, which require that redistribution be configured.BExternal LSAs (type 5) are automatically changed to type 1 LSAs at ASBRs.CType 5 LSAs are route summaries describing routes to networks outside the OSPF Autonomous System.DExternal network LSAs (type 5) redistributed from other routing protocols into OSPF are not permitted to flood into a stub area

单选题Which WebLogic optimization allows one non-XA resource to participate in a distributed transaction?()Aenabling Pinned to ThreadBenabling Logging Last ResourceCincreasing the Statement cache sizeDsetting the statement cache type to LRUEsetting the initial and maximum capacity to the same number