题目内容

[2019统考真题]设主串T=' abaabaabcabaabc',模式串S= 'abaabc', 采用KMP算法进行模式匹配,到匹配成功时为止,在匹配过程中进行的单个字符间的比较次数是( )。

A. 9
B. 10
C. 12
D. 15

查看答案
更多问题

When Jane returns to Thornfield what does she find?

A. That it has been remodeled and is unrecognizable
B. That it has been sold to greedy neighbors
C. That it has burned
D. That it is for sale

Rochester and Jane rebuild their relationship and soon marry. After two years of blindness, Rochester regained sight in one eye and was able to behold their first son at his birth.

A. 对
B. 错

下列输出结果是()。int a = 0 ;while ( a < 5 ) {switch(a){case 0:case 3 : a = a + 2;case 1 :case 2 : a = a + 3;default : a = a + 5;}}System.out.print ( a ) ;

A. 0
B. 5
C. 10
D. 其它

已知如下代码:switch(m){case 0:System.out.println("Condition 0");case 1:System.out.println("Condition 1");case 2:System.out.println("Condition 2");case 3:System.out.println("Condition3");break;default:System.out.println("OtherCondition"); }当m的值为()时,能输出“Condition 3”

A. 2
B. 0,1
C. 0,1,2
D. 0,1,2,3

答案查题题库