继续上题,为了程序编写简洁,要给数据框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")
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);
设int x=3;,以下与其他3组输出结果不同的一组语句是________。 A: x++; printf("%d ",x); B: n=++x; printf("%d ",n); C: ++x; printf("%d ",x); D: n=x++; printf("%d ",n);
设int x=3;,以下与其他3组输出结果不同的一组语句是________。 A: x++; printf("%d ",x); B: n=++x; printf("%d ",n); C: ++x; printf("%d ",x); D: n=x++; printf("%d ",n);
设有定义: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);
若有以下定义: float x;int a,b; 则正确的switch 语句是( )。 A: switch(x) { case 1.0:printf("* "); case 2.0:printf("** "); } B: switch(x){ case 1,2:printf("* "); case 3:printf("** "); } C: switch (a+b) { case 1:printf(" "); case 1+2:printf("** "); } D: switch (a+b);{ case 1:printf(."* "); case 2:printf("** "); }
若有以下定义: float x;int a,b; 则正确的switch 语句是( )。 A: switch(x) { case 1.0:printf("* "); case 2.0:printf("** "); } B: switch(x){ case 1,2:printf("* "); case 3:printf("** "); } C: switch (a+b) { case 1:printf(" "); case 1+2:printf("** "); } D: switch (a+b);{ case 1:printf(."* "); case 2:printf("** "); }
若有以下定义:float x; int a,b; 则正确的switch语句是 。 A: switch(x) { case 1.0: printf("* "); case 2.0: printf("** "); } B: switch(x) { case 1,2: printf("* "); case 3: printf("** "); } C: switch(a+b) { case 1: printf("* "); case 1+2: printf("** "); } D: switch(a+b); { case 1: printf("* "); case 2: printf("** "); }
若有以下定义:float x; int a,b; 则正确的switch语句是 。 A: switch(x) { case 1.0: printf("* "); case 2.0: printf("** "); } B: switch(x) { case 1,2: printf("* "); case 3: printf("** "); } C: switch(a+b) { case 1: printf("* "); case 1+2: printf("** "); } D: switch(a+b); { case 1: printf("* "); case 2: printf("** "); }
设有定义: 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);
设有定义: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);
( )不是有效的推理。 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) )
若有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);