题目

字符串旋转。若整型变量s、t、c的值分别为3、9、4,则下列程序执行后str 1的值为( ) str 1=“go it for!” str 2=Mid(str 1, s, t-s+1) len 1=Len(str 1) :len 2=Len(str 2) c=c Mod len 2 For i=1To c str 2=Mid(str 2, len 2, 1) +Mid(str 2, 1, len 2-1) Next i str 1=Mid(str 1,1,s-1) +str 2+Mid(str 1,t+1,len 1-t) A . go for it! B . for!go it C . for it go! D . it for go!2、给出如图所示的程序框图,那么输出的数是( )A.7203B.7500C.7800D.7406
信息技术 试题推荐