any class
only the Target class
any class in the test package
any class that extends Target
第1题:
A.It can be any class.
B.No class has access to base.
C.The class must belong to the geometry package.
D.The class must be a subclass of the class Hypotenuse.
第2题:
下面哪个选项正确示例了传递一个参数给applet? ( )
A.<applet code=Test.class age=33 width=100 heigh=100>
B.<param name=age value=33>
C.<applet code=Test.class name-age value=33 width=100 height=100>
D.<applet Test 33>
第3题:
A.any class
B.only the Target class
C.any class in the test package
D.any class that extends Target
第4题:
Class TestException 1. public class TestException extends Exception { 2. } Class a: 1. public class a { 2. 3. public String sayHello(String name) throws TestException { 4. 5. if(name == null) { 6. throw new TestException(); 7. } 8. 9. return “Hello “+ name; 10. } 11. 12. } A programmer wants to use this code in an application: 45. A a=new A(); 46. System.out.println(a.sayHello(”John”)); Which two are true?()
第5题:
A.nmap -ss -o target.test.com/24
B.nmap -sU -O target.test.com/24
C.nmap -sS -O target.test.com/24
D.nmap -iR -O target.test.com/24
第6题:
下面______正确示范了传递—个参数给applet。
A.<applet code=Test.class age=33 width=100 height=100>
B.<param name=age value
C.<applet Test 33>
D.<aoolet code=Test.class name=age value=33 width=100 height=100>
第7题:
使下列程序正常运行并且输出“Hello!”,横线处应填写的内容是( )。 class Test { public static void main(string[]args){ Test t=new Test; start; } Public void run{ System.out.println("Hello!¨); )
A.extends Thread
B.extends Float
C.extends Iostream
D.extends Stdio
第8题:
A. any class
B. only the Target class
C. any class in the test package
D. any class that extends Target
第9题:
1. public class Target { 2. private int i = 0; 3. public int addOne() { 4. return ++i; 5. } 6. } And: 1. public class Client { 2. public static void main(String[] args) { 3. System.out.println(new Target().addOne()); 4. } 5. } Which change can you make to Target without affecting Client?()
第10题:
package test; class Target{ public String name="hello"; } What can directly access and change the value of the variable name?()