• 2022-05-27 问题

    继续上题,为了程序编写简洁,要给数据框x中的6列重新命名为x1,x2,x3,x4,x5,x6,应该使用的命令是() A: ColNames(x) <- c("x1","x2","x3","x4","x5","x6") B: Names(x) <- c("x1","x2","x3","x4","x5","x6") C: colnames(x) <- c("x1","x2","x3","x4","x5","x6") D: colname(x) <- c("x1","x2","x3","x4","x5","x6")

    继续上题,为了程序编写简洁,要给数据框x中的6列重新命名为x1,x2,x3,x4,x5,x6,应该使用的命令是() A: ColNames(x) <- c("x1","x2","x3","x4","x5","x6") B: Names(x) <- c("x1","x2","x3","x4","x5","x6") C: colnames(x) <- c("x1","x2","x3","x4","x5","x6") D: colname(x) <- c("x1","x2","x3","x4","x5","x6")

  • 2022-06-09 问题

    int x = 3,y = 4;以下哪条输出语句正确? A: Console.WriteLine("x={x},y={y}", x,y); B: Console.WriteLine("x={x},y={y}"); C: Console.WriteLine("x={0},y={1}", x,y); D: Console.WriteLine("x={1},y={2}", x,y);

    int x = 3,y = 4;以下哪条输出语句正确? A: Console.WriteLine("x={x},y={y}", x,y); B: Console.WriteLine("x={x},y={y}"); C: Console.WriteLine("x={0},y={1}", x,y); D: Console.WriteLine("x={1},y={2}", x,y);

  • 2022-07-24 问题

    x=input("x=")x=2*float(x)print(x)输入x=23b输出结果是 A: 46 B: 0 C: 错误 D: 4

    x=input("x=")x=2*float(x)print(x)输入x=23b输出结果是 A: 46 B: 0 C: 错误 D: 4

  • 2022-06-19 问题

    设有定义:double x=2.12;,以下不能完整输出变量x值的语句是( )。 A: printf("x=%5.0f ",x); B: printf("x=%f ",x); C: printf("x=%lf ",x); D: printf("x=%0.5f ",x);

    设有定义:double x=2.12;,以下不能完整输出变量x值的语句是( )。 A: printf("x=%5.0f ",x); B: printf("x=%f ",x); C: printf("x=%lf ",x); D: printf("x=%0.5f ",x);

  • 2022-06-19 问题

    设有定义: double x=2.12;,以下不能完整输出变量x值的语句是( )。 A: printf("x=%5.0f ", x); B: printf("x=%f ",x); C: printf("x=%lf ",x); D: printf("x=%0.5fn"x);

    设有定义: double x=2.12;,以下不能完整输出变量x值的语句是( )。 A: printf("x=%5.0f ", x); B: printf("x=%f ",x); C: printf("x=%lf ",x); D: printf("x=%0.5fn"x);

  • 2022-07-25 问题

    设有定义:long x=-123456L;,则能够正确输出变量x值的语句是 A: printf("x=%d ",x); B: printf("x=%ld ",x); C: printf("x=%8dL ",x); D: printf("x=%LD",x);

    设有定义:long x=-123456L;,则能够正确输出变量x值的语句是 A: printf("x=%d ",x); B: printf("x=%ld ",x); C: printf("x=%8dL ",x); D: printf("x=%LD",x);

  • 2022-06-08 问题

    ( )不是有效的推理。 A: 前提:("x)(~P(x)ÞQ(x)), ("x)~Q(x)结论:P(a) B: 前提:("x)(P(x)ÞQ) 结论:("x)P(x)ÞQ C: 前提:("x)(P(x)∨Q(x)), ("x)(Q(x)Þ~R(x)) 结论:($x)(R(x)ÞP(x)) D: 前提:("x)(P(x)Þ(Q(x)∧R(x))), ($x)(P(x)∧S(x))结论:("x)(R(x)∧S(x)) E: 前提:("x)($y)P(x, y)结论:("x)($y)($z)(P(x, y)∧P(y, z)) F: 前提:("x)P(x)∨("x)Q(x)结论:("x)(P(x)∨Q(x)) G: 前提:("x)(G(x)ÞH(x)),~($x)(F(x)∧H(x))结论:($x)F(x)Þ($x)G(x) H: 前提:("x)(H(x)ÞM(x))结论:("x)("y)(H(y)∧N(x, y)) Þ ($y)(M(y)∧N(a, y) )

    ( )不是有效的推理。 A: 前提:("x)(~P(x)ÞQ(x)), ("x)~Q(x)结论:P(a) B: 前提:("x)(P(x)ÞQ) 结论:("x)P(x)ÞQ C: 前提:("x)(P(x)∨Q(x)), ("x)(Q(x)Þ~R(x)) 结论:($x)(R(x)ÞP(x)) D: 前提:("x)(P(x)Þ(Q(x)∧R(x))), ($x)(P(x)∧S(x))结论:("x)(R(x)∧S(x)) E: 前提:("x)($y)P(x, y)结论:("x)($y)($z)(P(x, y)∧P(y, z)) F: 前提:("x)P(x)∨("x)Q(x)结论:("x)(P(x)∨Q(x)) G: 前提:("x)(G(x)ÞH(x)),~($x)(F(x)∧H(x))结论:($x)F(x)Þ($x)G(x) H: 前提:("x)(H(x)ÞM(x))结论:("x)("y)(H(y)∧N(x, y)) Þ ($y)(M(y)∧N(a, y) )

  • 2021-04-14 问题

    若有int x=50;,则下列语句( ) 会输出“50%”。? printf("%d%%");|printf("%d%%",x);|printf("%%d",x);|printf("%d%",x);

    若有int x=50;,则下列语句( ) 会输出“50%”。? printf("%d%%");|printf("%d%%",x);|printf("%%d",x);|printf("%d%",x);

  • 2022-06-08 问题

    请阅读下面的程序public class Example {public static void main(String[] args) {int x = 1;do {x++;} while (x <= 4);System.out.println("x = " + x);}}程序的运行结果是( ) A: x=3 B: x=5 C: x=6 D: x=4

    请阅读下面的程序public class Example {public static void main(String[] args) {int x = 1;do {x++;} while (x <= 4);System.out.println("x = " + x);}}程序的运行结果是( ) A: x=3 B: x=5 C: x=6 D: x=4

  • 2022-07-01 问题

    a为非零时显示x,为零时显示y。能完成该功能的语句是 ( ) 。 A: if(a) printf("%d ",x); else printf("%d ",y); B: if(!a) printf("%d ",y); else printf("%d ",x); C: if (a!=0) printf("%d ",x); else printf("%d ",y); D: if(a==0) printf("%d ",y); else printf("%d ",x); E: if(a) printf("%d ",x); else; printf("%d ",y);

    a为非零时显示x,为零时显示y。能完成该功能的语句是 ( ) 。 A: if(a) printf("%d ",x); else printf("%d ",y); B: if(!a) printf("%d ",y); else printf("%d ",x); C: if (a!=0) printf("%d ",x); else printf("%d ",y); D: if(a==0) printf("%d ",y); else printf("%d ",x); E: if(a) printf("%d ",x); else; printf("%d ",y);

  • 1 2 3 4 5 6 7 8 9 10