JAVA双语教学考试试卷和答案B.docxVIP

  • 11
  • 0
  • 约1.36万字
  • 约 14页
  • 2017-04-12 发布于四川
  • 举报
JAVA双语教学考试试卷和答案B

班 级学 号姓 名密封装订线密封装订线密封装订线B卷注意事项:请将各题答案按编号顺序填写到答题卷上,答在试卷上无效。单选题(本题共40小题,每小题1分,共40分)What is the return-type of the methods that implement the MouseListener interface?A. booleanB. BooleanC. voidD. PointSelect valid identifier of Java:A. %passwdB. 3d_gameC. $chargeD. thisWhich declares an abstract method in an abstract Java class?A. public abstract method();B. public abstract void method();C. public void abstract Method(};D. public abstract void method() {}Which statement about listener is true?A. Most component unallow multiple listeners to be added.B. If multiple listener be add to a single component, the event only affected one listener.C. Component don’t allow multiple listeners to be add.D. The listener mechanism allows you to call an addXxxxListener method as manytimes as is needed, specifying as many different listeners as your design require.Which method you define as the starting point of new thread in a class from which new thethread can be excution?A. public void start()B. public void run()C. public void int()D. public static void main(String args[]) Which statement is correctly declare a variable a which is suitable for refering to an array of50 string empty object?A. String [] aB. String aC. char a[][]D. String a[50] Which cannot be added to a Container?A. a MenuB. a ComponentC. a ContainerD. an AppletWhich is the main() method’s return of a application?A. StringB. byteC. charD. voidWhich is corrected argument of main() method of application?A. String argsB. String ar[]C. Char args[][]D. StringBufferarg[]Float s=new Float(0.9F);Float t=new Float(0.9F);Double u=new Double(0.9);Which expression’s result is true?A. s==tB. s.equals(t)C. s==uD. t.equals(u)Which are not Java keyword?A. gotoB. nullC. FALSED. constRun a corrected class: java –csAClass a b c enterWhich statement is true?A. args[0]=”-cs”;B. args[1]=”a b c”;C. args[0]=”java”;D. args[0]=”a”;Short answer:The decimal value of i is 12, the octal i value is: A. 14B. 014C. 0x14D. 012Short answer:The decim

文档评论(0)

1亿VIP精品文档

相关文档