题目内容

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.

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

答案查题题库