-->
当前位置:首页 > 题库

题库 第6368页

  • 最新
  • 浏览
  • 评论

单选题:We can tell that there must be a lot of redundant calculations d

Luz5年前 (2021-05-10)1761
We can tell that there must be a lot of redundant calculations during the exhaustive search for the matrix multiplicatio…

单选题:Why doesn't Floyd algorithm work if there are negative-cost cycl

Luz5年前 (2021-05-10)1140
Why doesn't Floyd algorithm work if there are negative-cost cycles?A.Because Floyd didn't like negative numbers.B.Becaus…

单选题:如下程序段的输出结果是( )。

Luz5年前 (2021-05-10)1112
如下程序段的输出结果是( )。```def fun(): x = 20 print(x, end=' ')x = 10fun()print(x)```A.10 20B.20 10C.10 10D.20 20答案:B…

单选题:如下程序段的输出结果是( )。

Luz5年前 (2021-05-10)1802
如下程序段的输出结果是( )。```def fun(x, *y): print(y)fun(10, 20, 30)```A.20B.30C.(20, 30)D.语法错误答案:C…

单选题:下面哪组是全部合法的标识符?

Luz5年前 (2021-05-10)1286
下面哪组是全部合法的标识符?A.```average2youtom&jerry```B.```f(x)a+b_sum```C.```andsub_x_money1```D.```'a'dollar$mycup```答案:C…

单选题:设有定义:

Luz5年前 (2021-05-10)898
设有定义:int x;double y=15.8;执行表达式x=(int)(y/3+0.5)+(int)y%3之后,x的值等于()。A.5B.5.0C.5.3D.5.8答案:A…

单选题:设有定义:

Luz5年前 (2021-05-10)857
设有定义:int a;float b;执行scanf("%2d%f", &a, &b);语句时,若从键盘输入876 543.0则a和b的值分别是( )。A.87和6.0B.876和543.0C.87和543.0D.76和543.0答案…

单选题:设有定义:

Luz5年前 (2021-05-10)1219
设有定义:int x=1,y=3;分别单独计算下列表达式后,( )的计算结果可使x的值不等于6。A.x=y+(int)6.9/2B.x=y+2,x+yC.x=y%2 ? 2 * y : ++yD.x-=-(--y+3)答案:B…

单选题:以下程序段的输出结果是()。

Luz5年前 (2021-05-10)865
以下程序段的输出结果是()。``` int a=5, b=4, c=6, d; printf(”%d“, d=a˃b? a˃c?a:c:b);```A.5B.4C.6D.不确定答案:C…

单选题:if语句的基本形式是:if(表达式)语句,以下关于“表达式”值的叙述中正确的是( )。

Luz5年前 (2021-05-10)1454
if语句的基本形式是:if(表达式)语句,以下关于“表达式”值的叙述中正确的是( )。A) 必须是逻辑值 B)必须是整数值 C) 必须是正数 D)可以是任意合法的数值A. 必须是逻辑值B.必须是整数值C.必须是正数D.可以是任意…