【单选题】【消耗次数:1】
以下说法正确的是( )
VisualFoxPro中,定义数组时,系统将各元素初值设为.T.
VisualFoxPro中,定义数组时,系统将各元素初值设为.F.
VisualFoxPro中,定义数组时,系统将各元素初值设为0
VisualFoxPro中,定义数组时,各元素的初值不确定
参考答案:
复制
纠错
相关题目
【单选题】 在Visual FoxPro中,数组元素定义后,其初值为
①  0
②  .T.
③  .F.
④  空值
【单选题】 要定义一个int型数组A,并使其各元素具有初值9,0,3,0,0,不正确的定义语句是()
①  int A[]={9,0,3}
②  int A[]={9,0,3,0,0}
③  int A[5]={9,0,3}
④  int A[5]={9,0,3,0}
【单选题】 以下能正确定义数组并正确赋初值的语句是()
①  intN=5,b[N][N];
②  inta[1][2]={{1},{3}};
③  intc[2][]={{1,2},{3,4}};
④  intd[3][2]={{1,2},{34}};
【判断题】 在数组操作符中,“+”表示将两个数组中的各元素进行加法运算。
①  正确
②  错误
【单选题】 若有说明,int [3][4];则数组a各元素
①  可在程序的运行阶段得到初值0
②  可在程序的编译阶段得到初值0
③  不能得到确定的初值
④  可在程序的编译或运行阶段得到初值0
【判断题】 通过指针引用一维数组元素时,定义的指针变量的数据类型可以和数组元素类型相同
①  正确
②  错误
【单选题】 下列各语句定义了数组,()是正确的。
①  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};
【单选题】 语句Dim t(7)As Integer定义的数组元素有( )个。
①  7
②  8
③  9
④  10
【简答题】 在定义结构体数组时进行初始化,为清晰起见,可以将每个数组元素的信息用[填空1]包起来。
【单选题】 引用数组元素时,数组元素下标不可以是( )。
①  字符常量
②  整型变量
③  算数表达式
④  字符串
【单选题】 语句Dim t(-2 to 6)As Integer定义的数组元素有( )个。
①  6
②  7
③  8
④  9
随机题目
【多选题】 婚姻总是受到一定的条件限制,主要包括
①  血缘关系
②  民族
③  宗教信仰
④  阶级
⑤  身体
【单选题】 Areas where students have particular difficulty have been treated ____ particular care.
①  by
②  in
③  under
④  with
【单选题】 James Montgomery is famous for his army ____ posters of World Wars I and II.
①  recruited
②  recruiting
③  recruit
④  recrutation
【单选题】 His parents did not approve of his plan to go and study abroad with a girl they had never met, but he ____ and married her.
①  went against
②  went for
③  went for nothing
④  went ahead
【单选题】 They ____ that the aging population is adding 1 per cent yearly to health service costs.
①  add
②  calculate
③  add to
④  calculate on
【单选题】 Our hopes ___ and fell in the same instant.
①  aroused
②  arose
③  raised
④  rose
【单选题】 In Africa, educational costs are very low for those who are ____ enough to get into universities.
①  ambitious
②  fortunate
③  aggressive
④  substantial
【单选题】 There were some ____ flowers on the table.
①  artificial
②  unnatural
③  false
④  unreal
【单选题】 This is the nurse who ____ to me when I was ill in hospital.
①  accompanied
②  attended
③  entertained
④  shielded
【单选题】 、Although he had looked through all the reference material on the subject, he still found it hard to understand this point and her explanation only ____ to his confusion.
①  extended
②  amounted
③  added
④  turned