19 Which of the following descriptions about string is incorrect ?
A. String is a finite sequence of characters.
B. Pattern matching is an important operation.
C. String is a linear list whose data objects and operations both special
D. Empty string is a string consisting of spaces.
查看答案
2 There is an array A[i, j], the length of each element is 3 bytes, the value of i is 1 to 8, the value of j is 1 to 10. The first address of the array is BA, with row-major order, the address of element A[5,8] is ( ).
A. BA+141
BA+180
C. BA+222
D. BA+225
3 Assuming that the two-dimensional array A[1...100,1...100] is stored in row-major order, and each element occupies 2 storage units, and the base address is 10, then LOC[5,5]=( ).
A. 808
B. 818
C. 1010
D. 1020
4 Each element of the two-dimensional array A is a string of 6 characters, the row subscript i ranges from 0 to 8, and the column subscript j ranges from 1 to 10, so storing A requires at least ( ) bytes.
A. 90
B. 180
C. 240
D. 540
5 Each element of the two-dimensional array A is a string of 6 characters, the row subscript i ranges from 0 to 8, and the column subscript j ranges from 1 to 10, then the 8th column of A and the 5th row occupy ( ) bytes.
A. 54
B. 108
C. 114
D. 150