网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
Aarr和1Barr两个数组说明如下: VAR Aarr:Array[0...7]of char; Bart:Array[-5…2,3…8]of char; 这两个数组分别能存放的字符的最大个数是______。
A.7和35
B.1和5
C.8和48
D.1和6
参考答案
更多 “ Aarr和1Barr两个数组说明如下: VAR Aarr:Array[0...7]of char; Bart:Array[-5…2,3…8]of char; 这两个数组分别能存放的字符的最大个数是______。A.7和35B.1和5C.8和48D.1和6 ” 相关考题
考题
考虑如下数组$multi_array,怎样才能从数组$multi_array中找出值cat?( )$multi_array= array(‘red’,’green’,42=’blue’,’yellow’=array(‘apple’,9=’pear’,’banana’,’orange’=array(‘dog’,’cat’,’iguana’)))
A.$multi_array[‘yellow’][‘apple’][0]B.$multi_array[‘blue’][0][‘orange’][1]C.$multi_array[3][3][2]D.$multi_array[‘yellow’][‘orange’][1]
考题
● 在 C 语言中,设有数组定义:char array[ ] = "China";则数组 array 所占用 的空间为 (58) 。(58)A. 4 个字节 B. 5 个字节 C. 6 个字节 D. 7 个字节
考题
The figure below shows a record used for recording information about a named? event.Which of the following statement is incorrect? VAR r:record event:array[1..10] of char; place:array[1..20] of record plname:array[1..15] of char; date: array[1..5] of record mo:l..12; day:l..31; year:integer end end end;A.This is a one-dimensional array of records, also called a table.B.This is so called record of arrays;C.The event can occur in up to 20 places and on up to 5 different dates in each place.D.A reference to r.place[i].date[j].mo will access the month of the jth occurrence, in the ith place, of
考题
已有如下数组定义和f函数调用语句,则在f函数的说明中,对形参数组array的正确定义方式为int a[3][4];f(a);A.f(array[3][4])B.f(int array[3][])C.f(int array[][4])D.f(int array[][])
考题
下面对二维数组array 的定义,正确的是( )。A.int array[][4];B.char array[3,4];C.float array (3)(4);D.float array[3][4];
考题
设有数组定义:char array[ ]="China"; 则数组array所占的空间为( )。 A. 4个字节 B.5个字节 C. 6个字节 D. 7个字节A.EFGHIJABCDB.bcdefghijC.abdefCghijD.不确定的值
考题
对两个数组a和b进行如下初始化: char a[]="ABCDEF"; char b[]={'A','B','C','D','E','F',}; 则以下叙述正确的是A.数组a与数组b完全相同B.数组a与数组b长度相同C.数组a与数组b中都存放字符串D.数组a比数组b长度长
考题
Aarr和Barr两个数组说明如下: VAR Aarr:Array[0…7] of char; Barr:Array[-5…2,3…8] of char; 这两个数组分别能存放的字符的最大个数是( )A.7和35B.1和5C.8和48D.1和6
考题
定义JavaScript数组的正确方法是?()A、var txt = new Array="tim","kim","jim"B、var txt = new Array(1:"tim",2:"kim",3:"jim")C、var txt = new Array("tim","kim","jim")D、var txt = new Array:1=("tim")2=("kim")3=("jim")
考题
下列声明数组的语句中,正确的选项是()。A、var arry=new Array()B、var arry=new Array(3)C、var arry[]=new Array(3)(4)D、都不对
考题
Which expressions are correct to declare an array of 10 String objects? () A、 char str[];B、 char str[][];C、 String str[];D、 String str[10];
考题
单选题对数组的定义及初始化不正确的方法是:()。A
int array[];B
int array[8];C
int[]array=new int[8];D
int array[]=new int[8];
考题
单选题Which expressions are correct to declare an array of 10 String objects? ()A
char str[];B
char str[][];C
String str[];D
String str[10];
考题
单选题有如下代码: var arr = new Array(9); arr[0]=1; arr[2]=2; 该数组的length属性值为()A
2B
10C
8D
9
热门标签
最新试卷