String regex = “”;
String regex = “ “;
String regex = “.*“.
String regex = “//s”
String regex = “//.//s*”;
String regex = “//w[ /.] +“;
第1题:
下列程序的执行结果是 ( ) public class Test { public int aMethod() { satic int i=0; i++; System.out.println(i); } public static void.main(String args[]) { Test test=new Test(); test.aMethod(); }
A.编译错误
B.0
C.1
D.运行成功,但不输出
第2题:
● 以下 HTML代码中,创建指向邮箱地址的链接正确的是(69)。
(69)
A . <a href="email:test@test.com">test@test.com</a>
B. <a href="emailto:test@test.com">test@test.com</a>
C. <a href="mail:test@test.com">test@test.com</a>
D. <a href="test@test.commailto:test@test.com">test@test.com</a>
第3题:
● 以下 HTML 代码中,创建指向邮箱地址的链接正确的是 (42)
(42)
A. <a href="email:test@test.com">test@test.com</a>
B. <a href="emailto:test@test.com">test@test.com</a>
C. <a href="mail:test@test.com">test@test.com</a>
D. <a href="mailto:test@test.com">test@test.com</a>
第4题:
第5题:
说出下面几个函数的区别:
private void test(string str){…}
private void test(ref string str){…}
private void test(out string str){…}
如果一个页面与数据
第6题:
A.String regex="";
B.String regex=" .";
C.String regex=".*";
D.String regex="\\s";
E.String regex="\\.\\s*";
F.String regex="\\w[\.]+";
第7题:
以下HTML代码中,创建指向邮箱地址的链接正确的是______。
A.<a href="email:test@test.com">test@test.com</a>
B.<a href="emailto:test@test.com">test@test.com</a>
C.<a href="mail:test@test.com">test@test.com</a>
D.<a href="mailto:test@test.com">test@test.com</a>
第8题:
A.t.f
B.this.n
C.Test.m
D.Test.n
第9题:
考虑如下类:
1. class Test(int i) {
2. void test(int i) {
3. System.out.println("I am an int.");
4. }
5. void test(String s) {
6. System.out.println("I am a string.");
7. }
8.
9. public static void main(String args[]) {
10. Test t=new Test();
11. char ch="y";
12. t.test(ch);
13. }
14. }
以下哪条为真?
A.行 5 不能通过编译,方法不能被覆盖.
B.行 12 不能通过编译, 因为没有一个test()方法含字符参数.
C.代码可以编译但在12行将出现异常.
D.代码可以编译且产生如下输出: I am an int.
E.代码可以编译且产生如下输出: I am a String.
第10题:
以下HTML代码中,创建指向邮箱地址的链接正确的是()。