网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下面程序的运行结果是 Private Sub Command1_Click() x=1:y=1 For i=1 To 3 x=x+y:y=y+x Next i:print x,y End Sub

A.6 6

B.5 8

C.13 21

D.34 35


参考答案

更多 “ 下面程序的运行结果是 Private Sub Command1_Click() x=1:y=1 For i=1 To 3 x=x+y:y=y+x Next i:print x,y End SubA.6 6B.5 8C.13 21D.34 35 ” 相关考题
考题 有如下程序: include using namespace std; class TestClass { private: int x,y; pu 有如下程序: #include<iostream> using namespace std; class TestClass { private: int x,y; public: TestClass (int i,int j) { x=i; y=j; } void print() { cout<<"print1"<<end1; } void print()const { cout<<"print2"<<end1; } }; int main() { const TestClass a(1,2); a.print(); return 0; } 该程序运行后的输出结果是( )。A.print1B.print2C.print1 print2D.程序编译时出错

考题 有如下程序: #includediostream usingnamespacestd; classTestClass {private: intX,y; public: TestClass(inti,intj) {x=i; y=j;} voidprint() {cout"printl"endl;} voidprint()const {cout"print2"endl;}}; intmain() {constTestClassa(1,2); print(); return0;} 该程序运行后的输出结果是( )。A.printlB.print2C.printlprint2D.程序编译时出错

考题 下面程序的运行结果是【】。 include using namespace std; void fun(inta,int b=3) 下面程序的运行结果是【 】。include <iostream>using namespace std;void fun(int a, int b=3){static int i=2;a = a + b + i;i = i + a;}int main(){int x=5, y=2;fun(x, y);cout<<x<<",";fun(x);cout<<x<<end1;return 0;}

考题 有如下程序: #includediostream usingnamespacestd; classTestClass { private: intx,Y; public: TestClass(inti,intj) { x=i: y=j; } voidprint() { cout"printl"endl; } voidprint()const { cout"print2"endl; } }; intmain() { constTestClassa(1,2); print(); return0; } 该程序运行后的输出结果是( )。A.printlB.print2C.printlprint2D.程序编译时出错

考题 有下列程序:includeusing namespace std;class TestClass{private:int x,y;public:Te 有下列程序: #include<iostream> using namespace std; class TestClass { private: int x,y; public: TestClass (int i,int j) { x=i; y=j; } void print() { cout<<"printl"<<endl; } voA.print1B.print2C.pfint1 print2D.程序编译时出错

考题 有如下程序:#includediostreamusingnamespacestd;classTestClass{private:intX,y;public:TestClass(inti,intj){x=i;y=j;}voidprint(){coutprintlendl;}voidprint()const{coutprint2endl;}};intmain(){constTestClassa(1,2);print();return0;}该程序运行后的输出结果是( )。A.printlB.print2C.printlprint2D.程序编译时出错

考题 includeiostream.hclass A{private:int x,y;public:void f1(int i=0,int j=0){x=i;y=j;}void print(){coutx yendl;}void f1(int i=0){x=i,y=0;}};void main(){A a;a.f1(5);a.print();}

考题 写出下面代码的运行结果() def f(x,y=[]): for i in range(x): y.append(i*i) print(y) f(2)A.[0,2]B.[1,2]C.[0,1]D.[1,1]

考题 55、下列程序的运行结果是____。 x=[1,2,3] y=x+[4] print(len(x+y))

考题 3、下面程序的时间复杂度是()。 x=0 y=1 for (i=1; i<=n; ++i){ ++x; y=y*i }A.O(1)B.O(n)C.O(1+n)D.O(2+2n)