下载此文档

java选择题(Java multiple-choice questions).doc


文档分类:IT计算机 | 页数:约39页 举报非法文档有奖
1/39
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/39 下载此文档
文档列表 文档介绍
java选择题(Java multiple-choice questions).docjava选择题(Java multiple-choice questions)
49. give the following code to ask which statement is inserted in the tenth line of the program, and the program can run essfully
Line IntType
Line String getType (String a, int b, char c) {
Line holdit1 =new String ();
Line =a;
Line holdit1;
Line 6.}
Line 7.}
Line 8.
Line OverType extends IntType{
Line 10.
Line holdit2 = new String ();
Line = ("This is").Concat (a);
Line holdit2;
Line 14.}
Line 15.
Line static void main (String[] a) {
Line ot = new OverType ();
Line x = new String ("X");
Line y =1;
Line z ='b';
Line (getType (x, y, z));
Line 22.}
Line 23.}
Please select all the correct answers:
(1) public Text getType (String a, int b, char c) {
(2) public Text getType (int b, String a, char c) {
(3) public String getType (String a, int b, char c) {
(4) public String getType (int b, String a, char c) {
50. which statements are used in Java language for interrupt cycle execution?
Please choose a correct answer:
(1) continue statement
(2) goto statement
(3) exit statement
(4) break statement
51. excuse me, where is the wrong code below?
Public class Example{
Public static void main (String[] args) {
For (i=0; j=0, i<10; ++i, j+=i) {
K+=i*i+j*j;
}
}
}
Please select all the correct answers:
(1) more than one sentence should be more than one sentence block
(2) comma should be used between i=0 and j=0
(3) two circular variables are used
(4) semicolon should be used between j=0 and i<10
52. excuse me, where is the following code fragment wrong?
For (int i=0; i<10; ++i) {
If (x[i]>100) break;
If (x[i]<0) continue;
X[i+1]=x[i]+y[i];
}
Please choose a correct answer:
(1) it is illegal to appear both break and continue statements in the same for loop statement
(2) the variable I should not be declared and initialize

java选择题(Java multiple-choice questions) 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数39
  • 收藏数0 收藏
  • 顶次数0
  • 上传人dreamclb
  • 文件大小25 KB
  • 时间2018-07-04