问答题ABCDEFGHIJKLMNOPQRSTUVWXYZ  The alphabet is here to help you with these questions.You need to work out a different code for each question.Choose the correct answer.ExampleIf the code for FOOT is ENNS,what is the code for TOE? Answer:SND.If the code for

题目
问答题
ABCDEFGHIJKLMNOPQRSTUVWXYZ  The alphabet is here to help you with these questions.You need to work out a different code for each question.Choose the correct answer.ExampleIf the code for FOOT is ENNS,what is the code for TOE? Answer:SND.If the code for ORANGE is RUDQJH, what does SLQN mean?A.OHMJB.PINKC.QJOLD.POKE
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Given:Which three methods, inserted individually at line 14, will correctly complete class Two?()

A.int foo() { /* more code here */ }

B.void foo() { /* more code here */ }

C.public void foo() { /* more code here */ }

D.private void foo() { /* more code here */ }

E.protected void foo() { /* more code here */ }


参考答案:B, C, E

第2题:

class One {  void foo() {}  }  class Two extends One {   //insert method here  }  Which three methods, inserted individually at line 14, will correctly complete class Two?()

  • A、 int foo() { /* more code here */ }
  • B、 void foo() { /* more code here */ }
  • C、 public void foo() { /* more code here */ }
  • D、 private void foo() { /* more code here */ }
  • E、 protected void foo() { /* more code here */ }

正确答案:B,C,E

第3题:

What happens when you try to compile and run the following program?

class Mystery{String s;public static void main(String[] args){

Mystery m=new Mystery();m.go();}void Mystery(){s=”constructor”;}void go(){System.out.println(s);}

}()

A.this code will not compile

B.this code compliles but throws an exception at runtime

C.this code runs and “constructor” in the standard output

D.this code runs and writes “null” in the standard output


参考答案:D

第4题:

public class foo {  static String s;  public static void main (String[]args) {  system.out.printIn (“s=” + s);  } }  What is the result?()  

  • A、 The code compiles and “s=” is printed.
  • B、 The code compiles and “s=null” is printed.
  • C、 The code does not compile because string s is not initialized.
  • D、 The code does not compile because string s cannot be referenced.
  • E、 The code compiles, but a NullPointerException is thrown when toString is called.

正确答案:B

第5题:

31. // some code here  32. try {  33. // some code here  34. } catch (SomeException se) {  35. // some code here  36. } finally {  37. // some code here  38. }  Under which three circumstances will the code on line 37 be executed?()

  • A、 The instance gets garbage collected.
  • B、 The code on line 33 throws an exception.
  • C、 The code on line 35 throws an exception.
  • D、 The code on line 31 throws an exception.
  • E、 The code on line 33 executes successfully.

正确答案:B,C,E

第6题:

Given:Which method will complete this class?()

A.public int compareTo(Object o){/*more code here*/}

B.public int compareTo(Score other){/*more code here*/}

C.public int compare(Score s1,Score s2){/*more code here*/}

D.public int compare(Object o1,Object o2){/*more code here*/}


参考答案:B

第7题:

You are implementing an ASP.NET application that uses data-bound GridView controls in multiple pages. You add JavaScript code to periodically update specific types of data items in these GridView controls. You need to ensure that the JavaScript code can locate the HTML elements created for each row in these GridView controls, without needing to be changed if the controls are moved from one page to another. What should you do?()

  • A、Replace the GridView control with a ListView control.
  • B、Set the ClientIDMode attribute to Predictable in the web.config file.
  • C、Set the ClientIDRowSuffix attribute of each unique GridView control to a different value.
  • D、Set the @ OutputCache directives VaryByControl attribute to the ID of the GridView control.

正确答案:B

第8题:

You need to write a code segment that transfers the contents of a byte array named dataToSendby using a NetworkStream object named netStream.You need to use a cache of size 8,192 bytes.Which code segment should you use?()

A.

B.

C.

D.


参考答案:C

第9题:

public class foo {  public static void main (String[]args) {  String s;  system.out.printIn (“s=” + s);  }  }   What is the result?()  

  • A、 The code compiles and “s=” is printed.
  • B、 The code compiles and “s=null” is printed.
  • C、 The code does not compile because string s is not initialized.
  • D、 The code does not compile because string s cannot be referenced.
  • E、 The code compiles, but a NullPointerException is thrown when toString is called.

正确答案:C

第10题:

Which three will compile and run without exception?()

  • A、private synchronized Object o;
  • B、void go(){   synchronized(){/* code here */}
  • C、public synchronized void go(){/* code here */}
  • D、private synchronized(this) void go(){/* code here */}
  • E、void go(){   synchronized(Object.class){/* code here */}
  • F、void go(){   Object o = new Object();   synchronized(o){/* code here */}

正确答案:C,E,F

更多相关问题