SSD1模拟试卷有答案

上传人:宝路 文档编号:3029557 上传时间:2017-07-30 格式:DOC 页数:8 大小:31.50KB
返回 下载 相关 举报
SSD1模拟试卷有答案_第1页
第1页 / 共8页
SSD1模拟试卷有答案_第2页
第2页 / 共8页
SSD1模拟试卷有答案_第3页
第3页 / 共8页
SSD1模拟试卷有答案_第4页
第4页 / 共8页
SSD1模拟试卷有答案_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《SSD1模拟试卷有答案》由会员分享,可在线阅读,更多相关《SSD1模拟试卷有答案(8页珍藏版)》请在金锄头文库上搜索。

1、一. 单项选择题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 acc

2、uracy 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

3、 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 sect

4、ion 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

5、 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 meani

6、ng 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 comp

7、iler 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.

8、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? Dpublic class Hello extends Greeting(a) Greeting(b) Greeting.Hello(c) Hello.Greeting(d) Hello 10. In Java, a method with the

9、 same name as its class is known as a (a) constructor A (b) synonym(同义词) (c) default behavior(d) clone 11. Which of the following Java statements correctly declares 声明 and instantiates a Vector v? Ba) Vector v = new Vector(v); (b) Vector v = new Vector();(c) Vector v = Vector(); (d) v = new Vector()

10、; 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 belowclass MyClass int age = 19;void myMethod() int counter; A(a) age is an instance variable and counter is a local 局部 variab

11、le(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 c

12、an communicate with each other using a computer-network protocol called HTTP (Hypertext Transfer Protocol). (超文本传输协议) 万维网(或“网络” )是指部分电脑使用计算机网络协议(超文本传输协议)在互联网上相互传递信息。2. URL 的全称是什么? URL 的定义是什么?(Uniform Resource Locator )统一资源定位器3. Please describe the four phases in the process of Programming.(预处理、编译、连接

13、、执行)4. 什么是类?什么是对象 ?什么是消息?“类”就是一种类型的对象的表示形式; 消息是一个类实例和另一个类实例之间传递的信息。5. 请说明面向对象中类与类之间有几种关系?并举例说明.继承、依赖、关联、组合、聚合三. 编程题1. 分析下面的代码,写出运行结果.(1)public class Xpublic static void main(String args)String strHello = “Hello,”;String strHi = “Hi,”;Modify(s);System.out.println(s);public static void modify (string

14、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”。四. 设计题 在一个学校教职工管理系统中,需要对学校教职工(staff)进行建模。教职工信息包括教职工编号、姓名、年龄。教职工可以分为职工(worker )和教师( teacher) 。教师根据工作性质可以分为授课教师和科研教师。教职工入职时都要办理入职手续,职工根据自己的工种来工作(work) ,授课教师根据自己所学专业来授课(teaching) ,科研教师根据自己的研究方向来开展科研工作(reseach) 。1 请根据以上描述设计出类图,以显式表示出继承关系。类图中包括类名、主要的属性和主要的方法。2 试用程序实现教职工类和职工类。(方法的实现,可以利用打印语

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 中学教育 > 试题/考题

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号