若有定义语句:int a[][3]={1,2,3,4,5,6,7};,则a数组第一维的大小是()
查看答案
若有定义语句:float y[5]={1,2,3};,则下面描述正确的是()
A. y并不代表数组的元素
B. 定义此数组时不指定数组的长度,定义效果相同
C. 数组含有3个元素
D. y[3]的值是3
下面程序的输出结果是( )#include void main(){ int k;int a[3][3]={1,2,3,4,5,6,7,8,9};for(k=0;k<3;k++)printf("%d",a[k][2-k]); }
A. 3 5 7
B. 3 6 9
C. 1 5 9
D. 1 4 7
下面程序的输出结果是()#include void main(){int s[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i;for(i=0;i<12;i++)c[s[i]]++;for(i=1;i<5;i++)printf("%d ",c[i]);printf("\n");}
A. 1 2 3 4
B. 2 3 4 4
C. 4 3 3 2
D. 1 1 2 3
( ) belongs to intrinsic motivation in the following motivations.
Acquisition of answer
B. Getting a good mark
C. acquisition of approval of the teacher
D. Getting a good rank