- 1、本文档共7页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 2016年11月中级经济师《工商管理》考前预测题(一).pdf
- 2016年北京外国语大学翻译硕士考研,英语翻译基础历年考研真题,考研参考书推荐,考研大纲.pdf
- 2016年北京语言大学翻硕百科知识资料考研真题,考研重点.pdf
- 2016年南开大学语言学及应用语言学(文院)考研复试内容解析-考研复试真题-考研复试辅导.pdf
- Les07-干预优化器.ppt
- Les08-排序关联.ppt
- les08管理特权.ppt
- Linux平台下MySQL5.5安装说明与示例.docx
- Linux网络设备驱动_PCI网卡.doc
- linux配置运行环境.doc
- 专题06 经济体制(我国的社会主义市场经济体制)-五年(2020-2024)高考政治真题分类汇编(解析版).docx
- 专题11 世界多极化与经济全球化-5年(2020-2024)高考1年模拟政治真题分类汇编(解析版).docx
- 专题03 经济发展与社会进步-5年(2020-2024)高考1年模拟政治真题分类汇编(浙江专用)(解析版).docx
- 专题09 文化传承与文化创新-5年(2020-2024)高考1年模拟政治真题分类汇编(北京专用)(原卷版).docx
- 5年(2020-2024)高考政治真题分类汇编专题08 社会进步(我国的个人收入分配与社会保障)(原卷版).docx
- 专题07 探索世界与把握规律-5年(2020-2024)高考1年模拟政治真题分类汇编(解析版).docx
- 5年(2020-2024)高考政治真题分类汇编专题06 经济体制(我国的社会主义市场经济体制)(原卷版).docx
- 专题11 全面依法治国(治国理政的基本方式、法治中国建设、全面推进依法治国的基本要求)-五年(2020-2024)高考政治真题分类汇编(解析版).docx
- 专题17 区域联系与区域协调发展-【好题汇编】十年(2015-2024)高考地理真题分类汇编(解析版).docx
- 专题01 中国特色社会主义-5年(2020-2024)高考1年模拟政治真题分类汇编(原卷版).docx
文档评论(0)