没有合适的资源?快使用搜索试试~ 我知道了~
2013年四川大学Java期末考试试卷,可用于学生期末考试重要的复习参考资料
资源推荐
资源详情
资源评论
2013 年 JAVA 卷
一、单项选择题(本大题共30小题,每小题2分,共60分)提示:在每小题列出的四个备选项中只
有一个是符合题目要求的,请将其代码填写在题后的括号内。错选、多选或未选均无分
1、 Which method must exist in every Java application? A
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 methods print and println of the class java.io.PrintWriter
is that B
A. print inserts a new line at the beginning of its output, but println does not
B. println appends a new line to the end of its output, but print does not
C. println inserts a new line at the beginning of its output, but print does not
D. print appends a new line to the end of its output, but println does not
4、 S u p p o s e t h a t t h e i n t e g e r a r r a y l i s t h a s b e e n d e c l a r e d a n d i n i t i a l i z e d a s
follows: D
private int[] list = { 10, 20, 30, 40, 50 };
public void mystery(int[] array) {
int tmp = array[array.length - 1];
for (int i = array.length-1; i>0; 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
注:试题字迹务必清晰,书写工整。 本题 10 页,本页为第 1 页
教务处试题编号:
资源评论
linkinparkzlz
- 粉丝: 27
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Python大作业:音乐播放软件(爬虫+可视化+数据分析+数据库)
- 课程设计-python爬虫-爬取日报,爬取日报文章后存储到本地,附带源代码+课程设计报告
- 软件和信息技术服务行业投资与前景预测.pptx
- 课程设计-基于SpringBoot + Mybatis+python爬虫NBA球员数据爬取可视化+源代码+文档+sql+效果图
- 软件品质管理系列二项目策划规范.doc
- 基于TensorFlow+PyQt+GUI的酒店评论情感分析,支持分析本地数据文件和网络爬取数据分析+源代码+文档说明+安装教程
- 软件定义无线电中的模拟电路测试技术.pptx
- 软件开发协议(作为技术开发合同附件).doc
- 软件开发和咨询行业技术趋势分析.pptx
- 软件测试题详解及答案.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功