【单选题】【消耗次数:1】
定义一个有4个元素的一维整型数组,正确的是
floata[4];
inta[]={1,2,3,4,5};
inta[]={1,2,3};
inta[4]={1}
参考答案:
复制
纠错
相关题目
【单选题】 已知inta[4][4]={{1,2},{3},{4},{1,2,3}};问a[2][0]该元素的值是()
①  2
②  3
③  4
④  1
【单选题】 若有说明:inta[][3]={{1,2,3},{4,5},{6,7}};则数组a的第一维的大小为:()。
①  2
②  3
③  4
④  无确定值
【单选题】 已知:inta[][3]={1,2,3,4,5,6,7,8,9,0};则数组a的第一维的大小是()
①  2
②  3
③  4
④  无法确定;
【单选题】 在执行inta[][3]={{1,2},{3,4}};语句后a[1][2]的值是()
①  3
②  4
③  0
④  2
【单选题】 若有定义:inta[3][4];则表达式a[2][1]-a的值为()。
①  7
②  8
③  9
④  10
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为?
①  2
②  4
③  6
④  8
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为?
①  2
②  4
③  6
④  8
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为(???)。
①  2
②  4
③  6
④  8
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为()。
①  2
②  4
③  6
④  8
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为( )。
①  2
②  4
③  6
④  8
随机题目
【单选题】 UML的主要内容由()类图共9种图形来定义。
①  4
②  5
③  6
④  7
【单选题】 提高程序效率的根本途径并非在于( )。
①  选择良好的设计方法
②  选择良好的数据结构
③  选择良好的算法
④  对程度语句作调整
【单选题】 为了提高易读性,源程序内部应加功能性注释,用于说明( )。
①  模块总的功能
②  程序段或语句的功能
③  模块参数的用途
④  数据的用途
【单选题】 下列分解因式正确的是( )
①  <img src=http://huaweicloudobs.ahjxjy.cn/0546651b7150d4e99cd6f40406798665.png width=144 height=26 style=width: 144px; height: 26px;/>
②  <img src=http://huaweicloudobs.ahjxjy.cn/6fc0edd1ccf53f0c9a7b813af5d10b3d.png width=130 height=26 style=width: 130px; height: 26px;/>
③  <img src=http://huaweicloudobs.ahjxjy.cn/25b15637e7f5059035893cfce2bc6753.png width=163 height=27 style=width: 163px; height: 27px;/>
④  <img src=http://huaweicloudobs.ahjxjy.cn/b6646ce9b6a8c5612632c70d703730e1.png width=165 height=28 style=width: 165px; height: 28px;/>
【单选题】 <img src=http://huaweicloudobs.ahjxjy.cn/c30684c4e4110bf26d75eb2d992f1cc2.jpg/>
①  -1
②  0
③  2sin2
④  -2sin2
【单选题】 已知点P是抛物线y2=2x上的一个动点,则点P到点(0,2)的距离与点P到该抛物线准线的距离之和的最小值为(  )
①  <img src=http://huaweicloudobs.ahjxjy.cn/23a5f562d8a1c70e4c3ba7cef20e2bf6.png/>
②  3
③  <img src=http://huaweicloudobs.ahjxjy.cn/99ea9464a2efc4120ae1f33bf21b050b.png/>
④  4.5
【单选题】 今年我市工业试验区投资50760万元开发了多个项目,今后还将投资106960万元开发多个新项目,每个新项目平均投资比今年每个项目平均投资多500万元,并且新增项目数量比今年多20个.假设今年每个项目平均投资是x万元,那么下列方程符合题意的是( )
①  <img src=http://huaweicloudobs.ahjxjy.cn/5acc527e7c05d6a364800118e3f2d2cc.png/>
②  <img src=http://huaweicloudobs.ahjxjy.cn/995161409532ef66bc314cd2f47ad0f6.png/>
③  <img src=http://huaweicloudobs.ahjxjy.cn/e21a8b6c3033e529cc8f1a21b7810919.png/>
④  <img src=http://huaweicloudobs.ahjxjy.cn/7689e1ec596397f510353a359f8365ad.png/>
【判断题】 面向对象设计不能调整面向对象分析的结果。
①  正确
②  错误
【单选题】 直线l经过点A(1,2),在x轴上的截距的取值范围是(-3,3),则其斜率的取值范围是(  )
①  -1<k<1/5
②  k>1或k<1/2
③  k>1/5或k<1
④  k>1/2或k<-1
【简答题】 序言性注释应置于文件或模块的[填空]位置。