题目内容

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

8 The next function value of the pattern string 'ababaabaa' is ( ).

A. 011234223456
B. 012345678999
C. 012121111212
D. 0123012322345

9 The return value of the function strcmp ('stcabuc ',' stbabuc ') is ( ).

A. 1
B. -1
C. 2

10 Pattern string t = 'abcaabbcabcabdab', the next function value of the pattern string is ( ).

A. 0 1 1 1 2 2 3 1 1 2 3 4 5 6 7 1 2
B. 0 1 1 1 2 2 1 1 1 2 3 4 5 6 7 1 2
C. 0 1 1 0 2 1 3 1 0 1 1 0 2 1 7 0 1
D. 0 1 1 1 0 0 1 3 1 0 1 1 0 0 7 0 1

答案查题题库