已知数组array,其最后一个元素的下标是?()     A、 array. sizeB、 array. length-lC、 array. size-lD、 array.length

题目

已知数组array,其最后一个元素的下标是?()     

  • A、 array. size
  • B、 array. length-l
  • C、 array. size-l
  • D、 array.length
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

已知一维数组类ARRAY的定义如下,ARRAY与普通一维数组区别是:其重载的运 算符[]要对下标是否越界进行检查。
ARRAY∷;v[n](或*(v+n))

第2题:

A server consists of two 72GB SCSI drives and four 146GB SCSI drives. All drives are attached to RAID  controller. The system administrator has decided to configure all six drives in a RAID 5 array.  How much usable disk space will this array have?()

  • A、 288GB
  • B、 360GB
  • C、 432GB
  • D、 728GB

正确答案:B

第3题:

阅读下列说明、流程图和算法,将应填入(n)处的字句写在对应栏内。

【流程图说明】

下图所示的流程图5.3用N-S盒图形式描述了数组Array中的元素被划分的过程。其划分方法;以数组中的第一个元素作为基准数,将小于基准数的元素向低下标端移动,而大于基准数的元素向高下标端移动。当划分结束时,基准数定位于Array[i],并且数组中下标小于i的元素的值均小于基准数,下标大于i的元素的值均大于基准数。设数组A的下界为low,上界为high,数组中的元素互不相同。

【算法说明】

将上述划分的思想进一步用于被划分出的数组的两部分,就可以对整个数组实现递增排序。设函数int p(int Array[],int low,int high)实现了上述流程图的划分过程并返回基准数在数组Ar ray中的下标。递归函数void sort(int Array[],int L,int H)的功能是实现数组Array中元素的递增排序。

【算法】

void sort(int Array[],int L,int H){

if (L<H) {

k=p(Array,L,H);/*p()返回基准数在数组Array中的下标*/

sort((4));/*小于基准数的元素排序*/

sort((5));/*大于基准数的元素排序*/

}

}


正确答案:(1)j←j-1
(1)j←j-1

第4题:

当定义一个数组时,系统会在内存中为该数组分配一个存储空间,其()就是数组在内存中的首地址。

  • A、数组的最大下标
  • B、数组的名称
  • C、数组的第一个元素
  • D、数组的最后一个元素

正确答案:B

第5题:

已知数组array,其最后一个元素的下标是()?

  • A、array.size
  • B、array.length-l
  • C、array.size-l
  • D、array.length

正确答案:B

第6题:

You add an Online Responder to an Online Responder Array. You need to ensure that the new  Online Responder resolves synchronization conflicts for all members of the Array.     What should you do()

  • A、From Network Load Balancing Manager, set the priority ID of the new Online Responder to 1.
  • B、From Network Load Balancing Manager, set the priority ID of the new Online Responder to 32.
  • C、From the Online Responder Management Console, select the new Online Responder, and then select Set as Array
  • D、From the Online Responder Management Console, select the new Online Responder, and then select Synchronize

正确答案:C

第7题:

A Windows 2003 server has the operating system installed on a software RAID mirror. After a failure of one disk in the array the server will no longer boot up. The other drive is still functioning. Which of the following should be done to correct the issue? ()

  • A、 Edit the boot.ini file.
  • B、 Change to a hardware RAID solution.
  • C、 Recreate the array.
  • D、 Edit the active drive in the array.

正确答案:A

第8题:

A server has five hot pluggable SCSI disk drives in a RAID 5 array. The server OS crashed and the server will not boot. The administrator noticed that all of the disk drives have gone offline.Which of the following components would MOST likely have caused the problem?()

A. Memory

B. SCSI backplane

C. SCSI drives

D. Motherboard


参考答案:C

第9题:

一维数组定义语句intn=10,a[n];则()

  • A、数组长度为10
  • B、数组中最后一个元素的下标是n-1
  • C、数组中第一个元素是a[1]
  • D、语法错

正确答案:D

第10题:

数组的长度只和数组元素中最后一个元素的下标有关。()


正确答案:正确

更多相关问题