311020040面向对象程序设计导论_双语_A闭_.pdf

311020040面向对象程序设计导论_双语_A闭_.pdf

  1. 1、本文档共7页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
311020040面向对象程序设计导论_双语_A闭_

311020040 面向对象程序设计导论 (双语)(A 闭) 2012-2013-1 一、单项选择题(本大题共30 小题,每小题2 分,共60 分) 提示:在每小题列出的四个备选项中只有一个是符合题目要求的,请将其代码填写在下表中。错选、多选或 未选均无分。 1、Which method must exist in every Java application? A. main B. paint C. begin D. init 2、Which of the following statements is (are) true about the use of an asterisk (*) in a Java import statement? I. It does not incur run-time overhead. II. It can be used to import multiple packages with a single statement. III. It can be used to import multiple classes with a single statement. A. I and III only B. III only C. I only D. I, II, and III 3、A difference between the methodsprint andprintln of the classjava.io.Pr intWriter is that A. print inserts a new line at the beginning of its output, butprintln does not B. println appends a new line to the end of its output, butprint does not C. println inserts a new line at the beginning of its output, butprint does not D. print appends a new line to the end of its output, butprintln does not 4、Suppose that the integer array list has been declared and initialized as follows : private int[] list = { 10, 20, 30, 40, 50 }; public void mystery(int[] array) { int tmp = array[array.length - 1]; for (int i = 1; i array.length; i++) { array[i] = array[i - 1]; } array[0] = tmp; } Given this array, what is the effect of calling the method mystery(list) A. 10, 20, 30, 40, 50 B. 30, 40, 50, 10, 20 C. 20, 30, 40, 50, 10 D. 50, 10, 20, 30, 40 5、According to Javadoc convention, the first sentence of each

您可能关注的文档

文档评论(0)

xxj1658888 + 关注
实名认证
内容提供者

教师资格证持证人

该用户很懒,什么也没介绍

领域认证该用户于2024年04月12日上传了教师资格证

1亿VIP精品文档

相关文档