3 If the string S='software',the number of its prefix true substrings is ( ).
查看答案
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.
6 There are two strings p and q, where q is a substring of p. the algorithm for finding the first position of q in p is called ( ).
A. pattern matching
B. substring
C. concatenated string
D. the length of string
7 Known string S = 'aaab', its next function value is ( ).
A. 0123
B. 1123
C. 1231
D. 1211