下列程序运行时输出的结果是 Option Base 1 Private Sub Form_Click() Dim x(10) As Integer,y(5) As Integer For i=1 to 10 x(i)=10-i+1 Next For i=1 to 5 y(i)=x(2*i-1)+x(2*i) Next For i=1 to 5 Print y(i) Next End SubA.3 7 11 45 19B.19 15 11 7 3C.1 3 5 7 9D.不确定的值

下列程序运行时输出的结果是 Option Base 1 Private Sub Form_Click() Dim x(10) As Integer,y(5) As Integer For i=1 to 10 x(i)=10-i+1 Next For i=1 to 5 y(i)=x(2*i-1)+x(2*i) Next For i=1 to 5 Print y(i) Next End Sub

A.3 7 11 45 19

B.19 15 11 7 3

C.1 3 5 7 9

D.不确定的值


相关考题:

下列程序的输出结果是非曲直【 】。includeclass base{ int x, y;public: base(int i, 下列程序的输出结果是非曲直【 】。include<iostream, h>class base{int x, y;public:base(int i, int j){x=i; y=j;}virtual int add(){return x+ y;}};class three: public base{int z;public:three(int i, int j, int k) :base(i, j){z=k; }int add() { return (base:: add()+z); }};void main(){three * q=new three(lO,20,30);cout<<q->add()<<end1;}

有以下程序:int sub(int n) { return(n/10+n%10); }main(){ int x, y;scanf("% d", x);y=sub(sub(sub(x)));printf("% d\n", y);}若运行时输入:1234<回车>,程序的输出结果是【 】。

下列程序的输出结果是______。main() { int x,y; for(x=1,y=1;x=5)break;if(y%3= 下列程序的输出结果是______。 main() { int x,y; for(x=1,y=1;x<=10;x++) {if(y>=5)break; if(y%3==1) }y+=3; continue; } y-=5; } printf("%d\n",x); }A.2B.3C.4D.5

下列程序的输出结果是______。 include main() {intx=10,y=10,i; for(i=0;x>8;y=++) pri 下列程序的输出结果是______。include<stdio.h>main(){ intx=10,y=10,i;for(i=0;x>8;y=++)printf("%d%d",X--,y);}

运行下列程序: x=Input Box("input value Of x”) Select Case x Case IsO y=y+1 Case Is=0 y=x+2 Case Else y=x+3 End Select Print x;y 运行时,从键盘输入-5,输出的结果是( )。A.-7B.-9C.-8D.-10

运行下列程序: x=InputBox("input value of x") Select Case X Case Is>0 y=y+1 Case Is=0 y=x+2 Case ELse y=x+3 End Select Print x;y 运行时,从键盘输入-5,输出的结果是( )。A.-7B.-9C.-8D.-10

有如下程序:#includeiostreamUsingnamespacestd;classBase{public:Base(intx=O):valB(x){coutvalB;)~Base( ){coutvalB;)Private:intvalB:};classDerived:publicBase{public:Derived(intX=0,inty=0):Base(x),valD(y)(coutvalD;)~Derived( ){coutvalD;)private:intvalD;};intmain( ){Derivedobj12(2,3);return0;}运行时的输出结果是( )。A.2332B.2323C.3232D.3223

运行下列程序: x = InputBox( "input value of x" ) Select Case x Case Is > 0 y=y+1 Case Is = 0 y=x+2 Case Else y=x+3 End Select Print x; y运行时,从键盘输入-5,输出的结果是( )。A.-7B.-9C.-8D.-10

下列程序的输出结果是______。 include class base { int x,y; public: base(int i,i 下列程序的输出结果是______。include<iostream.h>class base{int x,y;public:base(int i,int j){x=i;y=j;}virtual int add( ){return x+y;}};class three:public base{int z;public:three(int i,int j,int k):base(i,j){z=k;)int add( ){return(base::add( )+z);}};void main( ){three*q=new three(10,20,30);cout<<q->add( )<<endl;}