JTEST练习题
- 格式:doc
- 大小:24.00 KB
- 文档页数:1
日语JLPT和JTEST的异同及考试攻略国际性日语考试认可度较高的主要是JLPT(日本�Z能力��Y,俗称能力考试)和JTEST(�g用日本�Z�识ǎ�俗称实用考试)两种。
JLPT于1984年开始到2009年每年12月实施一次,考试人数上升到了77万人数,为了结合实用性的需求和不断增长的考试人数,2010年开始每年考试增加到7月和12月的两次,内容编排也更加合理和实用。
另一方,JTEST从1991年开始在全世界每年单月实施共6次,每年大约有7万人参加考试。
一、时间选择在日本国内对于外国人的日语水平的认定还是以JLPT为主,但是JLPT每年只考两次,在中国国内报名时会出现网上拥堵的状况,因此有不少考生会选择每年6次的JTEST作为日语能力的认定。
二、级别及考试时间JLPT分为N5到N1的5个级别,N5为最初级,N1为最高级。
考试时间见下。
NI 文字・词汇・语法+阅读 110分钟听力 60分钟一共 170分钟N2 文字・词汇・语法+阅读 105分钟听力 50分钟一共 155分钟N3 文字・词汇 30分钟语法・阅读 70分钟听力 40分钟一共 140分钟N4 文字・词汇 30分钟语法・阅读 60分钟听力 35分钟一共 125分钟N5 文字・词汇 25分钟语法・阅读 50分钟听力 30分钟一共 105分钟JTST分为初级的E-F级和中高级A-D级。
考试时间见下。
A-D 阅读 80钟听力 45钟一共 125分钟E-F 阅读 70钟听力 30钟一共 100分钟从考试时间上比较,JTEST比JLPT短,同时级别只分为初级和中高级两个级别,通过考试分数认定自己的水平在比如A到D当中的哪个级别。
而JLPT是考生通过考不同的级别的结果认定自己是否达到此级别的标准,如果没有达到预期标准,可以重新选择低一个的级别考试。
三、认定基准JLPT的认定基准为满分180分,“/”后的为合格分数。
NI 文字・词汇・语法(0-60分/19分) 阅读(0-60分/19分) 听力(0-60分/19分) 总分(0-180分/100分)N2 文字・词汇・语法(0-60分/19分) 阅读(0-60分/19分) 听力(0-60分/19分) 总分(0-180分/90分)N3 文字・词汇・语法(0-60分/19分) 阅读(0-60分/19分) 听力(0-60分/19分) 总分(0-180分/95分)N4 文字・词汇・语法・阅读(0-120分/38分) 听力(0-60分/19分) 总分(0-180分/90分)N5 文字・词汇・语法・阅读(0-120分/38分) 听力(0-60分/19分) 总分(0-180分/80分)JTEST中高级别A-D级的满分为1000分,其中阅读500分,听力500分。
JTEST考试EF级题型解析及备考攻略11月JTEST考试在即,我根据在青岛华兴日语学校JTEST强化班授课经验和对考试研究为大家介绍下JTEST考试EF级题型解析及备考攻略听力部分1题型介绍听力部分由4个大题,共40题,每题5分,总分200分。
2考试变化:原有题型为照片问题:5个小题应答问题:15个小题,会话问题:10个小题,说明问题:10个小题;从95回考试进行变革照片问题:5个小题,听读解问题:5个小题,应答问题:15个小题,会话说明问题:15个小题,题型分析1照片问题与以前的考题没有变化,根据一句问话选出正确答案,对于大部分考生来说,这个题型是比较拿分的。
2在原有题型的基础上增加了听读解,根据对话一边看图一边找答案,主要考察考生对于听力的理解和应变能力。
3应答问题是没有照片的,根据一句问话从3个选项中选出一个正确答案,主要考察学生对日语语感的把握和对基础知识的把握。
4会话说明问题把原有的会话问题和说明问题和到一个大题里面共计15题,主要对学生的综合知识,以及听力能力进行检验。
注意4道听力大题的考试成绩都不能低于20%,每个单项低于20%的话总分即使达到了E级要求的350分或F要求的250分,也只有成绩认定,而没有等级证书认定,所以要求考生必须在保证20% 的前提下多多得分。
提高方法那么如何提高自己的听力呢?我建议同学们在平日的日语学习中,背单词时多背句子,这样背单词同时既可以掌握基础文法又增加了语感;在掌握好文法的基础上,尽量多做听力练习,例如跟随磁带反复收听和朗读教材的单词、课文和课后练习题。
预备考试时,反复去听JTEST每年真题听力。
正所谓冰冻三尺非一日之寒,只有平日进行大量的听力练习,才能在考试中立于不败之地。
对于初学日语准备留学的同学来说,听力部分是一个难点,往往听力成绩决定你是否能及格,是否有等级证书,所以希望大家在备考时一定要对听力特别重视,加强对听力的强化训练力度。
读解部分1题型介绍读解部分共四道大题,60道小题,总分300分。
软件评测师练习题与答案一、单选题(共100题,每题1分,共100分)1、可用于编写独立程序和快速脚本的语言是()。
A、JavaB、C#C、PythonD、Prolog正确答案:C2、以下测试项目不适合采用自动化测试的是( )。
A、需要反复进行的测试B、易用性测试C、可以录制回放的测试D、负载压力测试正确答案:B3、web应用链接测试不包括_______A、不存在的页面文件B、错误的链接C、无链接指向的页面D、客户端和服务器端的链接速率正确答案:D4、以下关于软件测试原则的叙述中,正确的是()。
A、测试用例只需选用合理的输入数据,不需要选择不合理的输入数据B、程序员应尽量测试自己的程序C、应制定测试计划并严格执行,排除随意性D、穷举测试是可能的正确答案:C5、对计算机评价的主要性能指标有时钟频率、()、运算精度、内存容量等。
A、端口吞吐量B、可移植性C、丢包率D、数据处理速率正确答案:D6、某软件系统无须在线容错,也不能采用冗余设计,如果对可靠性要求较高,故障有可能导致严重后果,一般采用()。
A、恢复块设计B、降低复杂度设计C、检错技术D、N版本程序设计正确答案:C7、对建立良好的程序设计风格,下面描述正确的是()。
A、充分考虑程序的执行效率B、程序的注释可有可无C、符号名的命名要符合语法D、程序应简单、清晰、可读性好正确答案:D8、利用高速通信网络将多态高性能工作站或微型机互连构成机群系统,其系统结构形式属于_____计算机。
A、单指令多数据流(SIMD)B、单指令单数据流(SISD)C、多指令多数据流(MIMD)D、多指令单数据流(MISD)正确答案:C9、在计算机系统中总线宽度分为地址总线宽度和数据总线宽度。
若计算机中地址总线的宽度为32位,则最多允许直接访问主存储器()的物理空间。
A、40MBB、4GBC、40GBD、400GB正确答案:B10、传统编译器进行词法分析、语法分析、代码生成等步骤的处理时,前一阶段处理的输出是后一阶段处理的输入,则采用的软件体系结构风格是()。
精心整理読解?记述问题解答例《记述问题》各点53) ( A )^^-X ( B )饮54) ( A )^V^ (B )落55) ( A )降召(B )帰沁解答例《记述问题B》各5点56) 亲切肚人57) 电车忙乗会社58) 食卞尢乙上力〈厉。
求歹力、59) 行见T60) 鸟力汕鸟〈声力计闻聴解问题各5点①写真总见4力、H^oE①写真总见。
问题2^n«何l歹力、。
2力U^^-lTo3^ynyi^o4电话lToC①写真总见。
问题3乙乙乙lT力、。
精心整理1台所左头2指手洗3玄関^To4教室TToD①写真总见o问题4乙料宅何总。
求T力、。
1写真总撮。
求To2^5CL^To3皿总洗V求To4□一匕一总饮族求ToE①写真总见T<^^Vo问题5何^LTV^T^o.<■<?_.. I "■■- —. ——■»2-—.< </■:./■■ f U i 7 •f ,■< f ” J i' ' .sr-'^*' i " ~lT^oTV^To3 . • \ 1L ■ … fF '2走oTV求To3泳V^V^To4休^^V^Tof「7 i \■,^_ X /" FFO絵总见T<^^Vo■ f ..h ■-X \ / i»'男①人力H舌^LTV^To------------------------------------------------------- 男:亍一儿①上。
乙八于于力$ 3 本厉。
求To 乞料力、$、© 人------------------------------------------------------- 问题6^-y^o±^^^to«^n^T^oGO図总见T<^^Vo女①人教室①生徒忙话LTV^To问题7正JV形^^n^T^o------------------------------------- 女:求于足总大吉〈开S疋立、両方①手高〈上求宅厉厅'K吃m、。
JTEST记述问题解题要点与备考方法作者:葱花老师来源:沪江网校评论:4编辑点评:记述问题是JTEST考试中的得分难点,但是记述问题是扣分制,而不是加分制,只要句子中稍有错误就会被扣分。
这就决定了我们造句时不要追求华丽的外表,句子造得越短、越简单越好。
本文相关应用葱花老师:沪江网校资深日语能力考讲师所授网校课程:《JTEST A-D》《进阶日本语高级教程》《N1阅读专项》《N1听力基础》《大家的日本语听力教程》葱花老师部落主页>>>以下是葱花老师分享给大家的JTEST学习经验:什么是记述问题?记述部分分为两部分A和B,A是填空,B是用给出的三个词造句。
A部分的要求:(1)所填的词语长度和空的下划线的长度无关系。
(2)书写,语法有误的话扣分。
例:問題:もっと練習___(A)_____ば、あのチームは____(B)_____ないだろう。
答え: A.しなけれ B.勝てB部分的要求:(1)所给出的三个词都必须用上。
(2)有必要的话改变三个词语的顺序,变换词语的形式,使用其他词语均可。
(3)书写,语法有误的话扣分。
例:問題:ぜんぜん、わかる、話答え:彼の話は難しくてぜんぜん分からなかった.记述问题是JTEST考试中的得分难点,但它的得分要领说起来也非常简单:力求正确、不求美。
因为记述问题是扣分制,而不是加分制,只要句子中稍有错误就会被扣分,而即使句子造得很长很复杂,也不会加分,反倒增加了失分的几率。
这就决定了我们造句时不要追求华丽的外表,句子造得越短、越简单越好。
出题倾向及解题要点:记述问题中常见的考点有:接续法、副词的呼应、句型的含义、惯用语等等。
例如:A部分:(95回91题)弟は新しいパソコンを欲しがっている。
(考「~がる」的接续)(94回93题)この本は上級者向けなので、これから勉強を始める人にはおすすめできない。
(考「~向け」的接续)(95回94题)我が社は技術力に関しては、B社に勝るとも劣らないと自負している。
题型分析与解题技巧语法词汇问题共分为A和B两个部分,A部分为语法与词汇的综合选择题,共30道题。
B部分为从四个选项中选出与句中划线部分意思大致相同的一个,共10道题。
语法词汇题从简到难,涉及范围广泛,能力与知识并重。
纵观最近几年J-TEST考试的趋势,可以判断J-TEST考试A-D级的语法词汇部分主要考查以下几个方面:名词、形容词、形容动词、动词变形(包括使役态、被动态、使役被动态等)、副词(包括拟声、拟态词)、接续词、各类助词、惯用搭配、外来语、敬语等。
1、用言型这部分包括动词、形容词、形容动词,其中以动词居多。
例1:トラックから荷物をぜんぶ()。
1とめた2はらった3おろした4こわした答案:3.解说:「荷物をおろす」是“卸行李”的意思,而其他选项的「とめる」是“停止”,「はらう」是“付款”,「こわす」是“损坏”的意思。
例2:夜が()前に、船を出し、漁場へ向かう。
1くれる2あける3とじる4あがる答案:2.解说:「夜が明ける」是“天亮”的意思,「暮れる」是“天黑,日暮”,一般构成的词组为「日が暮れる」;「閉じる」是“关闭;合上”的意思,比如说「店が閉じている」「目を閉じる」;「上がる」有很多意思,比如说“上,提高”等等。
例3:彼の話し方はとても()で、好感がもてる。
1にぎやか2すこやか3ささやか4さわやか答案:4.解说:「さわやか/爽やか」除了表示心情、天气等“爽快、清爽”外,还可以表示声音、口齿等“鲜明、清楚、爽利”;「にぎやか/賑やか」是“繁华,热闹”的意思,「すこやか/健やか」是指身体、精神“健全,健康,健壮”;「ささやか/細やか」是“细小,微小,一点点,简单”的意思。
例4:刑事は、一瞬のすきをつかれ、犯人をとり()。
1押さえた2捜した3込んだ4逃がした答案:4.解说:「取り逃がす」是“(没抓住)使……跑掉”的意思,「犯人を取り逃がす」是“让犯人跑了”。
「取り押さえる」是“逮捕,捉获”的意思,「取り込む」是“取回,拿进来;骗取;拉拢”之意;「取り捜す」是干扰项,没有这个词。
第90回I文法語彙問題次の文の( )に1。
2。
3。
4。
の中から最も適当な言葉をいれください。
(1) りー『田中さんは学生ですか』田中『いいえ、( )』1そうです 2学生です 3学生ですか 4学生ではありません (2) くつ( )7階です。
1うりば 2じむしょ 3げんかん 4しょくどう(3) 山田『それは誰のかさですか』パク『( )です。
』1私の 2大きい 3 500円 4ノート(4) 毎朝8時( )起きます。
1へ 2が 3で 4に(5)きのうはとても( )です。
1寒い 2寒く 3寒くない 4寒かった(6) 『( )食べてください』1ぜんぶで 2たくさん 3あまり 4とても(7)私は母の誕生日に母( )ハンカチをあげました。
1が 2は 3に 4から(8) ヘレン『ごめんください』木村『( )』1しつれいします 2いらっしゃい 3ごちそうさま 4おねがいします (9) これは旅行の( )です。
1おせわ 2おみやげ 3おふろ 4おはなみ(10) 『日本語が( )なりましたね。
』1じょうず 2じょうずな 3じょうずに 4じょうずで (11) 『山口さんの住所を( )か』1しります 2しっています 3すみます 4すんでいます (12)『ここでは写真を( )ことができますか』1とり 2とって 3とった 4とる(13) 『先生は何を( )か』1まいります 2いただきます 3もうします 4めしあがります (14)『わあ!星がきれいですね。
明日は( )いい天気でしょう』1きっと 2まっすぐ 3もし 4ぜひ(15) 先生『どうして遅れたんですか』キム『すみません。
バスがなかなか( )んです。
』(16)疲れました。
もう何も( )1した方がいいです 2していました3したくないです 4したことがありません(17) 次の日曜日にこの公園で( )があります。
1コンサート 2アナウンサー 3マンション 4キャッシュカード (18) 『こちらで( )ください。
jtest试题及答案JTEST试题及答案一、选择题(每题2分,共20分)1. 请问以下哪个选项是正确的?A. 太阳从西方升起B. 地球是平的C. 月亮是地球的卫星D. 人类不能在水下呼吸答案:C2. 以下哪种动物是哺乳动物?A. 蛇B. 鳄鱼C. 鲸鱼D. 鸡答案:C3. 以下哪个国家是亚洲国家?A. 巴西B. 阿根廷C. 日本D. 法国答案:C4. 以下哪个选项是正确的?A. 1 + 1 = 3B. 2 × 2 = 5C. 3 - 1 = 2D. 4 ÷ 2 = 0答案:C5. 以下哪个选项是正确的?A. 夏天比冬天冷B. 春天比秋天热C. 冬天比夏天冷D. 秋天比春天冷答案:C6. 以下哪个选项是正确的?A. 氧气可以燃烧B. 二氧化碳可以灭火C. 水是可燃物D. 金属是绝缘体答案:B7. 以下哪个选项是正确的?A. 光速是宇宙中最快的速度B. 声音可以在真空中传播C. 光可以在固体中传播D. 声音可以在液体中传播答案:A8. 以下哪个选项是正确的?A. 植物需要阳光和水才能生长B. 植物不需要氧气才能生长C. 植物不需要二氧化碳才能生长D. 植物不需要土壤才能生长答案:A9. 以下哪个选项是正确的?A. 人类可以不睡觉B. 人类可以不吃饭C. 人类可以不呼吸D. 人类需要水才能生存答案:D10. 以下哪个选项是正确的?A. 地球是宇宙的中心B. 地球是太阳系的中心C. 地球绕太阳公转D. 太阳绕地球公转答案:C二、填空题(每题2分,共20分)1. 地球的自转周期是______。
答案:一天2. 人类的血液是______色的。
答案:红色3. 光年是长度单位,表示光在真空中一年内行进的距离,其长度大约为______千米。
答案:9.46万亿4. 人体最大的器官是______。
答案:皮肤5. 地球上最大的陆地是______。
答案:亚洲大陆6. 世界上最长的河流是______。
答案:尼罗河7. 世界上最高的山峰是______。
日本测试题一、选择题读图,回答1~3题。
1.图中全部属于温带季风气候的岛屿或半岛是()A.④B.③C.②D.①2.日本每年大量进口蔬菜的原因之一是()A.气候不适宜种植蔬菜B.农业用地比例小,蔬菜种植成本高C.山地众多,交通不便D.生产力水平较低,农业粗放3.下列关于日本资源的表述,不正确的是()A.森林资源和水力资源较丰富B.矿产资源丰富,能满足本国工业发展的需要C.矿产贫乏,石油要从西亚和东南亚输入D.铁矿石主要从澳大利亚、巴西等地输入日本是一个工业发达的国家,农业也比较发达。
据此回答4~6题。
4.关于日本经济,叙述正确的是()A.降水丰富,内河航运发达,利于经济发展B.人口众多,市场广阔C.农业发达,为工业发展提供了丰富的原材料D.进口原料,出口工业产品,积极开拓国际市场5.日本发展工业的不利条件是()A.海岸线曲折,多海湾B.人口众多,劳动力充足C.岛国多海港,海上运输便利D.矿产资源贫乏6.日本附近海域有世界著名的大渔场是()A.北海渔场B.北海道渔场C.纽芬兰渔场D.秘鲁渔场7.日本经济发达的有利条件有( )A.岛国海岸线曲折,但良港不多B.国土狭窄,自然资源贫乏C.气候适宜,耕地很多D.科学技术水平高,人力资源充足8.日本工业区主要分布在东部沿海一带的主要原因是( )A.气候适宜、降水丰富B.劳力资源丰富,市场大C.多优良港口,便于原料输人、工业产品输出D.自然资源丰富,工业发展潜力大9.日本农业的特点是( ) A.多采用小型农业机械,发展水利,合理施肥,单产高B.渔业发达,但以捕捞业为主,养殖业不发达C.大量施用化肥、农药,属“石油农业”D.水果、蔬菜为主要出口农产品一行圆满完成了对日本的“暖春之旅”。
此行进一步推进了中日友好关系的发展。
据此回答10—12题。
10.日本与我国一水之隔,这里的“一水”是指()A.日本海B.渤海C.黄海D.东海11.每年日本不同地区樱花开放日期各不相同。
计算机多媒体操作单选题:1、下面的多媒体软件工具中,由Windows自带的是____。
A.Media PlayerB.GoldWaveC.WinampD.RealPlayer答案:A2、以下对视频设备的描述中,不正确的是______。
A.视频采集卡用于采集视频数据B.视频监控卡用于监听音乐C.DV卡用于与数码摄像机相连,将DV影片采集到PC的硬盘D.电视卡用于在PC机上看电视答案:B3、以下对音频文件格式的描述中,正确的是______。
A.MIDI 文件通常比WAV文件小,可以从 CD﹑磁带﹑麦克风等录制自己的 MIDI 文件B.MIDI 文件通常比MP3文件大C.WAV 文件通常比MP3文件小D.MIDI 文件通常比WAV文件小,可以从 CD﹑磁带﹑麦克风等录制WAV文件答案:D4、以下对视频格式文件的描述中,不正确的是______。
A.mpeg﹑mpg 或 dat 格式,就是运动图像专家组(MPEG)格式,是运动图像压缩算法的国际标准B.mpeg﹑mpg 或 dat 格式,就是静止图像专家组(MPEG)格式C.mpeg﹑mpg 或 dat 格式被用于家用的 VCD﹑SVCD﹑DVD等设备D.目前MPEG格式有MPEG-1﹑MPEG-2和MPEG-4三个压缩标准答案:B5、视频信息的采集和显示播放是通过______。
A.视频卡﹑播放软件和显示设备来实现的B.音频卡实现的C.三维动画软件生成实现的D.计算机运算实现的答案:A6、使用Windows中的“录音机”进行录音,一般保存文件类型为______。
A.wavB.xlsC.rarD.txt答案:A7、下列有关DVD光盘与VCD光盘的描述中,正确的是______。
A.DVD光盘的图像分辨率比VCD光盘低B.DVD光盘的图像质量比VCD光盘差C.DVD光盘的记录容量比VCD光盘小D.DVD光盘的记录容量比VCD光盘大答案:D8、以下对视频设备的描述中,正确的是______。
Java 2 TESTQuestion: 1Given the following code:class Test{private int m;public static void fun() {// some code...}}How can the member variable m be accessible directly in the method fun()?A. change private int m to protected int mB. change private int m to public int mC. change private int m to static int mD. change private int m to int mExplanation:If the variable m is changed to be a static variable it can be accessible in the method fun() for this method is a static member method.Correct Answer: C 1 of 60Question: 2Which methods are correct overloading methods of the following method:public void example(){...}A. public void example( int m){...}B. public int example(){...}C. public void example2(){...}D. public int example ( int m, float f){...}Explanation:The overloading methods must have the same names. If only the return type of the methods are different it is sufficient tell the methods from each other. The arguments of the methods must be different enough to determine which method to call.Correct Answer: A,D 2 of 60Question: 3Given the following fragment of code:public class Base{int w, x, y ,z;public Base(int a,int b){x=a; y=b;}public Base(int a, int b, int c, int d){// assignment x=a, y=bw=d;z=c;}}Which expressions can be used at the point of // assignment x=a, y=b?A. Base(a,b);B. x=a, y=b;C. x=a; y=b;D. this(a,b);Explanation:In the second constructor, the call this(a,b) passes control the version of the constructor that takes two int arguments.Correct Answer: C,D 3 of 60Question: 4Given the following definition:String s = "story";Which of the following expressions are legal?A. s += "books";B. char c = s[1];C. int len = s.length;D. String t = s.toLowerCase();Explanation:Answer B is not correct for String is a class and can'T be treated as an array of char. Answer C is not correct for s.length() should be used, not s.length.Correct Answer: A,D 4 of 60Question: 5What is the return value of the main() method in Java?A. StringB. intC. charD. voidExplanation:The main() method in Java returns void.Correct Answer: D 5 of 60Question: 6Which are the valid identifiers in Java?A. fieldnameB. superC. 3numberD. #numberE. $numberExplanation:Valid identifiers in Java can start with a letter, underscore (_), or dollar sign ($), but not with digits or other signs. And identifiers can not be keywords.Correct Answer: A,E 6 of 60Question: 7Which are valid Java keywords?A. constB. NULLC. falseD. thisE. nativeExplanation:All the keywords in Java are lowercase. goto and const are keywords that are not used in Java programming language.Correct Answer: A,C,D,E 7 of 60Question: 8Which are valid integral expressions in Java?A. 22B. 0x22C. 022D. 22HExplanation:In Java integral has three forms: decimal, octal and hexadecimal. Octal values start with a zero and hexadecimal values start with 0x.Correct Answer: A,B,C 8 of 60Question: 9Which one of the following ranges of short is correct?Explanation:The length of the short data is 16 bits. The range of short isThe length of the short data is 16 bits. The range of short isCorrect Answer: D 9 of 60Question: 10Which one of the following ranges of byte is correct?Correct Answer: B 10 of 60Question: 11Given the following fragment of code, what are results of i and j after execution?int i = 1;int j;j = i++;A. 1, 1B. 1, 2C. 2, 1D. 2, 2Explanation:Pay attention to the position of the operator ++. In this question, first j is assigned to 1, then the value of i is added to 2.Correct Answer: C 11 of 60Question: 12Which of the following statements are true?A. >> is the arithmetic right shift operator.B. >> is the logical right shift operator.C. >>> is the arithmetic right shift operator.D. >>> is the logical right shift operator.Explanation:There are two right shift operators in Java. They are >> and >>>. >> is the arithmetic(signed) right shift operator and >>> is the logical(unsigned) right shift operator.Correct Answer: A,D 12 of 60Question: 13Which of the following assignments are legal?A. float a = 2.0B. double b = 2.0C. int c = 2D. long d = 2Explanation:In Java the default data type of floating point is double, not float. The assignment from double to float requires an explicit cast.Correct Answer: B,C,D 13 of 60Question: 14Which one of the following arguments is the correct argument of the main() method?A. char args[]B. char args[][]C. String arg[]D. String argsExplanation:The argument of the main() method is an array of String. Then only answer C is an array of String. Correct Answer: C 14 of 60Question: 15Which one of the following is correct to create an array?A. float f[][] = new float[6][6];B. float []f[] = new float[6][6];C. float f[][] = new float[][6];D. float [][]f = new float[6][6];E. float [][]f = new float[6][];Explanation:In Java the declaration format allows the square brackets to be at the left or right of the variable name. But the new float[][6] is illegal.Correct Answer: A,B,D,E 15 of 60Question: 16Given the following expression: int m[] = {0, 1, 2, 3, 4, 5, 6 };Which result of the following expressions equals to the number of the array elements?A. m.length()B. m.lengthC. m.length()+1D. m.length+1Explanation:The number of elements in an array is stored in the length attribute in the array object.Correct Answer: B 16 of 60Question: 17Given the following command to run a correct class: java MyTest a b cWhich statements are true?A. args[0] = "MyTest a b c"B. args[0] = "MyTest"C. args[0] = "a"D. args[1]= 'b'Explanation:The three arguments "a" "b" "c" are stored in the args[] array of the main() method. Then args[0]= "a", args[1]= "b", args[2]= "c".Correct Answer: C 17 of 60Question: 18Given the following code:public class Test{long a[] = new long[10];public static void main ( String arg[] ) {System.out.println ( a[6] );}}Which statement is true?A. Output is null.B. Output is 0.C. When compile, some error will occur.D. When running, some error will occur.Explanation:When an array is created the members of the array is initialized. In this case all the elements are initialized to be 0.Correct Answer: B 18 of 60Question: 19Given the following fragment of code:boolean m = true;if ( m = false )System.out.println("False");elseSystem.out.println("True");What is the result of the execution?A. FalseB. TrueC. NoneD. An error will occur when running.Explanation:= is the assignment operator. == is the compare operator. In this question the value of false is assigned to the variable m.Correct Answer: A 19 of 60Question: 20Given the following code:public class Test{public static void main(String arg[]){int i = 5;do {System.out.println(i);} while (--i>5)System.out.println(“finished”);}}What will be output after execution?A. 5B. 4C. 6D. FinishedE. NoneExplanation:The expressions in the block of do/while loop will be executed at least once. If the condition of this loop is not met the loop will stop after once execution, otherwise, it will continue to loop until the condition is no met.Correct Answer: A,D 20 of 60Question: 21What will be output after execution of the following code:outer: for(int i=0;i<3; i++)inner: for(int j=0;j<2;j++){if(j==1) continue outer;System.out.println(j+ ?and ?+i);}A. 0 and 0B. 0 and 1C. 0 and 2D. 1 and 0E. 1 and 1F. 1 and 2G. 2 and 0H. 2 and 1I. 2 and 2Explanation:The continue statement is used to skip over and jump to the end of the loop body. Then if j equals to 1 it will jump to the end of the inner loop body.Correct Answer: A,B,C 21 of 60Question: 22Given the following code:switch (m){case 0: System.out.println("Condition 0");case 1: System.out.println("Condition 1");case 2: System.out.println("Condition 2");case 3: System.out.println("Condition 3");break;default: System.out.println("Other Condition");}Which values of m will cause "Condition 2" is output?A. 0B. 1C. 2D. 3E. 4F. NoneExplanation:In the block of switch, if there is no break sentence in one case the following sentences will be executed.Correct Answer: A,B,C 22 of 60Question: 23Which method is called when the browser returns to the page containing the applet after moving to another URL?A. init()B. start()C. stop()D. destroy()Explanation:The start() runs whenever the applet becomes visible, such as when the browser returns to the page containing the applet after moving to another URL or the browser is restored after being iconized.Correct Answer: B 23 of 60Question: 24If a thread calls the wait() method, which methods can make it continue to run?A. join()B. resume()C. notify()D. notifyAll()E. high priority thread is readyExplanation:If a thread issues a wait() call it will pause execution until another thread issues a notify() or notifyAll() call. The pair of the methods are provided for thread communication.Correct Answer: C,D 24 of 60Question: 25Which method is used to define the execution body of a thread?A. start()B. init()C. run()D. main()E. synchronized()Explanation:The threads will always begin executing at the run() method, which contains the definition of the execution body.Correct Answer: C 25 of 60Question: 26Which keyword is used to allow interaction with the lock flag?A. nativeB. staticC. synchronizedD. abstractExplanation:Every object has a lock flag. The synchronized keyword enables interaction with the flag, which allow exclusive access to that object.Correct Answer: C 26 of 60Question: 27Which modifiers are legal in Java?A. privateB. publicC. protectedD. protectE. friendExplanation:The public, private, protected and no modifier are legal modifiers. The friend and protect are illegal in Java.Correct Answer: A,B,C 27 of 60Question: 28If a member variable of a class can be accessible only by the same package, which modifier should be used?A. privateB. publicC. protectedD. no modifierE. finalExplanation:No modifier is the default access level. The default modifier means to be accessible by the classes in the same package.Correct Answer: D 28 of 60Question: 29Which modifier should be used to define a constant member variable?A. staticB. finalC. abstractD. No modifier can be usedExplanation:If a member variable is marked as final, it is a constant.Correct Answer: B 29 of 60Question: 30Which one of the following is correct to declare a native method?A. public native void test();B. public native void test(){}C. public void native test();D. public native test(){}Explanation:A native method can not have a method body. And the keyword native can't be put in front of the return value of the method.Correct Answer: A 30 of 60Question: 31Given the following definition of a class:public class Test {private float f = 1.0;int m = 12;static int n=1;public static void main(String arg[]) {Test t = new Test();// some code...}}Which of the following usage are legal?A. t.fB. this.nC. Test.mD. Test.nExplanation:The f and m are instance variables. They should be accessed through an object. The n is a class variable and it should be accessed through the class name.Correct Answer: A,D 31 of 60Question: 32Given the following code:1) class Example{2) String str;3) public Example(){4) str= "example";5) }6) public Example(String s){7) str=s;8) }9) }10) class Demo extends Example{11) }12) public class Test{13) public void f () {14) Example ex = new Example("Good");15) Demo d = new Demo("Good");16) }Which line will cause an error?A. line 3B. line 6C. line 10D. line 14E. line 15Explanation:The Demo class doesn't have a constructor that takes one String argument. The call on line 15 will cause an error.Correct Answer: E 32 of 60Question: 33Given the following class definition in one source file:class Base {public Base (){ //... }public Base ( int m ){ //... }protected void fun( int n ){ //... }}public class Child extends Base{// member methods}Which methods can be added into the Child class correctly?A. private void fun( int n ){ //...}B. void fun ( int n ){ //... }C. protected void fun ( int n ) { //... }D. public void fun ( int n ) { //... }E. public m(){ //... }Explanation:In the subclass Child the overriding methods cannot be less accessible than the method they overrides in the super class Base.Correct Answer: C,D 33 of 60Question: 34Which statements are correct?A. In Java single inheritance is allowed, which makes code more reliable.B. A subclass inherits all methods ( including the constructor ) from the superclass.C. A class can implement as many interfaces as needed.D. When a class implements an interface, it can define as many methods of the interface as needed.Explanation:A subclass inherits all methods except the constructor from the superclass. When a class implements an interface, it can define all the methods of the interface.Correct Answer: A,C 34 of 60Question: 35In the Test.java source file, which are correct class definitions?A. public class test {public int x = 0;public test(int x){this.x = x;}}B. public class Test{public int x=0;public Test(int x) {this.x = x;}}C. public class Test extends T1, T2 {public int x = 0;public Test (int x) {this.x = x;}}D. public class Test extends T1{public int x=0;public Test(int x){this.x = x;}}E. protected class Test extends T2{public int x=0;public Test(int x){this.x=x;}}Explanation:In the Test.java source file the class name should be Test, not test, for it is case-sensitive in Java. One class should have not more than one superclass. The protected modifier can not be put in front of the class.Correct Answer: B,D 35 of 60Question: 36The Person, Student and Teacher are class names. These classes have the following inheritance relation as shown below:Person|---------------| |Student TeacherThere is the following expression in a Java source file:Person p = new Student();Which one of the following statements are true?A. The expression is legal.B. The expression is illegal.C. Some errors will occur when compile.D. Compile is correct but it will be wrong when running.Explanation:The objects cast "up" the class hierarchy are always permitted. A reference of superclass can refer to an object of subclass.Correct Answer: A 36 of 60Question: 37The Person, Student and Teacher are class names. These classes have the following inheritance relation as shown below:Person|---------------| |Student TeacherIn Java source file a specific method has an argument. In order to handle all these classes in this method which type of argument of this method should be used?A. PersonB. StudentC. TeacherD. ObjectE. None of them can be used.Explanation:The objects of subclasses can pass around using references to their parent classes. The Person and Object are superclasses of the Teacher and Student classes. The type of the argument of the method should be Person or Object.Correct Answer: A,D 37 of 60Question: 38The Person, Student and Teacher are class names. These classes have the following inheritance relation as shown below:Person|---------------| |Student TeacherThere is the following expression in a Java source file:Person p = new Teacher();Which of the following expressions return true?A. p instanceof TeacherB. p instanceof StudentC. p instanceof PersonD. None of them returns trueExplanation:The instanceof operator is used to test the type of an object. Because the reference p refers to a Teacher object and the Teacher is a subclass of the Person class the expressions in answer A and C will return true.Correct Answer: A,C 38 of 60Question: 39Given the following code:public class Test{public static void main(String args[]){String str=new String("World");char ch[]={'H','e','l','l','o'};change(str,ch);System.out.println(str + "and" + ch);}public static void change(String str, char ch[]){str="Changed"; ch[0]='C';}}What is the result after execution?A. World and HelloB. World and CelloC. Changed and HelloD. Changed and CelloExplanation:Java passes arguments only by value. When an object instance is passed as an argument to a method, the value of the argument is a reference to the object. The contents of the object can be changed in the called method, but the object reference is never changed.Correct Answer: B 39 of 60Question: 40Given the following fragment of code:Double d1 = new Double(1.0);Double d2 = new Double(1.0);Float f = new Float(1.0F);Which results of the following expressions are true?A. d1 == d2B. d1.equals(d2)C. d1 = fD. f.equals(d1)Explanation:The == operator determine if reference values refer to the dame object. The equals() method is overridden in the Double, Float, String etc. class to compare the content of the objects.Correct Answer: B 40 of 60Question: 41Given the following code:public void fun (){int i;try{i=System.in.read ();System.out.println("Location 1");} catch (IOException e) {System.out.println("Location 2");} finally {System.out.println("Location 3");}System.out.println("Location 4");If an IOException occurs, what will be printed?A. Location 1B. Location 2C. Location 3D. Location 4Explanation:When an IOException occurs the "Location 1" is skipped. Fist the exception is caught and the "Location 2" is printed. Then the "Location 3" in the block of finally is printed. Finally, the "Location 4" is printed.Correct Answer: B,C,D 41 of 60Question: 42If the method func() is allowed to throw out the IOException, which declaration of this method can used?A. public int func(int i)B. public int func(int i) throw IOExceptionC. public int func(int i) throw ExceptionD. public int func(int i) throws IOExceptionE. public int func(int i) throws ExceptionExplanation:The throws keyword should be used when declaration of a method. In the declaration IOException and its superclass Exception can be used.Correct Answer: D,E 42 of 60Question: 43Given the following expression:String f = null;Which of the following expressions will throw an exception?A. f == null | f.length()>10B. f != null | f.length()>10C. f == null || f.length()>10D. f != null || f.length()>10The operator || perform short-circuit logical expressions. If the first subexpression is true the second subexpression is skipped, for the entire expression is true when the first subexpression is true. The operator | doesn't perform short-circuit logical expressions. Both of the two subexpressions are performed. Because the f is null the expression f.length() will cause an exception is thrown.Correct Answer: A,B,D 43 of 60Question: 44Which of the following can be parts of the Java source file Calculation1.java?A. public class Calculation1{//...}B. import java.io.*;C. package myPackage;D. import java.awt.*;E. static class Arg{//...}F. class Calcu{//...}G. public class Calculation2{//...}Explanation:The static can not be a modifier before the keyword class. A Java source file can have only one public class.Correct Answer: A,B,C,D,F 44 of 60Question: 45Which one of the following containers must be added to another container?A. WindowB. FrameC. DialogD. PanelExplanation:The Window, Frame and Dialog are free-standing windows. But the Panel is contained within another container, or inside a Web browser's window.Correct Answer: D 45 of 60Question: 46Which of the following classes are layout managers in Java?A. CardLayoutB. BorderLayoutC. PanelLayoutD. GridLayoutE. BagLayoutExplanation:There are five layout managers in Java. They are FlowLayout, BorderLayout, CardLayout, GridLayout and GridBaglayout.Correct Answer: A,B,D 46 of 60Question: 47A Button is positioned in a Frame. Only height of the Button is affected by the Frame while the width is not. Which layout manager should be used?A. FlowLayoutB. CardLayoutC. North and South of BorderLayoutD. East and West of BorderLayoutE. GridLayoutExplanation:In the East and West of BorderLayout only the height of the component is affected when the Frame is resized.Correct Answer: D 47 of 60Question: 48A Button is positioned in a Frame. Its size is not affected when the Frame is resized. Which layout manager should be used?A. FlowLayoutB. CardLayoutC. North and South of BorderLayoutD. East and West of BorderLayoutE. GridLayoutExplanation:The size of the components is not constrained by the FlowLayout manager. When the area is resized the size of these components is not changed.Correct Answer: A 48 of 60Question: 49Which methods can get the event source in the WindowEvent?A. getFrame()B. getID()C. getSource()D. getWindow()Explanation:The methods getSource() and getWindow() can be used to get the event sources of the window events.Correct Answer: C,D 49 of 60Question: 50Which statements of the event listener are true?A. Multiple listeners can be attached to one component.B. Only one listener can be attached to one component.C. One listener can receive and process the events from multiple components.D. One listener can receive and process the events from only one component.Explanation:One component can registers one or more listeners. One listener can be registered by multiple components. After being registered the listener can receive and process the events from these components.Correct Answer: A,C 50 of 60What is the return value of the method in the event listener interface?A. intB. StringC. voidD. ObjectE. AWTEventExplanation:All the methods in the event listener interfaces return void.Correct Answer: C 51 of 60Question: 52Which of the following event listeners have event adapters defined in Java?A. MouseListenerB. KeyListenerC. ActionListenerD. ItemListenerE. WindowListenerExplanation:Four listeners don't have their corresponding event adapters. They are ActionListener, ItemListener, AdjustmentListener and TextListener.Correct Answer: A,B,E 52 of 60Question: 53Which one of the following methods is not related to the display of the applets?A. update()B. draw()C. repaint()D. paint()Explanation:The paint(), update() and repaint() are predefined methods in Java. They are related to the displayCorrect Answer: B 53 of 60Question: 54Given the following definition:TextArea ta = new TextArea ("Hello", 5, 5);Which statements are true?A. The maximum number of characters in a line is 5.B. The displayed height is 5 lines otherwise constrain.C. The displayed string can use multiple fonts.D. The displayed strings are editable.Explanation:The TextArea is constructed to a 5 row * 5 character text area. It cannot display multiple fonts. The strings are editable by default. The displayed width of a line is 5 characters, but the maximum number in a line is more than 5.Correct Answer: B,D 54 of 60Question: 55Which method can be used to add MenuBar to a Frame?A. setMenu()B. setMenuBar()C. add()D. addMenuBar()Explanation:MenuBar is added to a Frame by using the setMenuBar() method. The add() method is used to add components to containers.Correct Answer: B 55 of 60Question: 56Which are not containers in Java?A. ScrollPaneB. CanvasC. ScrollbarD. AppletE. DialogExplanation:Scrollbar and Canvas are not containers. The following classes are containers in Java: Panel, Window, ScrollPane, Dialog, Frame, Applet.Correct Answer: B,C 56 of 60Question: 57Which of the following method can be used to define a new thread class?A. implement the Runnable interfaceB. add a run() method in the classC. create an instance of ThreadD. extend the Thread classExplanation:Two methods can define a new thread class: to implement the Runnable interface or to extend the Thread class.Correct Answer: A,D 57 of 60Question: 58Which of the following I/O stream are node streams?A. FileInputStreamB. BufferedInputStreamC. PushbackInputStreamD. ByteArrayInputStreamExplanation:The FileInputStream and ByteArrayInputStream are node streams. The BufferedInputStream and PushbackInputStream are filter streams.Correct Answer: A,D 58 of 60Question: 59Which of the following classes can handle the Unicode?A. InputStreamReaderB. BufferedReaderC. WriterD. PipedInputStreamExplanation:Java uses Unicode to represent strings and characters and Java provides 16 bit versions of streams to allow characters to be treated similarly. They are Reader, Writer and their subclasses.Correct Answer: A,B,C 59 of 60Question: 60Which classes are used to implement TCP/IP client and servers?A. ServerSocketB. ServerC. SocketD. DatagramPacketE. DatagramSocketExplanation:Use ServerSocket and Socket classes to implement the TCP/IP clients and servers. The DatagramPacket and DatagramSocket are used in the UDP-based network communication. Correct Answer: A,C 60 of 60。