Java程序员认证模拟题及详细分析(2)
来源:优易学  2010-1-15 9:39:18   【优易学:中国教育考试门户网】   资料下载   IT书店

 

   30. What use to position a Button in a Frame ,only width of Button is affected by the Frame size, which Layout Button well be set ?
   A. FlowLayout;
   B. GridLayout;
   C. North of BorderLayout
   D. South of BorderLayout
   E. East or West of BorderLayout
   31. What use to position a Button in a Frame, size of Button is not affected by the Frame size, which Layout Button will be set?
   A. FlowLayout;
   B. GridLayout;
   C. North of BorderLayout
   D. South of BorderLayout
   E. East or West of BorderLayout

   32. An AWT GUI under exposure condition, which one or more method well be invoke when it redraw?
   A. paint();
   B. update();
   C. repaint();
   D. drawing();

   33. Select valid identifier of Java:
   A. userName
   B. %passwd
   C. 3d_game
   D. $charge E. this

   34. Which are Java keyword?
   A. goto
   B. null
   C. FALSE
   D. native
   E. const

   35. Run a corrected class: java ?Ccs AClass a b c
   Which statement is true?
   A. args[0]=”-cs”;
   B. args[1]=”a b c”;
   C. args[0]=”java”;
   D. args[0]=”a”; E. args[1]=?b?
   36. Give the following java class:
   public class Example{
   static int x[]=new int[15];
   public static void main(String args[]){
   System.out.println(x[5]);
   }
   }
   Which statement is corrected?
   A. When compile, some error will occur.
   B. When run, some error will occur.
   C. Output is zero.
   D. Output is null.

   37. Give the following java class:
   public class Example{
   public static void main(String args[]){
   static int x[] = new int[15];
   System.out.println(x[5]);
   }
   }
   Which statement is corrected?
   A. When compile, some error will occur.
   B. When run, some error will occur.
   C. Output is zero.
   D. Output is null.

   38. Short answer:
   The decimal value of i is 12, the octal i value is:

   39. Short answer:
   The decimal value of i is 7, the hexadecimal i value is:

   40. Which is the range of char?
   A. 27~27-1
   B. 0~216-1
   C. 0~216
   D. 0~28

上一页  [1] [2] [3] 下一页

责任编辑:cyth

文章搜索:
 相关文章
热点资讯
资讯快报
热门课程培训