Which statement of assigning a long type variable to a hexad

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

参考答案和解析
正确答案: B
解析: 十六进制数以0x开头,long型数以L(大小写均可,一般使用大写,因为小写的l和数字1不易区分)。
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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 Peeking

B. SQL Plan Baselines

C. Adaptive Cursor Sharing

D. Bind variable used in a SQL statement

E. Literals in a SQL statement


参考答案:A, C, E

第2题:

VLSM的含义是()。

A.Variable Length Subnet Masking

B.Variable Length Shortest Masking

C.Very Long/Shortest Masking

D.Variable Long Subnet Masking


正确答案:A

第3题:

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=6

A.Ⅰ

B.Ⅰ and Ⅱ

C.Ⅰ and Ⅲ

D.Ⅱand Ⅲ


正确答案:D

第4题:

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

正确答案:D

第5题:

Loran-C is which type of navigation system ________.

A.Hyperbolic,long-range navigation system

B.Short-range electronic

C.Long-range,high frequency navigation system

D.Long-range,with a frequency of 1950 kHz


正确答案:A

第6题:

______ is the address of a variable or a variable in which the address of another variable is stored.

A.Director

B.Pointersystem

C.Array

D.Record


正确答案:B
解析:译文的含义是:()是一个变量的地址或存储了其他变量地址的变量。A、B、C、D各选项的意思分别是:控制器、指针、数组、记录。很明显,题目描述的是指针,所以应该选择B。

第7题:

______is the address of.a variable or a variable in which the address of another variable is stored.

A.Director

B.Pointer

C.Array

D.Record


正确答案:B
解析:指针是一个变量的地址或者是存储了另一个变量地址的变量。

第8题:

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.


参考答案:E

第9题:

With respect to program variables, ( ) means assigning a beginning value to a variable.

A.setup
B.startup
C.initialization
D.pre-compile

答案:C
解析:
对程序变量来说,初始化意味着给变量赋初值。

第10题:

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.

正确答案:D

更多相关问题