继续上题,为了程序编写简洁,要给数据框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 a[10];则以下哪段代码将遍历输出数组所有元素? A: int x;for (x=0; x<9; x++) printf("%d ",a[x]); B: int x;for (x=0; x<10; x++) printf("%d ",a[x]); C: int x;for (x=1; x<10; x++) printf("%d ",a[x]); D: int x;for (x=1; x<=10; x++) printf("%d ",a[x]);
设有如下数组定义: int a[10];则以下哪段代码将遍历输出数组所有元素? A: int x;for (x=0; x<9; x++) printf("%d ",a[x]); B: int x;for (x=0; x<10; x++) printf("%d ",a[x]); C: int x;for (x=1; x<10; x++) printf("%d ",a[x]); D: int x;for (x=1; x<=10; x++) printf("%d ",a[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("** "); }
以下推理过程是正确的.(1) ("x)($y)P(x,y) P规则(2) ("x) P(x,a) US, (1) A: 正确 B: 错误
以下推理过程是正确的.(1) ("x)($y)P(x,y) P规则(2) ("x) P(x,a) US, (1) A: 正确 B: 错误
设有定义: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);
设有定义: 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) )