1 Which of the following statements about string is incorrect ( ).
A. Null string is a string of spaces.
B. String is a finite sequence of characters.
C. Pattern matching is an important operation of string.
D. String can use not only sequential storage, but also linked storage.
查看答案
2 String is a special linear list,its particularity is reflected in ( ).
A. data element is characters
B. sequential storage
C. linked storage
D. logical structure is linear structure
3 If the string S='software',the number of its prefix true substrings is ( ).
A. 7
B. 10
C. 9
D. 8
4 The length of the string is ( ).
A. the number of characters in the string
B. the number of different letters in a string
C. the number of different characters in a string
D. the number of non space characters in a string
5 The necessary and sufficient condition for two strings to be equal is that( ).
A. the length of the two strings is equal and the characters in the corresponding positions are equal.
B. the characters in the corresponding positions in the two strings are equal.
C. the two strings are stored in the same form.
D. the length of two strings is equal.