大数据基础技能试题及答案
大数据考试题库和答案

大数据考试题库和答案一、单项选择题1. 大数据的4V特征不包括以下哪一项?A. Volume(体量大)B. Velocity(速度快)C. Variety(种类多)D. Validity(有效性)答案:D2. 以下哪一项不是Hadoop生态系统中的组件?A. HDFSB. MapReduceC. SparkD. Cassandra答案:D3. 在大数据中,以下哪个术语指的是数据的存储格式?A. ETLB. OLAPC. NoSQLD. Hadoop答案:C4. 以下哪个不是大数据技术的优势?A. 处理速度快B. 成本低C. 存储容量小D. 可扩展性高答案:C5. 大数据技术可以应用于以下哪个领域?A. 金融B. 医疗C. 教育D. 所有以上选项答案:D二、多项选择题1. 大数据技术可以解决以下哪些问题?A. 数据挖掘B. 数据存储C. 数据分析D. 数据可视化答案:ABCD2. 以下哪些是大数据技术的关键组成部分?A. 分布式存储B. 分布式计算C. 数据库D. 机器学习答案:ABCD3. 在大数据领域,以下哪些是常见的数据源?A. 社交媒体B. 传感器数据C. 交易记录D. 网络日志答案:ABCD三、判断题1. 大数据技术只能处理结构化数据。
(错误)2. 机器学习是大数据技术的一个重要应用领域。
(正确)3. Hadoop是一个开源的大数据存储和处理框架。
(正确)4. NoSQL数据库不支持事务处理。
(错误)5. 大数据技术可以完全替代传统的数据库技术。
(错误)四、简答题1. 请简述大数据的4V特征。
答案:大数据的4V特征包括:- Volume(体量大):数据量巨大,通常以TB或PB为单位。
- Velocity(速度快):数据生成和处理的速度非常快。
- Variety(种类多):数据类型多样化,包括结构化、半结构化和非结构化数据。
- Veracity(真实性):数据的质量和准确性。
2. 请解释什么是ETL过程。
大数据专业考试题及答案

大数据专业考试题及答案一、选择题(每题2分,共20分)1. 大数据的“4V”特征不包括以下哪一项?A. Volume(体量)B. Velocity(速度)B. Variety(多样性)D. Visibility(可见性)答案:D2. 在大数据技术中,Hadoop生态系统中的核心组件是:A. SparkB. HBaseC. HiveD. HDFS答案:D3. 以下哪个不是大数据存储技术?A. NoSQL数据库B. 关系型数据库C. 分布式文件系统D. 内存数据库答案:B4. 以下哪个是大数据分析的关键技术?A. 数据清洗B. 数据可视化C. 数据挖掘D. 所有选项都是答案:D5. 大数据平台中,用于实时数据处理的技术是:A. MapReduceB. StormC. HadoopD. Cassandra答案:B...(此处省略其他选择题)二、简答题(每题10分,共30分)1. 简述大数据与传统数据仓库的主要区别。
答案:大数据与传统数据仓库的主要区别在于:大数据处理的数据量更大、数据类型更多样化、处理速度更快,并且大数据技术更倾向于分布式存储和计算,而传统数据仓库通常采用集中式存储和处理。
2. 解释什么是数据挖掘,并举例说明其应用场景。
答案:数据挖掘是从大量数据中通过算法自动或半自动地发现有趣模式和知识的过程。
例如,在零售业中,数据挖掘可以用来分析顾客的购买行为,从而进行个性化推荐和库存管理。
3. 描述Hadoop生态系统中MapReduce的工作流程。
答案:MapReduce的工作流程包括Map阶段和Reduce阶段。
在Map 阶段,输入数据被分割成多个小块,每个小块由一个Map任务处理,生成中间键值对。
在Reduce阶段,中间键值对根据键进行分组,并传递给Reduce任务,Reduce任务对每个键对应的所有值进行处理,生成最终的输出结果。
三、计算题(每题15分,共30分)1. 假设有一个大数据集,需要使用MapReduce进行处理。
大数据考试试题及答案

大数据考试试题及答案1. 选择题1) 大数据的关键特征是什么?A. 数据的规模巨大B. 数据的多样性C. 数据的高速产生和流转D. 数据的价值潜力答案:A、B、C、D 全部都是2) 大数据技术的基本架构包括以下哪些层次?A. 数据采集与清洗层B. 数据存储与管理层C. 数据分析与挖掘层D. 数据展示与应用层答案:A、B、C、D 全部都有3) 大数据分析的主要方法包括以下哪些?A. 关联分析B. 聚类分析C. 回归分析D. 时间序列分析答案:A、B、C、D 全部都有2. 填空题1) 大数据的三个V分别代表什么?(简写形式即可)答案:V(Volume)代表数据规模,V(Velocity)代表数据高速产生和流转,V(Variety)代表数据多样性2) 大数据技术的核心是____和____。
答案:存储与计算3) 大数据分析的关键是____和____。
答案:数据挖掘和模型建立3. 简答题1) 请简述大数据的应用领域。
答案:大数据在各行各业都有广泛的应用。
例如,电商领域可以通过大数据分析用户消费行为,进行个性化推荐;物流领域可以利用大数据优化配送路径,提高效率;医疗领域可以通过大数据分析患者病历,辅助疾病诊断等。
2) 大数据分析的方法有哪些?答案:大数据分析的方法包括关联分析、聚类分析、分类与预测、异常检测、文本分析等。
4. 计算题1) 如果一家公司的服务器每天产生1TB(1TB = 1024GB)的数据,假设这些数据需要保存1年,计算一共需要多少存储空间?答案:1TB * 365天 = 365TB2) 某电商网站每天访问量为1000万人次,每个访问用户产生平均10个点击行为数据,假设每条点击行为数据大小为1KB,计算每天需要存储多少数据?答案:1000万人次 * 10个 = 1亿个点击行为数据1亿个 * 1KB = 100TB总结:大数据的考试试题主要包括选择题、填空题、简答题和计算题。
选择题涵盖大数据的特征、技术架构和分析方法。
大数据考试题目及答案

大数据考试题目及答案一、单项选择题(每题2分,共10题)1. 大数据的4V特征中,不包括以下哪一项?A. Volume(体量大)B. Velocity(速度快)C. Variety(种类多)D. Validity(准确性)答案:D2. Hadoop的核心组件包括以下哪些?A. HDFSB. MapReduceC. YARND. 以上都是答案:D3. 下列哪个不是大数据的存储技术?A. NoSQL数据库B. 分布式文件系统C. 传统关系型数据库D. 内存数据库答案:C4. 在大数据技术中,用于实时处理数据流的框架是?A. HadoopB. SparkC. HiveD. Pig答案:B5. 大数据环境下,数据挖掘的主要目标是什么?A. 数据清洗B. 数据存储C. 数据分析D. 数据可视化答案:C二、多项选择题(每题3分,共5题)1. 大数据技术可以应用于以下哪些领域?A. 金融分析B. 医疗健康C. 交通规划D. 教育研究答案:ABCD2. 以下哪些是大数据技术的优势?A. 处理速度快B. 存储成本低C. 可扩展性强D. 数据安全性高答案:ABC3. 在大数据技术中,以下哪些是数据预处理的步骤?A. 数据清洗B. 数据转换C. 数据聚合D. 数据压缩答案:ABCD4. 大数据技术中,以下哪些是数据挖掘的常用算法?A. 决策树B. 聚类分析C. 神经网络D. 关联规则答案:ABCD5. 大数据技术中,以下哪些是数据可视化的工具?A. TableauB. Power BIC. D3.jsD. QlikView答案:ABCD三、简答题(每题5分,共2题)1. 请简述大数据技术在商业智能中的应用。
答:大数据技术在商业智能中的应用主要体现在通过分析和挖掘大量数据,帮助企业发现潜在的市场趋势、顾客行为模式以及业务流程中的效率问题,从而优化决策过程,提高运营效率,增强竞争力。
2. 描述一下大数据技术在医疗健康领域的应用。
大数据考试题目及答案

大数据考试题目及答案一、单项选择题(每题2分,共20分)1. 大数据技术的核心目标是处理哪种类型的数据?A. 结构化数据B. 半结构化数据B. 非结构化数据D. 所有上述数据类型答案:D2. 在大数据分析中,以下哪个算法主要用于聚类分析?A. 决策树B. 神经网络C. K-meansD. 线性回归答案:C3. Hadoop的核心组件包括以下哪个?A. SparkB. HiveC. HBaseD. MapReduce答案:D4. 数据挖掘中的“关联规则”通常与哪位学者的名字联系在一起?A. 马斯洛B. 纳维斯C. 阿普拉姆D. 汉斯答案:B5. 大数据的“4V”特性不包括以下哪一项?A. 体量大B. 速度快C. 价值高D. 成本高答案:D6. 在大数据架构中,数据湖主要用于存储什么类型的数据?A. 仅结构化数据B. 仅非结构化数据C. 结构化和非结构化数据D. 仅半结构化数据答案:C7. 下列哪项不是大数据分析的常见应用场景?A. 市场分析B. 风险管理C. 客户细分D. 纸质文档打印答案:D8. 大数据技术可以有效地处理“数据孤岛”问题,这主要是指:A. 数据的物理隔离B. 数据的逻辑隔离C. 数据的格式不统一D. 数据的存储位置分散答案:B9. 在大数据环境下,以下哪个数据库更适合处理非关系型数据?A. MySQLB. OracleC. MongoDBD. SQL Server答案:C10. 大数据的实时分析通常依赖于哪种技术?A. 数据仓库B. 批处理C. 流处理D. 数据挖掘答案:C二、多项选择题(每题3分,共15分)11. 大数据的存储技术包括以下哪些选项?(多选)A. 云存储B. 分布式文件系统C. 关系型数据库D. NoSQL数据库答案:A B D12. 在大数据的生态系统中,以下哪些组件是常见的?(多选)A. HadoopB. SparkC. MongoDBD. Excel答案:A B C13. 大数据的分析过程通常包括哪些步骤?(多选)A. 数据采集B. 数据清洗C. 数据可视化D. 数据丢弃答案:A B C14. 以下哪些因素会影响大数据的性能?(多选)A. 数据的规模B. 数据的处理速度C. 数据的存储格式D. 数据的来源答案:A B C15. 在大数据安全领域,以下哪些措施是重要的?(多选)A. 数据加密B. 访问控制C. 数据备份D. 系统防火墙答案:A B C D三、简答题(每题10分,共20分)16. 请简述大数据的“4V”特性是什么?答案:大数据的“4V”特性指的是体量大(Volume)、速度快(Velocity)、类型多(Variety)、价值高(Value)。
大数据考试题目及答案

大数据考试题目及答案一、单选题(每题2分,共10分)1. 大数据的“4V”特征不包括以下哪一项?A. Volume(体量)B. Velocity(速度)C. Variety(多样性)D. Visualization(可视化)答案:D2. Hadoop生态系统中,用于数据存储的是以下哪个组件?A. HBaseB. HiveC. MapReduceD. YARN答案:A3. 以下哪个不是大数据技术?A. SparkB. HadoopC. MongoDBD. MySQL答案:D4. 大数据的分析处理通常不包括以下哪个阶段?A. 数据收集B. 数据清洗C. 数据存储D. 数据展示答案:D5. 下列哪个选项不是大数据应用的领域?A. 金融B. 医疗C. 教育D. 农业答案:C二、多选题(每题4分,共20分)1. 大数据技术可以应用于以下哪些行业?A. 电子商务B. 物流C. 制造业D. 教育答案:A、B、C、D2. 以下哪些是Hadoop生态系统的组成部分?A. HDFSB. MapReduceC. SparkD. HBase答案:A、B、C、D3. 大数据的分析方法包括哪些?A. 描述性分析B. 诊断性分析C. 预测性分析D. 规范性分析答案:A、B、C、D4. 大数据的挑战包括哪些?A. 数据安全B. 数据隐私C. 数据存储D. 数据处理答案:A、B、C、D5. 以下哪些是大数据分析工具?A. RB. PythonC. SASD. Excel答案:A、B、C三、判断题(每题2分,共10分)1. 大数据技术只能用于处理非结构化数据。
()答案:错误2. Hadoop可以处理PB级别的数据。
()答案:正确3. 大数据技术不需要考虑数据的实时性。
()答案:错误4. 大数据技术可以提高决策的效率和准确性。
()答案:正确5. 大数据技术无法应用于个人隐私保护。
()答案:错误四、简答题(每题10分,共20分)1. 简述大数据的“4V”特征。
大数据的考试题目和答案

大数据的考试题目和答案一、单项选择题(每题2分,共20分)1. 大数据的核心特征不包括以下哪一项?A. 体量大B. 速度快C. 价值密度高D. 多样性答案:C2. Hadoop的核心组件不包括以下哪一项?A. HDFSB. MapReduceC. HiveD. Spark答案:D3. 在大数据时代,以下哪种技术不是处理数据的关键技术?A. 数据挖掘B. 机器学习C. 云计算D. 传统数据库答案:D4. 下列哪个不是大数据应用的领域?A. 金融B. 医疗C. 教育D. 农业答案:C5. 以下哪个不是大数据的存储技术?A. NoSQL数据库B. 云存储C. 传统关系型数据库D. 分布式文件系统答案:C6. 大数据的4V特性中,哪个代表数据的准确性?A. VolumeB. VelocityC. VarietyD. Veracity答案:D7. 以下哪个不是大数据分析的步骤?A. 数据收集B. 数据清洗C. 数据存储D. 数据解释答案:D8. 以下哪个不是大数据的来源?A. 社交媒体B. 传感器数据C. 传统数据库D. 纸质文档答案:D9. 在大数据技术中,以下哪个不是数据挖掘的算法?A. 决策树B. 聚类分析C. 线性回归D. 神经网络答案:C10. 大数据的实时处理技术不包括以下哪一项?A. StormB. FlinkC. HadoopD. Spark Streaming答案:C二、多项选择题(每题3分,共15分)11. 大数据技术可以应用于以下哪些行业?A. 零售B. 交通C. 教育D. 娱乐答案:ABCD12. 大数据的挑战包括以下哪些方面?A. 数据安全B. 数据隐私C. 数据存储D. 数据分析答案:ABCD13. 以下哪些是大数据的存储解决方案?A. 数据仓库B. 数据湖C. 云存储D. 传统数据库答案:ABC14. 以下哪些是大数据处理框架?A. HadoopB. SparkC. StormD. TensorFlow答案:ABC15. 大数据的分析方法包括以下哪些?A. 描述性分析B. 诊断性分析C. 预测性分析D. 规范性分析答案:ABCD三、判断题(每题2分,共10分)16. 大数据技术只能用于处理结构化数据。
财务大数据基础技能训练参考答案完整版

项目一财务大数据认知一、单选题1. 下列哪个选项不属于大数据的特点(B)A. 海量化的数据B. 大数据都是有价值的数据C. 数据类型的多样化D. 大数据的价值密度相对较低2. 关于大数据思维下列哪个描述是错误的(D)A. 大数据时代的思维方式从样本思维转向总体思维B. 大数据思维要从精确性转向模糊性C. 大数据思维要从因果关系转向相关关系D. 大数据时代,所有数据都是结构化数据3. 关于财务大数据,下列哪个说法是错误的(D)A. 大数据时代,大量的财报报表数据由程序自动处理,工作效率大大提升B. 大数据时代,财务共享中心是未来的趋势C. 大数据能够使财务人员更精准地制定预算管理,为领导层提供决策依据D. 大数据时代,财会人员只关注自己企业的内部数据即可,不需关注行业数据4. 下列哪个选项不属于大数据处理的环节(A)A. 数据模型B. 数据预处理C. 数据分析D. 数据可视化5. 下列哪个选项可以作为大数据处理工具(B)A. GoogleB. PythonC. BaiduD. Windows二、简答题1.大数据的4个V特征分别是什么?请举例说明和解释。
大数据具有V olume、Variety、Velocity、Value四个特点,简称为“4V”。
(1)V olume:V olume是指海量化的数据。
无论是采集数据、存储数据还是数据计算,其量都非常大。
2020年全球估计有35ZB的数据量。
BA T巨头百度、阿里和腾讯,他们各自拥有的数据量也已接近EB级。
(2)Variety:Variety指的是数据类型的多样化。
根据数据的特点把大数据分为结构化数据、半结构化数据和非结构数据两种。
结构化数据是具有统一的数据结构和规范的数据访问和处理方法的数据,企业销售系统数据、客户关系管理数据、库存数据、订单数据、财务数据等都是结构化数据,这些数据多存放在关系型数据库中。
非结构化数据是指不能采用预先定义好的数据模型或者没有以一个预先定义的方式来组织的数据,常见的非结构化数据有办公文档、邮件、各类报表、图像、音频、视频信息等。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Java基础1. Which of the following will compile correctly?A) float f=10f;B) float f=10.1;C) float f=10.1f;D) byte b=10b;2. Which declarations of identifiers are legalA. $personsB. TwoUsersC. *pointD. thisE. _endline3. Which statement of assigning a long type variable to a hexadecimal value is correctA. long number = 345L;B. long number = 0345;C. long number = 0345L;D. long number = 0x345L4. Which of the following fragments might cause errorsA. String s = "Gone with the wind";String t = " good ";String k = s + t;B. String s = "Gone with the wind";String t;t = s[3] + "one";C. String s = "Gone with the wind";String standard = s.toUpperCase();D. String s = "home directory";String t = s - "directory";5. Which are syntactically valid statement at// point xclass Person {private int a;public int change(int m){ return m; }}public class Teacher extends Person {public int b;public static void main(String arg[]){Person p = new Person();Teacher t = new Teacher();int i;// point x}}A. i = m;B. i = b;C. i = p.a;D. i = p.change(30);E. i = t.b.6. Which layout manager is used when the frame is resized the buttons's position in the Frame might be changedA. BorderLayoutB. FlowLayoutC. CardLayoutD. GridLayout7. Given the following code fragment:1) public void create() {2} Vector myVect;3} myVect = new Vector();4} }Which of the following statements are trueA. The declaration on line 2 does not allocate memory space for the variable myVect.B. The declaration on line 2 allocates memory space for a reference to a Vector object.C. The statement on line 2 creates an object of class Vector.D. The statement on line 3 creates an object of class Vector.E. The statement on line 3 allocates memory space for an object of class Vector8. Which of the following answer is correct to express the value 8 in octal numberA. 010B. 0x10C. 08D. 0x89. Which are not Java keywordsA. TRUEB. sizeofC. constD. superE. void10. Which of the following statements are trueA. The equals() method determines if reference values refer to the same object.B. The == operator determines if the contents and type of two separate objects match.C. The equals() method returns true only when the contents of two objects match.D. The class File overrides equals() to return true if the contents and type of two separate objects match.11. Which statements about inheritance are trueA. In Java programming language only allows single inheritance.B. In Java programming language allows a class to implement only oneinterface.C. In Java programming language a class cannot extend a class and implementa interface together.D. In Java programming language single inheritance makes code morereliable.12.1) class Person {2} public void printValue(int i, int j) {/*…*/ }3} public void printValue(int i){/*...*/ }4} }5) public class Teacher extends Person {6} public void printValue() {/*...*/ }7} public void printValue(int i) {/*...*/}8} public static void main(String args[]){9} Person t = new Teacher();10} t.printValue(10);11} }12} }Which method will the statement on line 10 callA. on line 2B. on line 3C. on line 6D. on line 713. Which are not Java primitive typesA. shortB. BooleanC. unitD. float14、The method resume() is responsible for resuming which thread's executionA. The thread which is stopped by calling method stop()B. The thread which is stopped by calling method sleep()C. The thread which is stopped by calling method wait()\D. The thread which is stopped by calling method suspend()15. Which of the following range of int is correctA. -2^7 – 2^7-1B. 0 – 2^32-1C. -2^15 – 2^15-1D. -2^31 – 2^31-116. Which keyword should be used to enable interaction with the lock of anobject The flag allows exclusive access to that object.A. transientB. synchronizedC. serializeD. static17. Which is the return type of the method main()A. intB. voidC. booleanD. static18. Given the following code:if (x>0) { System.out.println("first"); }else if (x>-3) { System.out.println("second"); }else { System.out.println("third"); }Which range of x value would print the string "second"A. x > 0B. x > -3C. x <= -3D. x <= 0 & x > -319、Which of the following answer is correct to express the value 10 in hexadecimal numberA. 0xAB. 0x16C. 0AD. 01620. Which statements about the garbage collection are trueA. The program developer must create a thread to be responsible for freethe memory.B. The garbage collection will check for and free memory no longer needed.C. The garbage collection allow the program developer to explicity andimmediately free the memory.D. The garbage collection can free the memory used java object at expecttime.21、Given the following code:1) public class Test {2} int m, n;3} public Test() {}4} public Test(int a) { m=a; }5} public static void main(String arg[]) {6} Test t1,t2;7} int j,k;8} j=0; k=0;9} t1=new Test();10} t2=new Test(j,k);11} }12} }Which line would cause one error during compilationA. line 3B. line 5C. line 6D. line 1022、Given the uncompleted code of a class:class Person {String name, department;int age;public Person(String n){ name = n; }public Person(String n, int a){ name = n; age = a; }public Person(String n, String d, int a) {// doing the same as two arguments version of constructor// including assignment name=n,age=adepartment = d;}}Which expression can be added at the "doing the same as..." part of the constructorA. Person(n,a);B. this(Person(n,a));C. this(n,a);D. this(name,age).23、Which of the following statements about variables and their scopes are trueA. Instance variables are member variables of a class.B. Instance variables are declared with the static keyword.C. Local variables defined inside a method are created when the method is executed.D. Local variables must be initialized before they are used.24、public void test() {try { oneMethod();System.out.println("condition 1");} catch (ArrayIndexOutOfBoundsException e) {System.out.println("condition 2");} catch(Exception e) {System.out.println("condition 3");} finally {System.out.println("finally");}}Which will display if oneMethod run normallyA. condition 1B. condition 2C. condition 3D. finally25、Given the following code:public class Test {void printValue(int m){do { System.out.println("The value is"+m);}while( --m > 10 )}public static void main(String arg[]) {int i=10;Test t= new Test();t.printValue(i);}}Which will be outputA. The value is 8B. The value is 9C. The value is 10D. The value is 1126、Which of the following statements about declaration are trueA. Declaration of primitive types such as boolean, byte and so on does not allocate memory space for the variable.B. Declaration of primitive types such as boolean, byte and so on allocates memory space for the variable.C. Declaration of nonprimitive types such as String, Vector and so on does not allocate memory space for the object.D. Declaration of nonprimitive types such as String, Vector ans so on allocates memory space for the object.27、In the Java API documentation which sections are included in a class documentA. The description of the class and its purposeB. A list of methods in its super classC. A list of member variableD. The class hierarchy28、Given the following code:1) public void modify() {2) int i, j, k;3) i = 100;4) while ( i > 0 ) {5) j = i * 2;6) System.out.println (" The value of j is " + j );7) k = k + 1;8) i--;9) }10} }Which line might cause an error during compilationA. line 4B. line 6C. line 7D. line 829、Which of the following statements about variables and scope are trueA. Local variables defined inside a method are destroyed when the method is exited.B. Local variables are also called automatic variables.C. Variables defined outside a method are created when the object is constructed.D. A method parameter variable continues to exist for as long as the object is needed in which the method is defined.30、A class design requires that a member variable cannot be accessible directly outside the class. Which modifier should be used to obtain the access controlA. publicB. no modifierC. protectedD. private31、Given the following code fragment:1) String str = null;2) if ((str != null) && (str.length() > 10)) {3} System.out.println("more than 10");4} }5) else if ((str != null) & (str.length() < 5)) {6} System.out.println("less than 5");7} }8) else { System.out.println("end"); }Which line will cause errorA. line 1B. line 2C. line 5D. line 832、Which statements about Java code security are trueA. The bytecode verifier loads all classes needed for the execution of a program.B. Executing code is performed by the runtime interpreter.C. At runtime the bytecodes are loaded, checked and run in an interpreter.D. The class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources.33、Given the following code:public class Person{int arr[] = new int[10];public static void main(String a[]) {System.out.println(arr[1]);}}Which statement is correctA. When compilation some error will occur.B. It is correct when compilation but will cause error when running.C. The output is zero.D. The output is null.34、public class Parent {public int addValue( int a, int b) {int s;s = a+b;return s;}}class Child extends Parent {}Which methods can be added into class ChildA. int addValue( int a, int b ){// do something...}B. public void addValue (){// do something...}C. public int addValue( int a ){// do something...}D. public int addValue( int a, int b )throws MyException {//do something...}35、Which statements about thread are trueA. Once a thread is created, it can star running immediately.B. To use the start() method makes a thread runnable, but it does not necessarily start immediately.C. When a thread stops running because of pre-emptive, it is placed at the front end of the runnable queue.D. A thread may cease to be ready for a variety of reasons.36、A member variable defined in a class can be accessed only by the classes in the same package. Which modifier should be used to obtain the access controlA. privateB. no modifierC. publicD. protected37、A public member vairable called MAX_LENGTH which is int type, the value of the variable remains constant value 100. Use a short statement to define the variable.A. public int MAX_LENGTH=100;B. final int MAX_LENGTH=100;C. final public int MAX_LENGTH=100;D. public final int MAX_LENGTH=100.38、Which expressions are correct to declare an array of 10 String objectsA. char str[];B. char str[][];C. String str[];D. String str[10];39、Which fragments are correct in Java source fileA. package testpackage;精选文库public class Test{//do something...}B. import java.io.*;package testpackage;public class Test{// do something...}C. import java.io.*;class Person{// do something...}public class Test{// do something...}D. import java.io.*;import java.awt.*;public class Test{// do something...}40:String s= "hello";String t = "hello";char c[] = {'h','e','l','l','o'} ;Which return trueA. s.equals(t);B. t.equals(c);C. s==t;D. t.equals(new String("hello"));E. t==c.41. Which of the following statements are legalA. long l = 4990;B. int i = 4L;C. float f = 1.1;D. double d = 34.4;E. double t = 0.9F.42、public class Parent {int change() {…}}class Child extends Parent {}Which methods can be added into class ChildA. public int change(){}B. int chang(int i){}C. private int change(){}D. abstract int chang(){}精选文库43、class Parent {String one, two;public Parent(String a, String b){one = a;two = b;}public void print(){ System.out.println(one); }}public class Child extends Parent {public Child(String a, String b){super(a,b);}public void print(){System.out.println(one + " to " + two);}public static void main(String arg[]){Parent p = new Parent("south", "north");Parent t = new Child("east", "west");p.print();t.print();}}Which of the following is correctA. Cause error during compilation.B. southeastC. south to northeast to westD. south to northeastE. southeast to west44、Given the uncompleted method:1)2) { success = connect()3} if (success==-1) {4} throw new TimedOutException();5} }6}}TimedOutException is not a RuntimeException. Which can complete the method of declaration when added at line 1精选文库A. public void method()B. public void method() throws ExceptionC. public void method() throws TimedOutExceptionD. public void method() throw TimedOutExceptionE. public throw TimedOutException void method()45、Given the following code:1) class Parent {2} private String name;3} public Parent(){}4} }5) public class Child extends Parent {6} private String department;7} public Child() {}8} public String getValue(){ return name; }9) public static void main(String arg[]) {10} Parent p = new Parent();11} }12) }Which line will cause errorA. line 3B. line 6C. line 7D. line 8E. line 1046、The variable "result" is boolean. Which expressions are legalA. result = true;B. if ( result ) { // do something... }C. if ( result!= 0 ) { // so something... }D. result = 147、Class Teacher and Student are subclass of class Person.Person p;Teacher t;Student s;p, t and s are all non-null.if(t instanceof Person) { s = (Student)t; }What is the result of this sentenceA. It will construct a Student object.B. The expression is legal.C. It is illegal at compilation.D. It is legal at compilation but possible illegal at runtime.48、Given the following class:public class Sample{long length;public Sample(long l){ length = l; }public static void main(String arg[]){Sample s1, s2, s3;s1 = new Sample(21L);s2 = new Sample(21L);s3 = s2;long m = 21L;}}Which expression returns trueA. s1 == s2;B. s2 == s3;C. m == s1;D. s1.equals(m).49、Which classes can be used as the argument of the constructor of the class FilterInputStreamA. FilterOutputStreamB. FileC. InputStreamD. RandomAccessFile50、Which classes can be used as the argument of the constructor of the class FileInputStreamA. InputStreamB. FileC. FileOutputStreamD. String51、Which is not a method of the class InputStreamA. int read(byte[])B. void flush()C. void close()D. int available()52、Given the following code:class Person {String name,department;public void printValue(){System.out.println("name is "+name);System.out.println("department is "+department);}}public class Teacher extends Person {int salary;public void printValue(){// doing the same as in the parent method printValue()// including print the value of name and department.System.out.println("salary is "+salary);}}Which expression can be added at the "doing the same as..." part of the method printValue()A. printValue();B. this.printValue();C. person.printValue();D. super.printValue().53. Which of the following assignment is not correctA. float f = 11.1;B. double d = 5.3E12;C. double d = 3.14159;D. double d = 3.14D.Linux基础1. Linux文件权限一共10位长度,分成四段,第三段表示的内容是__。