【判断题】【消耗次数:1】
若一维数组元素个数为n,则数组元素的最大下标是n,最小下标是0。
正确
错误
参考答案:
复制
纠错
相关题目
【单选题】 存放循环队列元素的数组data有10个元素,则data数组的下标范围是( )。
①  0~10
②  0~9
③  1~9
④  1~10
【单选题】 引用数组元素时,数组元素下标不可以是( )。
①  字符常量
②  整型变量
③  算数表达式
④  字符串
【单选题】 数组元素下标的数据类型为()。
①  整型常量、字符型常量或整型表达式
②  字符串常量
③  实型常量或实型表达式
④  任何类型的表达式
【判断题】 可以用下标法引用一个数组元素,也可以用指针法引用一个数组元素。
①  正确
②  错误
【判断题】 假设A是一维数组名,则*A和A[0]访问的是同一个数组元素。
①  正确
②  错误
【单选题】 使用命令DECLARE mm(2,3)定义的数组,包含的数组元素(下标变量)的个数为
①  2 个
②  3 个
③  5 个
④  6 个
【单选题】 当利用大小为n的数组顺序存储一个队列时,该队列的最后一个元素的下标为
①  n-2
②  n-1
③  n
④  n+1
【简答题】 结构体数组元素的下标从[填空1]开始。
【单选题】 利用下标来访问数组时,最小下标是从( )开始的。
①  0
②  1
③  -1
④  2
【单选题】 利用下标来访问数组时,最小下标是从( )开始的。
①  0
②  1
③  -1
④  2
随机题目
【单选题】 20. He talks as if he _____the manager here.
①  were
②  is
③  will be
④  has been
【单选题】 14. A: The box is heavy. B:I _______carry it for you.
①  will
②  am going to
③  may
④  . must
【单选题】 16. A; John , do you want me to take you to the hospital? B: No, thanks. Ann _____ take me.
①  will
②  is going to
③  may
④  must
【单选题】 13.I ______to a party tomorrow. Would you like to come too?
①  will go
②  am going
③  might go
④  can go
【单选题】 6.All this is highly ______ for those who worried a year ago that the country would have difficulty rebuilding its economy.
①  recalling
②  reassuring
③  reminding
④  removing
【单选题】 17. If you _____ to me, you wouldn’t be in such trouble now.
①  listened
②  will listen
③  had listened
④  listen
【单选题】 23.They have considered their high standard of living a(n)____for practising their basic beliefs.
①  award
②  reward
③  result
④  consequence
【单选题】 21. If only I _____ the answer to your question.
①  knew
②  will know
③  know
④  can know
【单选题】 9. He must have got into your room ______ at night.
①  somewhat
②  somehow
③  however
④  whatever
【单选题】 19.It’s time he_____ a good rest.
①  has
②  will have
③  had
④  must have