网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
执行下列程序,显示的结果是______。
first="china"
second=""
a=LEN(first)
i=a
DO WHILE i>=1
second=second+SUBSTR(first,i,1)
i=i-1
ENDDO
?second
参考答案
更多 “ 执行下列程序,显示的结果是______。first="china"second=""a=LEN(first)i=aDO WHILE i>=1second=second+SUBSTR(first,i,1)i=i-1ENDDO?second ” 相关考题
考题
PublicclassHoltextendsThread{PrivateStringsThreadName;Publicstaticvoidmain(Stringargv[]){Holth=newHolt();h.go();Holt(){};Holt(Strings){sThreadName=s;PublicStringgetThreadName(){returnsThreadName;}}Publicvoidgo(){Hotfirst=newHot(first);first.start();Hotsecond=newHot(second);second.start();}Publicvoidstart(){For(inti=0;i2;i++){System.out.print(getThreadName()+i);Try{Thread.sleep(100);}catch(Exceptione){System.out.print(e.getMessage());}}}}当编译运行上面代码时,将会出现()A.编译时错误B.输出first0,second0,first0,second1C.输出first0,first1,second10,second1D.运行时错误
考题
( 10 )执行下列程序,显示的结果是 【 10 】 。one= "WORK"two = ""a = LEN ( one )i = aDO WHILE i=1two = two + SUBSTR ( one ,i , 1 )i=i - 1ENDDO? two
考题
下列程序段的输出结果是【】。 include void main() {inti=10,sum=0;do{sum=+sum+i;i=i
下列程序段的输出结果是【 】。include<iostream.h>void main(){int i=10,sum=0;do{sum=+sum+i;i=i-2;}while(i>=2);cout<<sum<<end1;}
考题
下面程序的输出结果是【】。 include using namespace std; int x; void funA(int,i
下面程序的输出结果是【 】。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) ;fimB(first,seconD) ;cout<<first<<" "<<second<<" "<<x<<end1;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;}
考题
下面程序的输出结果是______。 include 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;}
考题
执行下列程序,显示的结果是【 】。ne="WORK"two=""a=LEN(one)i=aDO WHILE i>=ltwo=two+SUBSTR(one,i, 1)i=i-1ENDDO?two
考题
以下程序段的执行结果是()。 s=0;i=1; do {s=s+i;i=i+2;} while (i<=0); printf(“%d”,s);A.0B.1C.9D.3
热门标签
最新试卷