13 If the length of main body string is n and the length of pattern string is m, the time complexity of KMP algorithm for pattern matching is ( ).
A. O(m+n)
B. O(m*n)
C. O(m)
D. O(n)
查看答案
14 StrIndex(‘Index of String’,1,‘Str’)=( ).
A. 10
B. 9
C. 8
D. 7
15 The return value of SubStr('I like University',8,3) is ( ).
A. Uni
B. ike
C. ver
D. ers
16 There are two strings p and q, q is p’s substring. The algorithm to search the first time q appeared in p is called ( )
A. Seeking substring
B. Concatenation
C. Matching
D. Seeking length
17 Which of the following statements is correct?
A. “Empty string” is blank string.
B. Empty string is a substring of arbitrary string.
C. String only can be stored in sequential method and cannot be stored in linked method.
D. In C++ standards, char S[M] can represent up to a string of length M.