交大网络教育面向对象程序设计(Java)作业二 下载本文

内容发布更新时间 : 2024/11/18 18:47:25星期一 下面是文章的全部内容请认真阅读。

In order to ensure normal teaching order, protecting students ' healthy growth, ensuring that national (property) is not lost, to prevent or minimize the occurrence of safety accidents, follow the \scue each other, ensure safety and reduce losses\nciple, according to the local conditions, make the management system. 1, the principal is the responsibility of school safety, school security under the leadership of President security work leading group. The head teacher to the leadership team is responsible for, implementation of the accountability system. 2, school monthly student knowledge about safety education, education should be diversified in the form every safety education for students of classes per week should be targeted. o carry on emergency issues dealing with education in General, self-help and mutual rescue knowledge. Emergency calls (such as 110, 119, 122, 120, and so on) use common sense in education. 3, the establishment of major accident reporting system. School students report major accident within an hour of education; student run and disappearances to report; report of the accident to a written report in triplicate, a correctional centre, a police station, a township people's Government shall not conceal the accident. 4 week, teachers are on duty system, establish and improve the leadership values; strengthen the education, management of teaching activities in schools to ensure normal teaching order; responsible for school safety leadership always maintained close contact and district police stations, canvassing support from the police station on school safety and help. 5, strengthening teachers ' moral education, establish a dedicated love, improving education quality, observe the students ' psychological changes at any time and take preventive measures, no corporal punishment and covert corporal punishment on students, student out of the classroom, schools may not be. 6, units or departments use student Street propaganda orparticipate in the celebrations, as well as participating in other social work, without approval of the Correctional Centre, school principals consent, without organization. Without the approval of relevant departments, may organize students to participate in fire fighting, disaster relief and so on. 7, schools should educate students to obey the school rules and regulations, on time, on time home to prevent accidents. 8, school to school inspections on a regular basis, found hidden in time, and in severe cases, it is hard to eliminate immediately closed, and reported to the local people's Government, education, and rule of law section. 9, the school should always check the internal walls, retaining walls, ponds, railings, handrails, doors, Windows, staircases and a variety of sports, extracurricular activities, facilities such as fire safety, infrastructure security, unsafe facility to immediately repair and demolition to ensure that teachers and students work, learn, live venues and facilities are safe and reliable. Song Lin Xiang Liu Jia ping elementary school March 2016 song Lin Xiang Liu Jia ping primary school fire safety systems to enhance fire safety, protection of public property and the life and property safety of teachers and students, school fire safety into day-to-day management, is developing the following fire safety system. 1, strengthen fire safety education of the whole school. According to the requirements of the Fire Services Act, so that everyone has of keeping fire control safety, protecting fire control facilities, fire prevention, reports of fire 1 题目1

3、下面哪种流类允许您从一个文件中读取基本数据类型的数据? 选择一项:

a. DataInputStream和FileInputStream b. FileInputStream c. FileReader d. DataInputStream

2 题目2

考虑如下代码段:

FileOutputStream fo = new FileOutputStream(“myFile.txt”); DataOutputStream do = new DataOutputStream(fo); do.writeByte(9); do.writeFloat(4.20f); do.close();

上述代码执行后,有多少字节(8位)被写入文件? 选择一项:

a. 5 b. 3 c. 10 d. 2

3 题目3

考虑如下代码段:

lectricity lines, equipment inspections, found hidden in time for rectification, maintenance, and security. 9, do not use an open flame in the classroom, prohibit burning stove, lit candles, mosquito repellent, no smoking, and banning messy wiring. Without using any household appliances is not allowed. 10, live on campus faculty members, must lead by example, and educate families and children ready to fire. 11, household use of gas in schools, to master proper usage, pay attention to the leak-proof, explosion-proof, fireproof, closing valve after use to ensure security. 12, dining room must be qualified, and annual testing of pressure vessels, to regularly check, the canteen workers must be certified, strictly by operation operation, gas tank and stove safety distance of 1.5 meters, to prevent accidents. 13, the adverse consequences caused by ignoring fire safety regulations, will be punished, until investigated for legal responsibility. Song Lin Xiang Liu Jia ping elementary school March 2016 XiangLiu Jia ping elementary school, pine slopes surrounding safety management system 1 teachers and students, the surrounding area of the school governance covers personal and food hygiene, cultural events and other aspects, integrated governance shall obtain wide support and full cooperation of the community. On the surrounding environment in schools should be closely monitored. 2, school work at the same time, should pay attention to the safety management of school environment, should take the initiative to contact the district police station, the village Committee, CorrectionalCentre, Township government, business management and other departments to do a good job management. 3, teacher on duty with the exception of inspections in schools, should also pay attention to environmental inspections near the campus, found that the jobless migrants from rural areas, for example, harassment of students and a variety of accidents, according to different situations reported schoolofficials or the police station in a timely manner, to protect the safety of students. 4, every day before school, teachers remind students, pay attention to traffic safety. 5, should educate students to respect social ethics, and various regulations, maintaining public order, and fight the bad guys, and grasp the correct ways and means of maintaining and improving students ' self-care ability. 6, the establishment of emergency rescue teams of teachers in schools, on high alert and deployed. Song Lin Xiang Liu Jia ping elementary school March 2016 song Lin Xiang Liu Jia ping primary school teachers and students organizations out of safety management system organization activities between teachers and students, to draw up a precise plan and security measures must be signed by the school officials to review the programme of activities agreed upon Correctional Center agreed to implement. Organization to the field relatively far or activities require approval by the Deputy Director of the Education Bureau in charge of security. 2, each activity should have a specific responsibility, pay attention to the persons age, physical match. Route 3, activities, location, field surveys should be carried out in advance. 4, activities for the means of transport should explain the situation to the school to comply with vehicle, safety requirements, before the line for repairs. 5, each activity must have security, emergency response plan for accidents. 6, picnics, hiking, picnic to pay attention to fire prevention, food poisoning, prevention of fall accidents 7, the activities near the rivers, reservoirs, no measures or do not meet the security requirements of the Organization and not let students into the waterIn order to ensure normal teaching order, protecting students ' healthy growth, ensuring that national (property) is not lost, to prevent or minimize the occurrence of safety accidents, follow the \scue each other, ensure safety and reduce losses\nciple, according to the local conditions, make the management system. 1, the principal is the responsibility of school safety, school security under the leadership of President security work leading group. The head teacher to the leadership team is responsible for, implemntation of the accountability system. 2, school monthly student knowledge about safety education, education should be diversified in the form every safety education for students of classes per week should be targeted. o carry on emergency issues dealing with education in General, self-help and mutual rescue knowledge. Emergency calls (such as 110, 119, 122, 120, and so on) use common sense in education. 3, the establishment of major accident reporting system. School students report major accident within an hour of education; student run and disappearances to report; report of the accident to a written report in triplicate, a correctional centre, a police station, a township people's Government shall not conceal the accident. 4 week, teachers are on duty system, establish and improve the leadership values; strengthen the education, management of teaching activities in schools to ensure normal teaching order; responsible for school safety leadership always maintained close contact and district police stations, canvassing support from the police station on school safety and help. 5, strengthening teachers ' moral education, establish a dedicated love, improving education quality, observe the students ' psychological changes at any time and take preventive measures, no corporal punishment and covert corporal punishment on students, student out of the classroom, schools may not be. 6, units or departments use student Street propaganda orparticipate in the celebrations, as well as participating in other social work, without approval of the Correctional Centre, school principals consent, without organization. Without the approval of relevant departments, may organize students to participate in fire fighting, disaster relief and so on. 7, schools should educate students to obey the school rules and regulations, on time, on time home to prevent accidents. 8, school to school inspections on a regular basis, found hidden in time, and in severe cases, it is hard to eliminate immediately closed, and reported to the local people's Government, education, and rule of law section. 9, the school should always check the internal walls, retaining walls, ponds, railings, handrails, doors, Windows, staircases and a variety of sports, extracurricular activities, facilities such as fire safety, infrastructure security, unsafe facility to immediately repair and demolition to ensure that teachers and students work, learn, live venues and facilities are safe and reliable. Song Lin Xiang Liu Jia ping elementary school March 2016 song Lin Xiang Liu Jia ping primary school fire safety systems to enhance fire safety, protection of public property and the life and property safety of teachers and students, school fire safety into day-to-day management, is developing the following fire safety system. 1, strengthen fire safety education of the whole school. According to the requirements of the Fire Services Act, so that everyone has of keeping fire control safety, protecting fire control facilities, fire prevention, reports of fire 1. ArrayList list = new ArrayList(); 2. list.Add(new ObjectOne()); 3. list.Add(new ObjectOne()); 4. list.Add(new ObjectOne()); 5. Collections.sort(list); 6. class ObjectOne { 7. private int x = 0; 8. private int y = 0; 9. }

该代码段的输出为: 选择一项:

A. 运行时第3行出错 B. 运行时第5行出错 C. 编译时第3行出错 D. 编译时第5行报错

4 题目4

下列说法中错误的是 选择一项:

A. FileInputStream类和FileOutputStream类可用于读取文本文件

B. FileInputStream类和FileOutputStream类均可用于处理16位Unicode字符的输入输出 C. FileInputStream类和FileOutputStream类可用于读取图像文件

D. Reader类和Writer类及其派生类都可用于16位Unicode字符的输入输出

5 题目5

lectricity lines, equipment inspections, found hidden in time for rectification, maintenance, and security. 9, do not use an open flame in the classroom, prohibit burning stove, lit candles, mosquito repellent, no smoking, and banning messy wiring. Without using any household appliances is not allowed. 10, live on campus faculty members, must lead by example, and educate families and children ready to fire. 11, household use of gas in schools, to master proper usage, pay attention to the leak-proof, explosion-proof, fireproof, closing valve after use to ensure security. 12, dining room must be qualified, and annual testing of pressure vessels, to regularly check, the canteen workers must be certified, strictly by operation operation, gas tank and stove safety distance of 1.5 meters, to prevent accidents. 13, the adverse consequences caused by ignoring fire safety regulations, will be punished, until investigated for legal responsibility. Song Lin Xiang Liu Jia ping elementary school March 2016 XiangLiu Jia ping elementary school, pine slopes surrounding safety management system 1 teachers and students, the surrounding area of the school governance covers personal and food hygiene, cultural events and other aspects, integrated governance shall obtain wide support and full cooperation of the community. On the surrounding environment in schools should be closely monitored. 2, school work at the same time, should pay attention to the safety management of school environment, should take the initiative to contact the district police station, the village Committee, Correctional Centre, Township government, business management and other departments to do a good job management. 3, teacher on duty with the exception of inspections in schools, should also pay attention to environmental inspections near the campus, found that the jobless migrants from rural areas, for example, harassment of students and a variety of accidents, according to different situations reported schoolofficials or the police station in a timely manner, to protect the safety of students. 4, every day before school, teachers remind students, pay attention to traffic safety. 5, should educate students to respect social ethics, and various regulations, maintaining public order, and fight the bad guys, and grasp the correct ways and means of maintaining and improving students ' self-care ability. 6, the establishment of emergency rescue teams of teachers in schools, on high alert and deployed. Song Lin Xiang Liu Jia ping elementary school March 2016 song Lin Xiang Liu Jia ping primary school teachers and students organizations out of safety management system organization activities between teachers and students, to draw up a precise plan and security measures must be signed by the school officials to review the programme of activities agreed upon Correctional Center agreed to implement. Organization to the field relatively far or activities require approval by the Deputy Director of the Education Bureau in charge of security. 2, each activity should have a specific responsibility, pay attention to the persons age, physical match. Route 3, activities, location, field surveys should be carried out in advance. 4, activities for the means of transport should explain the situation to the school to comply with vehicle, safety requirements, before the line for repairs. 5, each activity must have security, emergency response plan for accidents. 6, picnics, hiking, picnic to pay attention to fire prevention, food poisoning, prevention of fall accidents 7, the activities near the rivers, reservoirs, no measures or do not meet the security requirements of the Organization and not let students into the waterIn order to ensure normal teaching order, protecting students ' healthy growth, ensuring that national (property) is not lost, to prevent or minimize the occurrence of safety accidents, follow the \scue each other, ensure safety and reduce losses\nciple, according to the local conditions, make the management system. 1, the principal is the responsibility of school safety, school security under the leadership of President security work leading group. The head teacher to the leadership team is responsible for, implementation of the accountability system. 2, school monthly student knowledge about safety education, education should be diversified in the form every safety education for students of classes per week should be targeted. o carry on emergency issues dealing with education in General, self-help and mutual rescue knowledge. Emergency calls (such as 110, 119, 122, 120, and so on) use common sense in education. 3, the establishment of major accident reporting system. School students report major accident within an hour of education; student run and disappearances to report; report of the accident to a written report in triplicate, a correctional centre, a police station, a township people's Government shall not conceal the accident. 4 week, teachers are on duty system, establish and improve the leadership values; strengthen the education, management of teaching activities in schools to ensure normal teaching order; responsible for school safety leadership always maintained close contact and district police stations, canvassing support from the police station on school safety and help. 5, strengthening teachers ' moral education, establish a dedicated love, improving education quality, observe the students ' psychological changes at any time and take preventive measures, no corporal punishment and covert corporal punishment on students, student out of the classroom, schools may not be. 6, units or departments use student Street propaganda orparticipate in the celebrations, as well as participating in other social work, without approval of the Correctional Centre, school principals consent, without organization. Without the approval of relevant departments, may organize students to participate in fire fighting, disaster relief and so on. 7, schools should educate students to obey the school rules and regulations, on time, on time home to prevent accidents. 8, school to school inspections on a regular basis, found hidden in time, and in severe cases, it is hard to eliminate immediately closed, and reported to the local people's Government, education, and rule of law section. 9, the school should always check the internal walls, retaining walls, ponds, railings, handrails, doors, Windows, staircases and a variety of sports, extracurricular activities, facilities such as fire safety, infrastructure security, unsafe facility to immediately repair and demolition to ensure that teachers and students work, learn, live venues and facilities are safe and reliable. Song Lin Xiang Liu Jia ping elementary school March 2016 song Lin Xiang Liu Jia ping primary school fire safety systems to enhance fire safety, protection of public property and the life and property safety of teachers and students, school fire safety into day-to-day management, is developing the following fire safety system. 1, strengthen fire safety education of the whole school. According to the requirements of the Fire Services Act, so that everyone has of keeping fire control safety, protecting fire control facilities, fire prevention, reports of fire 下列集合类中哪种可用于存储“key-value”对且是线程安全的? 选择一项:

A. HashTable B. TreeMap C. Vector D. HashMap

6 题目6

下列代码的运行结果为(A)

FileOutputStream out = new FileOutputStream(“objectStore.ser”); ObjectOutputStream os = new ObjectOutputStream(out); os.writeObject(“Object on the fly!”); 选择一项:

A. 第2行将出现一个异常 B. 第3行导致编译错误

C. 代码可以编译通过,但在运行时第3行将抛出一个异常 D. 字符串“Object on the fly!”被写入文件objectStore.ser

7 题目7

考虑如下代码段:

ArrayList list = new ArrayList(); list.add(new Integer(1)); list.add(new Integer(2)); list.add(new Integer(3));

Iterator itr = list.iterator();

lectricity lines, equipment inspections, found hidden in time for rectification, maintenance, and security. 9, do not use an open flame in the classroom, prohibit burning stove, lit candles, mosquito repellent, no smoking, and banning messy wiring. Without using any household appliances is not allowed. 10, live on campus faculty members, must lead by example, and educate families and children ready to fire. 11, household use of gas in schools, to master proper usage, pay attention to the leak-proof, explosion-proof, fireproof, closing valve after use to ensure security. 12, dining room must be qualified, and annual testing of pressure vessels, to regularly check, the canteen workers must be certified, strictly by operation operation, gas tank and stove safety distance of 1.5 meters, to prevent accidents. 13, the adverse consequences caused by ignoring fire safety regulations, will be punished, until investigated for legal responsibility. Song Lin Xiang Liu Jia ping elementary school March 2016 XiangLiu Jia ping elementary school, pine slopes surrounding safety management system 1 teachers and students, the surrounding area of the school governance covers personal and food hygiene, cultural events and other aspects, integrated governance shall obtain wide support and full cooperation of the community. On the surrounding environment in schools should be closely monitored. 2, school work at the same time, should pay attention to the safety management of school environment, should take the initiative to contact the district police station, the village Committee, Correctional Centre, Township government, business management and other departments to do a good job management. 3, teacher on duty with the exception of inspections in schools, should also pay attention to environmental inspections near the campus, found that the jobless migrants from rural areas, for example, harassment of students and a variety of accidents, according to different situations reported schoolofficials or the police station in a timely manner, to protect the safety of students. 4, every day before school, teachers remind students, pay attention to traffic safety. 5, should educate students to respect social ethics, and various regulations, maintaining public order, and fight the bad guys, and grasp the correct ways and means of maintaining and improving students ' self-care ability. 6, the establishment of emergency rescue teams of teachers in schools, on high alert and deployed. Song Lin Xiang Liu Jia ping elementary school March 2016 song Lin Xiang Liu Jia ping primary school teachers and students organizations out of safety management system organization activities between teachers and students, to draw up a precise plan and security measures must be signed by the school officials to review the programme of activities agreed upon Correctional Center agreed to implement. Organization to the field relatively far or activities require approval by the Deputy Director of the Education Bureau in charge of security. 2, each activity should have a specific responsibility, pay attention to the persons age, physical match. Route 3, activities, location, field surveys should be carried out in advance. 4, activities for the means of transport should explain the situation to the school to comply with vehicle, safety requirements, before the line for repairs. 5, each activity must have security, emergency response plan for accidents. 6, picnics, hiking, picnic to pay attention to fire prevention, food poisoning, prevention of fall accidents 7, the activities near the rivers, reservoirs, no measures or do not meet the security requirements of the Organization and not let students into the water