The first, second and the third prize went to Kate, Bob and George _____________.

题目
The first, second and the third prize went to Kate, Bob and George _____________.

A.differently

B.partially

C.respectively

D.equally

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

执行下列程序,显示的结果是______。

first="china"

second=""

a=LEN(first)

i=a

DO WHILE i>=1

second=second+SUBSTR(first,i,1)

i=i-1

ENDDO

?second


正确答案:anihc
anihc 解析:变量a使用LEN函数取得字符串变量first的长度,该变量包含5个字母,所以它的长度为5,即a=5,然后将a的值赋给i,那么i也等于5。使用一个DO WHILE循环语句来操作,判断条件是变量i是否大于等于0,如果小于0,则退出循环,否则执行循环体。此时SUBSTR(first,5,1)的值为a,(从“china”字符串的第5位开始取一位字符);执行i=i-1后,i=4,重复此循环体的操作,变量second的值依次为a、an、ani、anih,anihc,最后i0,退出循环体。

第2题:

下面程序的输出结果是______。 include using namespace std; int x; void funA(int&am

下面程序的输出结果是______。

include<iostream>

using namespace std;

int x;

void funA(int&,int);

void funB(int,int&);

int main()

{

int first;

int second=5;

x=6;

funA(first,second);

funB(first,second);

cout<<first<<””<<second<<””<<x<<endl;

return 0;

}

void funA(int &a,int b)

{

int first;

first=a+b;

a=2*b;

b=first+4;

}

void funB(int u, int &v)

{

int second;

second=x;

v=second+4;

x=u+v;

}


正确答案:10 10 20
10 10 20 解析:本题考核函数的引用传递。“引用”实际上是给一个已知变量起个别名,对引用的操作也就是对被它引用的变量的操作。函数funA的功能是将第二个实参的值乘以2再赋值给第一个实参(通过引用传递实现),函数funB的功能是将全局变量x加上4再赋值给第二个实参,同时x等于第一个实参与第二个实参相加的和。

第3题:

There are still many things to straighten out before we can build this factory. First, there is the problem of money. Second, we need to import some of the key equipment. Third, we must set up a strong team to run the factory.()

此题为判断题(对,错)。


参考答案:对

第4题:

下列代码中 if(x>O){System.out.println("first");} elseif(x>-3){System.out.println("second");) else{System.out.println("third");) 要求打印字符串为“second”时,X的取值范围是( )。

A.x<=0且x>-3

B.x>0

C.x>-3

D.x<=-3


正确答案:A
A【解析】本题考查Java中的条件结构。条件语句根据判定条件的真假来决定执行哪一种操作。题目所给程序,如果x>0,则直接执行其后的System.out.println("first")语句,而不执行elseif等语句,当x<-0且x>-3时执行System.out.println("second")语句,所以选项A正确。当x为其他值时执行else语句。应该对Java的流程控制涉及的语句有所掌握,这些都是考试重点内容。

第5题:

有以下程序: include using namespace std; char *x[]={"First", "Second", "Third"

有以下程序: #include <iostream> using namespace std; char *x[]={"First", "Second", "Third" }; void f(char *z[ ]) { cout<<*z++<<end1; } int main ( ) { char **y; y=x; f(y); return 0; }

A.产生语法错误

B.First

C.Secpnd

D.Third


正确答案:B
解析:程序首先定义全局指针数组x,并赋初值。在函数f()中,语句“cout*z++end1;”是输出*z指向的字符串,然后指向下一个指针。由于在主函数中,指针y已初始化指向指针数组x,所以执行f(y)后,程序输出指针数组x中的第一个字符串"First"。

第6题:

Giventhefollowingcode:if(x>0){System.out.println("first");}elseif(x>-3){System.out.println("second");}else{System.out.println("third");}Whichrangeofxvaluewouldprintthestring"second"?()

A.x>0

B.x>-3

C.x<=-3

D.x<=0&x>-3


参考答案:D

x>0时打印"first",x>-3&&x<=0时打印"second",x<=-3时打印"third"。这个题目没有什么难的,只要理解if语句的语法就可以了。

第7题:

下列代码中 if(x>0) {System.out.println("first");} else if (x>-3){System.out.println("second");} else { System.out.println("third");} 要求打印字符串为"second"时,x的取值范围是( )。

A.x≤0 并且 x>-3

B.x>0

C.x>-3

D.x≤-3


正确答案:A
解析:本题考查Java中的条件结构。条件语句根据判定条件的真假来决定执行哪一种操作。题目所给程序,如果x>0,则直接执行其后的System.out.println("first")语句,而不执行else if等语句,当x≤0而且x>-3时执行 System.out.println("second")语句,所以选项A正确。当x为其他值时执行else语句。应该对 Java的流程控制涉及的语句数量有所掌握,这些都是考试重点内容。

第8题:

下列代码中

if(x>O){System.out.println("first");}

elseif(x>-3){System.out.println("second");)

else{System.out.println("third");)

要求打印字符串为“second”时,X的取值范围是( )。

A.x-3

B.x>0

C.x>-3

D.x<=-3


正确答案:A

A【解析】本题考查Java中的条件结构。条件语句根据判定条件的真假来决定执行哪一种操作。题目所给程序,如果x>0,则直接执行其后的System.out.println("first")语句,而不执行elseif等语句,当x<-0且x>-3时执行System.out.println("second")语句,所以选项A正确。当x为其他值时执行else语句。应该对Java的流程控制涉及的语句有所掌握,这些都是考试重点内容。

第9题:

有如下程序段 if(x<0){System.out.println("first");} else if(x<-4){System.out.println("second");} else{System.out.println("third");} x的取值在( )范围内时,将打印出字符串"second"。

A.x>0

B.x>-4

C.x<=-4

D.x<=0 &&x>-4


正确答案:D

第10题:

给出下列代码片段: if(x>0){System.out.println("first");} else if(x>-3){System.out.println("second");} else{System.out.println("third");} 当x处于( )范围时打印字符串"second"。

A.x>0

B.x>-3

C.-3<x<=0

D.x<=-3


正确答案:C