题库 第6237页
单选题:Dijkstra’s Algorithm cannot be applied on ______________
Dijkstra’s Algorithm cannot be applied on ______________@[B](2)A. Directed and weighted graphsB. Graphs having negative…
单选题:which one is the result of list("abcd")
which one is the result of list("abcd")@[A](2)A. ['a', 'b', 'c', 'd']B. ['ab']C. ['cd']D. ['abcd']A.['a', 'b', 'c', 'd']…
单选题:x=[1,2,3,4], what is the value of x after executing the statemen
x=[1,2,3,4], what is the value of x after executing the statement x.append(5).@[C](2)A. [5,4,3,2,1]B. 5C. [1,2,3,4,5]D.…
单选题:After executed the following code, the value of the variable lst
After executed the following code, the value of the variable lst will change to which option?lst = [1, 2]lst = lst * 3@[…
单选题:Which statement is true?
Which statement is true?@[C](2)A. [3] in [1,2,3]B. 3 in [123]C. '3' in list('123')D. 3 in list('123')A.[3] in [1,2,3]B.3…
单选题:Which option has the same value as s[ : -1 ]
Which option has the same value as s[ : -1 ]@[D](2)A. s[-1]B. s[:len(s)]C. s[:]D. s[0:len(s)-1]A.s[-1]B.s[:len(s)]C.s[:]…
单选题:设有一个10阶的对称矩阵A,采用压缩存储方式,以行序为主存储,a1,1为第一个元素,其存储地址为1,每个元素占1个地址空间,则a
设有一个10阶的对称矩阵A,采用压缩存储方式,以行序为主存储,a1,1为第一个元素,其存储地址为1,每个元素占1个地址空间,则a8,5的地址为( )。@[B](2)A. 13B. 33C. 18D. 40A.13B.3…
单选题:数组A[0 … 4,-1 … -3,5 …7]中含有的元素个数是( )。
数组A[0 … 4,-1 … -3,5 …7]中含有的元素个数是( )。@[B](2)A. 55B. 45C. 36D. 16A.55B.45C.36D.16答案:B…
单选题:设二维数组A[1… m,1… n]按行存储在数组B中,则二维数组元素A[i,j]在一维数组B[1…m*n]中的下标为 (
设二维数组A[1… m,1… n]按行存储在数组B中,则二维数组元素A[i,j]在一维数组B[1…m*n]中的下标为 ( )。@[B](2)A. n*(i-1)+jB. n*(i-1)+j-1C. i*(j-1)D.…
单选题:若声明一个浮点数数组如下: froat average[]=new float[30];假设该数组的内存起始位置为200, av
若声明一个浮点数数组如下: froat average[]=new float[30];假设该数组的内存起始位置为200, average[15]的内存地址是( )。@[C](2)A. 214B. 215C. 260D.…