大学《JAVA语言程序设计》的期末考试试题及标准答案.docx

大学《JAVA语言程序设计》的期末考试试题及标准答案.docx

《JAVA 语言程序设计》期末考试试题及答案 3(应 考 必备题库) 一、单项选择题 1、如下哪个是 Java 中的标识符() A、publicB 、superC、3numberD、width 2、如下哪个是 Java 中的标识符 ( ) A、fieldnameB 、superC、3numberD、#number 3、已知如下定义: String s = story; 下面哪个语句不是合法的 ( ) A、s += ooks;B 、s = s + 100; Ds.length; 、String t = s + “abc”; C、int len = 4、如下哪个是 Java 中有效的关键字 () A、nameB、hello C、false D、good )5 、下面的代码段执行之后 count 的值是什么 ( 1; =int count {i++) = 5; i = 1; i for ( int i;+= count } out .println(count);System. A、5B、1C、 15D、16 6、定义一个类,必须使用的关键字是 () A、public B、classC 、interfaceD 、static 7、定义一个接口必须使用的关键字是( ) A、publicB 、class C、interfaceD 、static 8、如果容器组件 p 的布局是 Borde

文档评论(0)

1亿VIP精品文档

相关文档