




已阅读5页,还剩8页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
一. 单项选择题1. The term Web server refers to a b(a) person who collects and manipulates Web pages (b) program that provides information requested by a Web client (c) special computer used to run powerful Web browsers (d) Web browser used on a client computer 2. Which of the following is true about the accuracy of information on the Web? a(a) Information on the Web might not be accurate.(b) Web organizations ensure that information on the Web is accurate. (c) Web server programs ensure that information on the Web is accurate. (d) Web administrators ensure that information on the Web is accurate. 3. The tag is used to d (a) prefix every line of the enclosed text with its line number (b) instruct the browser to ignore line feeds in the enclosed text(c) instruct the browser to ignore the space in the enclosed text (d) enclose preformatted text 格式化文本 4. Which of the following HTML hyperlinks references a section of the same page in which the hyperlink appears? a (a) Scroll down 返回底部的标签 (b) Scroll down (c) Scroll down(d) Scroll down 5. What is the conceptual difference between logical and physical styles? d 明确(a) Logical styles are intended to specify the look of content, whereas physical styles are used to specify the meaning of content. (b) Logical styles are intended to be used for text, whereas physical styles are intended to be used for graphics. (c) Logical styles are intended to be used for graphics, whereas physical styles are intended to be used for text. (d) Logical styles are intended to specify the meaning of content, whereas physical styles are used to specify the look of content. 6. The series of interactions a user has with a Web server to carry out a task is known as a d (a) request (b) response (c) transaction (d) session 7. In Java programming, a programmer creates _ files, and then a compiler translates them to _ files. c (a) HTML, byte code (b) source, HTML (c) source, byte code (d) byte code, source 8. Upon compilation, the source code of a Java class MyClass will be stored in the file _, and the corresponding byte code will be stored in the file _. d (a) MyClass.class, MyClass.exe (b) MyClass.java, MyClass.exe (c) MyClass.class, MyClass.java (d) MyClass.java, MyClass.class9. What is the name of the class whose definition is begun by the following line?d public class Hello extends Greeting (a) Greeting (b) Greeting.Hello (c) Hello.Greeting (d) Hello 10. In Java, a method with the same name as its class is known as a a (a) constructor 构造函数 (b) synonym (c) default behavior (d) clone 11. Which of the following Java statements correctly declares and instantiates a Vector v? b (a) Vector v = new Vector(v); (b) Vector v = new Vector(); (c) Vector v = Vector(); (d) v = new Vector(); 12. Which of the following kinds of relationships between classes does inheritance (继承)describe? b (a) uses-a(b) is-a-kind-of(c) has-a(d) produces-a 13. In the class defined belowaclass MyClass int age = 19; void myMethod() int counter; (a) age is an instance variable(全局变量) and counter is a local variable(局部变量) (b) age is a local variable and counter is an instance variable (c) both age and counter are instance variables (d) both age and counter are local variables 二. 简答题.1. What is the World Wide Web?The World Wide Web (or the Web for short) refers to that portion of the computers on the Internet that can communicate with each other using a computer-network protocol called HTTP (Hypertext Transfer Protocol). 万维网是指互联网上的电脑通过使用HTTP协议来互相进行访问2. URL的全称是什么? URL的定义是什么?统一资源定位器(URL,英语Uniform Resource Locator的缩写)URL是Internet上用来描述信息资源的字符串,是指我们所需获取资源的网络地址。具体格式有三个部分:第一部分是协议(或称为服务方式); 第二部分是存有该资源的主机IP地址(有时也包括端口号); 第三部分是主机资源的具体地址;第一部分和第二部分之间用“:/”符号隔开,第二部分和第三部分用“/”符号隔开。第一部分和第二部分是不可缺少的,第三部分有时可以省略。 3. Please describe the four phases in the process of Programming.1. Defining Webpage content2. Planing the look of the page and the needed links;3. Implementing the webpage by writing it increamentally in small steps;4. Evaluating the webpage in two ways:testing to see if the HTML is correct and looking to see if it meets if it meets the spec.4. 什么是类?什么是对象?什么是消息?类是定义同一类所有对象的变量和方法的蓝图或原型对象就是类的一个实例,具有数据域和成员函数消息就是向对象发出服务请求,是对数据成员和成员方法的引用5. 请说明面向对象中类与类之间有几种关系?并举例说明.1.继承关系2.实现关系3.依赖关系4.关联关系5.聚合关系6.组合关系三. 编程题1. 分析下面的代码,写出运行结果.(题目有错) (1) public class X public static void main(String args) String strHello = “Hello,”; String strHi = “Hi,”; Modify(s); System.out.println(s); public static void modify (string s) s += ”Welcome to CSU!”; (2) int i = 1, sum = 0; while (i 3) int j = 0; while ( j 2) sum = sum + j; j = j + 1; i = i + 1;System.out.println(“count after loop = ” + count);2. 编写Java代码, 完成以下功能.假定goals和errors都是类型为int的变量。编写一个if-else语句,要求在goals小于10且errors为0的条件下输出“Wow”,否则输出“Oh Well”。if(goals10 & errors=0)System.out.println(Wow);elseSystem.out.println(Oh Well);四. 设计题 1. 使用HTML语言编写HTML文档,使得通过WWW浏览器显示如下图所示的效果。要求包括和,采用有序列表(Ordered List)标签。中南大学软件学院设有如下专业:软件工程专业数字艺术专业嵌入式专业中南大学网址链接,请点击这里!2. 在一个学校教职工管理系统中,需要对学校教职工(staff)进行建模。教职工信息包括教职工编号、姓名、年龄。教职工可以分为职工(worker)和教师(teacher)。教师根据工作性质可以分为授课教师和科研教师。教职工入职时都要办理入职手续,职工根据自己的工种来工作(work),授课教师根据自己所学专业来授课(teaching),科研教师根据自己的研究方向来开展科研工作(reseach)。(1)请根据以上描述设计出类图,以显式表示出继承关系。类图中包括类名、主要的属性和主要的方法。(2)试用程序实现教职工类和职工类。(方法的实现,可以利用打印语句来简单模拟实现。如:System.out.println(“work!”).)(3)思考:如果在这个系统中,需要建立学校(school)这个类,那么学校和教职工这两个类之间是什么关系?聚合关系-No:int-name:String-age:intStaff+setNo(int value):void+setName(String value):void+setAge(int value):void+getNo():int+getName():String+getAge():int+setJob(String value):void+getJob():String+work():void-job:StringWorkerTeacher-teachingWork:String+setTeachingWork(String value):void+getTeachingWork():StingReseachingTeacherTeachingTeacher-reseachingWork:Sting-TeachingCourse:S
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2人小公司管理制度
- 4人小公司管理制度
- 柴油管道安全管理制度
- 标杆地产公司管理制度
- 校内活动安全管理制度
- 校园保安应急管理制度
- 校园周边摊贩管理制度
- 校园室外电线管理制度
- 校园文明建设管理制度
- 校园精准扶贫管理制度
- 乳制品行业的跨界合作与创新
- 人工智能概论课件完整版
- 比较文学课件:流传学
- 2025年高考地理一轮复习备考策略
- 电脑租合同模板
- 税收筹划:理论、实务与案例(第4版)+蔡昌+课后习题及答案汇 第1-12章 税收筹划的基本理论 - 跨国经营的税收筹划
- 2024年中国南水北调集团水网智慧科技限公司秋季公开招聘高频难、易错点500题模拟试题附带答案详解
- ISO45001职业健康管理体系培训课件
- 化学物质的性质与变化考核试卷
- 02S515排水检查井图集
- 四川省南充市2024-2025学年高二数学下学期期末考试试题理
评论
0/150
提交评论