题目内容

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

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

答案查题题库