[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fquOrf9rkZ5mS9V2UKqcpOw4zpbSvHC79s5sOs1vj8Og":3},{"id":4,"source":5,"question":6,"options":7,"answer":12,"related":13,"type":24,"origin":107,"createTime":26},289514933,"v1","有如下函数定义: void func(int a ,int &b){a++;b++;} 若执行代表段: int x=0,y=1; func(x,y); 则变量x和y的值分别是( )",[8,9,10,11],"0和1","1和1","0和2","1和2",[],[14,27,31,40,50,60,67,77,87,97],{"id":15,"source":5,"question":16,"options":17,"answer":22,"related":23,"type":24,"origin":25,"createTime":26},289514932,"有如下程序: #include\u003Ciostream> void fun(int& x,int y){int t=x;x=y;y=t;} int main( ) { int a[2]={23,42}; fun(a[1],a[0]); std::cout\u003C\u003Ca[0]\u003C\u003C\",\"\u003C\u003Ca[1]\u003C\u003Cstd::endl; return 0; } 执行后的输出结果是( )",[18,19,20,21],"42,42","23,23","23,42","42,23",[],[],0,null,"2025-12-27T16:12:46+08:00",{"id":4,"source":5,"question":6,"options":28,"answer":29,"related":30,"type":24,"origin":25,"createTime":26},[8,9,10,11],[],[],{"id":32,"source":5,"question":33,"options":34,"answer":38,"related":39,"type":24,"origin":25,"createTime":26},289514934,"已知函数f的原型是voin f(int *a,long &b);,变量v1、v2的定义是: int v1;long v2; 下列语句中正确的是( )",[35,36,35,37],"f(v1,&v2)","f(v1,v2)","f(&v1,v2)",[],[],{"id":41,"source":5,"question":42,"options":43,"answer":48,"related":49,"type":24,"origin":25,"createTime":26},289514935,"在下列原型所示的C++函数中,按\"传值\"方式传递参数的是( )",[44,45,46,47],"void f1(int x)","void f2(int *x)","void f3(const int * x)","void f4(int& x)",[],[],{"id":51,"source":5,"question":52,"options":53,"answer":58,"related":59,"type":24,"origin":25,"createTime":26},289514936,"有如下程序: #include\u003Ciostream> using namespace std; void f1(int&x,int& y){int z=x;x=y;y=z;} void f1(int x,int y){int z=x;x=y;y=z;} int main( ) { int x=10,y=26; f1(x,y); f2(x,y); cout\u003C\u003Cy\u003C\u003Cendl; return 0 } 运行时的输出结果是( )",[54,55,56,57],"10","16","26","36",[],[],{"id":61,"source":5,"question":62,"options":63,"answer":65,"related":66,"type":24,"origin":25,"createTime":26},289514937,"已知函数f的原型是\"void f(int *x,int &y);\",变量v1、v2的定义是\"int v1,v2;\",下列调用语句中,正确的是( )",[36,35,37,64],"f(&v1,&v2)",[],[],{"id":68,"source":5,"question":69,"options":70,"answer":75,"related":76,"type":24,"origin":25,"createTime":26},289514938,"有如下程序: #include\u003Ciostream> using namespace std; void f1(int&x){x++;} void f1(int x){++x;} int main( ){ int x=10,y=12; f1(x); f2(y); cout\u003C\u003Cx+y\u003C\u003Cendl; return 0 } 运行这个程序的输出结果是( )",[71,72,73,74],"22","23","24","25",[],[],{"id":78,"source":5,"question":79,"options":80,"answer":85,"related":86,"type":24,"origin":25,"createTime":26},289514939,"下列叙述错误的是( )",[81,82,83,84],"一个函数中可以有多条return语句","调用函数必须在一条独立的语句中完成","函数中通过return语句传递函数值","主函数名main也可以带有形参",[],[],{"id":88,"source":5,"question":89,"options":90,"answer":95,"related":96,"type":24,"origin":25,"createTime":26},289514940,"在函数的引用调用时,实参和形参应该是使用( )",[91,92,93,94],"变量值和变量","地址值和指针","地址值和引用","变量和引用",[],[],{"id":98,"source":5,"question":99,"options":100,"answer":105,"related":106,"type":24,"origin":25,"createTime":26},289514941,"在C++中有以下4条语句: int hot=200; int &rad=hot; hot=hot+100; cout \u003C\u003C rad \u003C\u003C endl; 执行这4条语句后输出为( )",[101,102,103,104],"0","100","300","200",[],[],{"courseName":108,"courseImg":109,"workName":110,"workId":110,"count":24,"courseId":111},"默认课程","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","","53e1d2ef4961cca8eea3e23969ad2cb9"]