[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fl54G6DYbzd4F1Bc5LsycnhDMgrjPRc9-Rclz274GbB8":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2025-11-19 18:21:40",237255203,[8,9,10,11],"I am sad","happy","I am happy","happy!sad",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},20,"53e1d2ef4961cca8eea3e23969ad2cb9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","默认课程","work_45507762","第5章 数组-习题作业","有以下程序段,当输入为happy!时,程序运行后输出结果是( ). char str[14]={&quot;I am &quot;}; strcat(str, &quot;sad!&quot;); scanf(&quot;%s&quot;,str); printf(&quot;%s&quot;,str)",[21,32,41,50,59,68,77,86,95,98],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],237255195,[25,26,27,28],"x[10]= &quot;Hello! &quot;","x=&quot;Hello! &quot;","x[]=&quot;Hello! &quot;","for(i=0; i&lt;6; i++) x[i]=getchar()","已定义&quot;int i; char x[10];&quot;,为了给x数组赋值,以下正确的语句是( )","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":31},[],237255196,[36,37,38,39],"a数组和b数组长度相同","a数组长度大于b数组长度","a数组长度小于b数组长度","两个数组中存放相同的内容","若有以下的数组定义:&quot;char a[ ]=&quot;abcd&quot;; char b[ ]={'a','b','c','d','e'};&quot;,则以下正确的描述是( )",{"answer":42,"createTime":5,"id":43,"options":44,"question":49,"source":30,"type":31},[],237255197,[45,46,47,48],"2 5 8","2 6 10","4 7 10","4 6 8","若有定义&quot;int i; int x[3][3]={2,3,4,5,6,7,8,9,10};&quot;,则执行语句&quot;for(i=0;i&lt;3;i++) printf(&quot;%4d&quot;,x[i][2-i]);&quot;的输出结果是( )",{"answer":51,"createTime":5,"id":52,"options":53,"question":58,"source":30,"type":31},[],237255198,[54,55,56,57],"int a[2][3]={{1,2},{3,4},{5,6}}","int a[ ][3]={1,2,3,4,5,6}","int a[2][ ]={1,2,3,4,5,6}","int a[2][ ]={{1,2},{3,4}}","下列对二维数组a进行正确初始化的是( )",{"answer":60,"createTime":5,"id":61,"options":62,"question":67,"source":30,"type":31},[],237255199,[63,64,65,66],"数组的下标可以是float类型","数组的元素的类型可以不同","初始化列表中初始值的个数多于数组元素的个数也是可以的","区分数组的各个元素的方法是通过下标","下列说法正确的是( )",{"answer":69,"createTime":5,"id":70,"options":71,"question":76,"source":30,"type":31},[],237255200,[72,73,74,75],"if(strcmp(str1,str2)) printf(&quot;%s&quot;,str1)","if(strl1&gt;str2) printf(&quot;%s&quot;,str1)","if(strcmp(str1,str2)&gt;0) printf(&quot;%s&quot;,str1); else printf(&quot;%s&quot;,str2)","if( strcmp(str1)&gt;strcmp(str2)) printf(&quot;%s&quot;,str1)","若有定义&quot;char str1[30],str2[30];&quot;,则输出较大字符串的正确语句是( )",{"answer":78,"createTime":5,"id":79,"options":80,"question":85,"source":30,"type":31},[],237255201,[81,82,83,84],"11","19","13","20","下列程序段的输出结果是( ). int aa[4][4]={{1,2,3,4},{5,6,7,8},{3,9,10,2},{4,2,9,6}}; int i,s=0; for(i=0;i&lt;4;i++) s+=aa[i][1]; printf(&quot;%d\\n&quot;,s)",{"answer":87,"createTime":5,"id":88,"options":89,"question":94,"source":30,"type":31},[],237255202,[90,91,92,93],"15","14","7","6","下列程序段的输出结果是( ). char str[15]= &quot;hello!&quot;; printf(&quot;%d\\n&quot;,strlen(str))",{"answer":96,"createTime":5,"id":6,"options":97,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":99,"createTime":5,"id":100,"options":101,"question":106,"source":30,"type":31},[],237255204,[102,103,104,105],"一个数组只允许存储同种类型的数据","数组名是数组在内存中的首地址","数组必须先定义,后使用","如果在对数组进行初始化时,给定的数据元素个数比数组元素少,多余的数组元素自动初始化为最后一个给定元素的值","下列关于数组的描述中错误的是( )"]