[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f20RZrIgiQWAwHQlr2yS8WNnd9O8VXywvoTK_7gznCDs":3},{"id":4,"source":5,"question":6,"options":7,"answer":12,"related":13,"type":24,"origin":107,"createTime":26},289514935,"v1","在下列原型所示的C++函数中,按\"传值\"方式传递参数的是( )",[8,9,10,11],"void f1(int x)","void f2(int *x)","void f3(const int * x)","void f4(int& x)",[],[14,27,37,46,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":28,"source":5,"question":29,"options":30,"answer":35,"related":36,"type":24,"origin":25,"createTime":26},289514933,"有如下函数定义: void func(int a ,int &b){a++;b++;} 若执行代表段: int x=0,y=1; func(x,y); 则变量x和y的值分别是( )",[31,32,33,34],"0和1","1和1","0和2","1和2",[],[],{"id":38,"source":5,"question":39,"options":40,"answer":44,"related":45,"type":24,"origin":25,"createTime":26},289514934,"已知函数f的原型是voin f(int *a,long &b);,变量v1、v2的定义是: int v1;long v2; 下列语句中正确的是( )",[41,42,41,43],"f(v1,&v2)","f(v1,v2)","f(&v1,v2)",[],[],{"id":4,"source":5,"question":6,"options":47,"answer":48,"related":49,"type":24,"origin":25,"createTime":26},[8,9,10,11],[],[],{"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;\",下列调用语句中,正确的是( )",[42,41,43,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\u002Fp.ananas.chaoxing.com\u002Fstar3\u002F240_130c\u002F3a7c4e2929905646967168696f78ff01.png","","53e1d2ef4961cca8eea3e23969ad2cb9"]