【单选题】【消耗次数:1】
下列各语句定义了数组,()是正确的。
inta[][]={1,2,3,4};
intx[2][2]={1,2,3,4,5};
intx[2][]={1,2,4,6};
intm[][3]={1,2,3,4,5,6};
参考答案:
复制
纠错
相关题目
【单选题】 这条旋律 “3 4 | 5 6 2 3 | 4 - 1 2 | 3 3 2 2 | 2 1 ||”的节拍为( )
①  2/4
②  3/4
③  4/4
【单选题】 有定义语句“int a[][3]={1, 2, 3, 4, 5, 6};”,则a[1][0]的值是____。
①  4
②  1
③  2
④  5
【判断题】 设 A = {1, 2=,2, 4=,3, 3=},B = {1, 3=,2, 4=,4, 2=},则并关系A∪B的定义域dom(A∪B)等于:{1,2,3,4}。
①  正确
②  错误
【单选题】 已知inta[4][4]={{1,2},{3},{4},{1,2,3}};问a[2][0]该元素的值是()
①  2
②  3
③  4
④  1
【单选题】 以下程序段运行后,x[1]的值为()。intx[5]={5,4,3,2,1};x[1]=x[3]+x[2+2]-x[3-1];
①  6
②  0
③  1
④  5
【单选题】 下列程序段运行后,表达式()的值为3。structpoint{intx;inty;}*p;structpointa[3]={1,2,3,4,5,6};p=a;
①  *(p+2)
②  p[1].x
③  p[2].x
④  p[3].x
【单选题】 在执行inta[][3]={{1,2},{3,4}};语句后a[1][2]的值是()
①  3
②  4
③  0
④  2
【判断题】 若输入序列为1,2,3,4,5,6,则通过一个栈可以输出序列3,2,5,6,4,1。
①  正确
②  错误
【单选题】 若有定义:int a[][3]={1,2,3,4,5,6,7,8};,则a数组的行数为()
①  无确定值
②  3
③  2
④  1
【单选题】 集合{1, 2,3}与集合{2,3,4,5}的交集是( )
①  {1,2,3,5}
②  {1,5}
③  {2,3}
④  {1,3,4,5}
【简答题】 设 A = {1, 2=,2, 4=,3, 3=},B = {1, 3=,2, 4=,4, 2=},则交关系A∩B等于:[填空1]
随机题目
【单选题】 ——How did you like Nick’s performance last night ?—— To be honest ,his singing didn’t ________to be much?
①  appeal
②  refer
③  belong
④  occur
【单选题】 ________ all over the hills and around the lake are wild flowers of different colors.
①  Grow
②  To grow
③  Growing
④  Grew
【单选题】 Like most July days, it was hot. I stepped into __________ tiny ice-cream shop to cool off with _________ chocolate sundae(圣代冰淇淋).
①  the; /
②  a; a
③  / ; the
④  the; the
【单选题】 The reason _____ he was late for the meeting is _____ his car broke down on the road.
①  why; that
②  why; because
③  that; that
④  for which; because
【单选题】 During the Second World War, once before, the U-boats had been _____ because of air attack.
①  in trouble
②  in the trouble
③  for trouble
④  within trouble
【单选题】 After five hours’ drive, they reached ___________they thought was the place they’d been dreaming of.
①  that
②  where
③  which
④  what
【单选题】 Although only of __________ intelligence, he speaks four languages fluently.
①  average
②  middle
③  mean
④  normal
【单选题】 Computer classes must be __________ to every student of all grades, which will make them have a good command of the modern communication and learning tool.
①  accessible
②  avoidable
③  valuable
④  acceptable
【单选题】 Peter’s mother kept telling him that he should give up smoking, but _____ didn’t help.
①  he
②  which
③  she
④  it
【单选题】 Not until he went through real hardship the love we have for our families is important.
①  had he realized
②  did he realize
③  he realized
④  he had realized