- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
2012-2013学年第1学期Java试卷(B卷)
Note: Write all your answers on the Answer Sheets.
SECTION 1: Choose ONE Correct Answer to Each Question (30 points, 2 points each)
1. Which method is used to draw a string starting at point(x,y)? ( )
A. drawImage B. drawString
C. drawRect D. drawLine
2. Which of the following are methods of the Runnable interface? ( )
A. run B. start
C. yield D. stop
3. Which class can be used to create a socket in server side to wait for connection request from client? ( )
A. Socket B. ServerSocket
C. DatagramSocket D. URL
4. To handle mouse dragged event, which interface should be implemented? ( )
A. MouseListner B. MouseMotionListner
C. MouseWheelListener D. MouseAdapter
5. Which kind of file is used to distribute a collection of JavaServer Pages, Java Servlets, Java classes, HTML files and other resources that together constitute a Web application? ( )
A. war file B. jar file
zip file D. rar file
6. Which is correct about Applet? ( )
A. Applet is same as Servlet
B. Applet can be executed with browser
C. Some Applets can be used in mobile phone
D. Applet is a Java program which runs in web server
7. Which of the following statement is true? ( )
A. A byte can represent between -128 to 127
B. A byte can represent between -127 to 128
C. A byte can represent between -256 to 256
D. A char can represent between -2*216 to 2*216-1
8. An Applet has its Layout Manager set to the default of FlowLayout. Which code would be correct to change to another Layout Manager? ( )
A. setLayoutManager(new GridLayout());
B. setLayout(new GridLayout(2,2));
C. setGridLayout(2,2);
D. setBorderLayout();
9. Which of the following statements is NOT true? ( )
A. If a class has any abstract methods it must be declared abstract itself.
B. All methods in an abstract class must be declared as abstract
C. When applied to a class, the final modifier means it cannot be sub-classed
D. transient and volatile are Java modifiers
10. Which of the follow
您可能关注的文档
最近下载
- 生理性房室传导阻滞_刘仁光.pdf VIP
- 农村自来水厂建设工程分部分项施工方案和技术措施.pdf VIP
- (人教A版数学选择性必修一)2025年秋季学期讲义第12讲第一章空间向量与立体几何测评卷(基础卷)(学生版+教师版).docx VIP
- 《反恐怖防范管理规范 第2部分:医院》(DB22 T 3687.2-2025).pdf VIP
- 计算机视觉教程 作者 章毓晋 CCV04.ppt VIP
- 化工原理第四版谭天恩习题答案解析.pdf VIP
- 2025年高考物理(山东卷)试卷评析及2026高考备考策略 课件.pptx
- 人教版新版一年级语文上册课程纲要.pdf VIP
- 2025年广州地铁集团公司经营方针和战略.docx
- 2025年职业技能无人机驾驶员-民用无人机驾驶员理论知识参考题库含答案解析(5卷).docx VIP
文档评论(0)