首页 > 电气工程及其自动化> 计算机可视化编程
题目内容 (请给出正确答案)
[单选题]

下面程序段是计算()公式的。S=0∶t=1 For i=1 To 10 t=t*i s=s+t Next i

A.s=1+2+3+4+5+6+7+8+9+10

B.s=1*2*3*4*5*6*7*8*9*10

C.s=1!+2!+3!+4!+5!+6!+7!+8!+9!+10!

D.s=1+2*3+3*4+4*5+5*6+6*7+7*8+8*9+9*10

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“下面程序段是计算()公式的。S=0∶t=1 For i=1 …”相关的问题
第1题
下面程序段运行后,变量s的值为()。a=2∶b=1∶s=0 For i=10 To 6 Step-1 s=s+a c=a+b a=b b=c Next i

A.10

B.17

C.6

D.28

点击查看答案
第2题
下面程序段的输出结果为_______。class OverMethod{ void printMeth(){ System.out.println(&
quot;There is none parameter."); } void printMeth(String t){ System.out.println("There is one parameter."); } void printMe

A.There is one parameter.There is none parameter.There are two parameters.

B.There is none parameter.There is one parameter.There are two parameters.

C.There is none parameter.It’s good!There are tw

D.It’s good!There is none parameter.There are two parameters.

点击查看答案
第3题
使用G70精加工时,在ns→nf程序段中的F、S、T是有效的。()
使用G70精加工时,在ns→nf程序段中的F、S、T是有效的。()

A.错误

B.正确

点击查看答案
第4题
有以下程序段:int x=0,s=0; while (!x!= 0) s+=++x; printf("%d",s);则有以下程序段()。

A.运行程序段后输出1

B.运行程序段后输出0

C.程序段执行无限次

D.程序段中的控制表达式是非法的

点击查看答案
第5题
有如下VB程序段:s=0Fori=10To1Step-3s=s+1nextiprints执行结束后s的值是()。

A.4

B.3

C.0

D.5

点击查看答案
第6题
执行下列程序段后,串X的值为S=“abcdefgh”;T=“xyzw”;substr(X,S,2,strlen(T));substr(Y,S,stelen(T),2);strcat(X,Y)。

A.“cdefgh”

B.“cdxyzw”

C.“defxy”

D.“cdefef”

点击查看答案
第7题
执行下列程序段后,串X的值为()。S=〞abcdefgh〞; T=〞xyzw〞; substr (X,S,2,strlen(T)); substr (Y,S, stelen(T),2); strcat (X,Y);

A.〞cdxyzw〞

B.〞cdefxy〞

C.〞cdefgh〞

D.〞cdefef〞

点击查看答案
第8题
下列程序段的输出结果是 ACCEPT TO A IF A=[123456] S=0 ENDIF S=1 ?S RETURN

A.0

B.1

C.由A的值决定

D.程序出错

点击查看答案
第9题
下列程序段执行后的结果是()。String s=new String(“abcdefg”); for(int i=0;i
下列程序段执行后的结果是()。String s=new String(“abcdefg”); for(int i=0;i

A.aceg

B.abcdefg

C.abcd

D.ACEG

点击查看答案
第10题
下列程序段的时间复杂度为()。i=0,s=0;while(sn){s=s+i;i++;}

A.O(n1/2)

B.O(n1/3)

C.O(n)

D.O(n2)

点击查看答案
第11题
下列程序段的时间复杂度为i=0,s=0;while(s<n){s=s+i;i++;}()

A.O(n1/2)

B.O(n1/3)

C.O(n)

D.O(n2)

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改