《JAVA程序设计》模拟题 A
一.判断题
1.Java源代码中定义几个类,编译结果就生成几个以.class为后缀的字节码文件。
(√)
2.注释的作用是使程序在执行时在屏幕上显示//之后的内容。()
3.有的类定义时可以不定义构造函数,所以构造函数不是必需的。()
4.由继承性可知,程序中子类拥有的成员数目一定大于等于父类拥有的成员数目。
()
5.抽象方法必须在抽象类中,所以抽象类中的方法都必须是抽象方法
()
6.java异常处理中可以使用多个catch子句,此时应将高级别异常类的catch子句放在
前面。(√)7.Java语言中的数组元素下标总是从0开始,下标可以是整数或整型表达式。
(√)
8.Applet是一种特殊的Panel,它是Java Applet程序的最外层容器。(√)
9.在Java中对象可以赋值,只要使用赋值号(等号)即可,相当于生成了一个属性与赋
值对象相同的新对象。()10.System类不能实例化,即不能创建System类的对象。
(√)
11.一个线程对象的具体操作是由run()方法的内容确定的,但是Thread类的run()方法是
空的,其中没有内容;所以用户程序要么派生一个Thread的子类并在子类里重新定义run()方法,要么使一个类实现Runnable接口并书写其中run()方法的方法体。(√)12.接口是特殊的类,所以接口也可以继承,子接口将继承父接口的所有常量和抽象方
法。()
13.静态初始化器是在其所属的类加载内存时由系统自动调用执行。(√)
14.如果p是父类Parent的对象,而c是子类Child的对象,则语句p=c是正确的。(√)
15.所有的鼠标事件都由MouseListener监听接口的监听者来处理(√)
二.单项选择题
1.在编写Java Applet程序时,若需要对发生的事件作出响应和处理,一般需要在程序的开头写上( D )语句。
A、import java.awt.* ;
B、import java.applet.* ;
C、import java.io.* ;
D、import java.awt.event.* ;
2. 关于被私有保护访问控制符private protected修饰的成员变量,以下说法正确的是( c )
A、可以被三种类所引用:该类自身、与它在同一个包中的其他类、在其他包中的该类的子类
B、可以被两种类访问和引用:该类本身、该类的所有子类
C、只能被该类自身所访问和修改
D、只能被同一个包中的类访问
3. Java application中的主类需包含main方法,main方法的返回类型是什么?( d )
A、int
B、float
C、double
D、void
4. 设有下面两个类的定义:
class Person { class Student extends Person { long id; // 身份证号 int score; // 入学总分
String name; // 姓名 int getScore(){
} return score;
}
}
则类Person和类Student的关系是( b )。
A、包含关系
B、继承关系
C、关联关系
D、上述类定义有语法错误
5 . 容器Panel和Applet缺省使用的布局编辑策略是( c )
A、FlowLayout
B、BorderLayout
C、GridLayout
D、CardLayout
6. 执行完以下代码int [ ] x = new int[25];后,以下哪项说明是正确的
( a )
A、x[24]为0
B、x[24]未定义
C、x[25]为0
D、x[0]为空
7. 编译并运行以下程序,以下描述哪个选项是正确的( a )
1. class X{
2. protected String toString(){
3. return super.toString();}
4. }
A、编译通过运行无异常
B、编译通过但运行时出错、
C、行2出错,不能成功编译
D、不能成功编译,行3出错
8. 以下哪个不是Java的关键字?( a )
A、FALSE
B、const
C、this
D、void
9. 有程序如下,关于程序的描述哪个是正确的?( c )
public class Person{
static int arr[] = new int[10];
public static void main(String a[])
{ System.out.println(arr[0]); }
}
A、编译将产生错误
B、编译时正确,但运行时将产生错误
C、正确,输出0
D、正确,输出null
10. 以下声明合法的是( b )
A、default String s;
B、public final static native int w( )
C、abstract double d;
D、abstract final double hyperbolicCosine( )
11. 关于以下application的说明,正确的是( c )
1. class StaticStuff
2. {
3. static int x=10;
4. static { x+=5;}
5. public static void main(String args[ ]){
6. System.out.println(“x=” + x);
7. }
8. static { x/=3;}
9. }
A、4行与8行不能通过编译,因为缺少方法名和返回类型
B、8行不能通过编译,因为只能有一个静态初始化器
C、编译通过,执行结果为:x=5
D、编译通过,执行结果为:x=3
12. 在使用interface声明一个接口时,只可以使用( a )修饰符修饰该接口。
A、public
B、protected
C、private protected
D、private
13. 关于以下程序代码的说明正确的是( d )
class HasStatic{
private static int x=100;
public static void main(String args[ ]){
HasStatic hs1=new HasStatic( );
hs1.x++;
HasStatic hs2=new HasStatic( );
hs2.x++;
hs1=new HasStatic( );
hs1.x++;
HasStatic.x- -;
System.out.println(“x=”+x);
}
}
A、5行不能通过编译,因为引用了私有静态变量
B、10行不能通过编译,因为x是私有静态变量
C、程序通过编译,输出结果为:x=103
D、程序通过编译,输出结果为:x=102
14. 关于以下程序段,正确的说法是( c )
1. String s1=”abc”+”def”;
2. String s2=new String(s1);
3. if(s1= =s2)
4. System.out.println(“= = succeeded”);
5. if (s1.equals(s2))
6. System.out.println(“.equals() succeeded”);
A、行4与行6都将执行
B、行4执行,行6不执行
C、行6执行,行4不执行C、行4、行6都不执行
15. 以下说法哪项是正确的( a )
class MyListener
extends MouseAdapter implements MouseListener{
public void mouseEntered(MouseEvent mev){
System.out.println("Mouse entered."); }
}
A、以上代码可通过编译
B、不能通过编译,因为没有实现MouseListener接口中的所有方法
C、不能通过编译,因为类头定义不能分行
D、能通过编译,若组件用该类作为Mouse的监听者并且接收了mouse-exited事件,则在执行过程中会抛出异常
三.程序阅读题
1.阅读以下程序:
import java.io.*;
public class AboutFile{
public static void main(String[ ] args){
BufferedReader b=new BufferedReader (new InputStreamReader(System.in));
String s;
System.out.flush();
s=b.readLine();
System.out.println(“String is:”+s);
}
}
运行以上程序,若从键盘输入:
JAVA<回车>
则输出结果为________String is:JAVA____________。
2.阅读以下程序,输出结果为_______________ 1 2 3___________________。
class C1 {
C1 () {
System.out.print ("1 "); }
}
class C2 extends C1 {
C2() {
System.out.print ("2 "); }
}
public class C3 extends C2 {
C 3() {
System.out.println("3 "); }
public static void main(String[] args) {
C3 c = new C3( ); }
}
3.阅读以下程序,输出结果为______________3____________________。
import java.io.*;
public class ATest{
public static void main(String args[]) {
SubClass sb = new SubClass( );
System.out.println(sb.add( ));
} }
class SuperClass{
int a = 1 , b = 2 ;
}
class SubClass extends SuperClass{
int add( ) { return a+b; }
}
4.以下程序段的输出结果为____ Value is two_value is 2_____________________。
int j=2;
switch ( j ) {
case 2:
System.out.print(“Value is two.”);
case 2+1 :
System.out.println(“Value is three.”);
break;
default:
System.out.println(“value is “+j);
break;
}
5.阅读以下程序:
class AExample{
public static void main(String[ ] args){
String s, s1=””;
char c;
s=args[0];
for( int i=0; i c=s.charAt(i); if(c>=’a’&&c<=’z’) s1=s1+Character.toUpperCase(c); if(c>=’A’&&c<=’Z’) s1=s1+Character.toLowerCase(c); } System.out.println(s1); } 若在命令行输入以下命令: java AExample helloWORLD<回车> 则程序的输出为__________________________________。 6.阅读以下程序段: class Parent { void printMe() { System.out.println(“parent”); } } class Child extends Parent { void printMe() { System.out.println(“child”); } void printAll() { super.printMe(); this.printMe(); printMe(); } } public class Test_this { public static void main(String args[ ]) { Child myC=new Child(); myC.printAll();} } 输出结果为: 7.以下程序段的输出结果为__________________________________。 public class ABC { public static void main(String args[ ]){ int i , j ; int a[ ] = { 2,1,3,5,4}; for ( i = 0 ; i < a.length-1; i ++ ) { int k = i; for ( j = i ; j < a.length ; j++ ) 当点击Query按钮时,将调用此servlet。此servlet类中哪个方法将被执行?( c ) A、service() 和doGet() 方法将被调用 B、只有doGet()被调用 C、doPost() D、只有service()方法将被调用,因该方法的名未被提及。 23.已知如下代码: 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:} } 哪句语句会导致错误?( d ) A、line 3 B、line 6 C、line 14 D、line 15 24.当第二次执行此servlet 时,它的输出将是什么?( c ) import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; public class hitcountServlet extends HttpServlet{ static int count=0; public void init(ServletConfig config) throws ServletException { super.init(config); } protected void service(HttpServletRequest req,HttpServletResponse resp) throws ServletException, IOException{ count++; PrintWriter out=resp.getWriter(); out.println(String.valueOf(count)); } public String getServletInfo(){ return "BasicServlet Information"; } public void destroy(){ count=0; }} A、2 B、0 C、1 D、4 25.为表示描绘动画的文件列表,开发者正在编写一个带索引属性的bean 类。开发者允许用户用文本编辑器来读入和改变其属性。应做什么呢?( b ) A、应重设getAsText()方法。 B、应重设getAsText() 和setAsText()方法。 C、应编写accessor 和 mutator方法。 D、应重设setTags() 和 getTags()方法。 26.请问如下哪个方法可以将MenuBar加入Frame中?(b) A、setMenu() B、setMenuBar() C、add() D、addMenuBar() 27.陈述 A: 服务器创建了一个 cookie,并发送给客户。客户把此cookie 保存在本地硬盘中。 陈述 B: 当服务器需要时,客户通过HTTPServletRequest 对象发送cookie 给服务器。 关于陈述A 和B,以下中哪个为真?( c ) A、陈述A为假,陈述 B为真。 B、陈述A为真,陈述 B为假。 C、这二个陈述都为真。 D、这二个陈述都为假。 28.下面的语句的作用是:( d ) Vector MyVector = new Vector(100,50); A、创建一个数组类对象MyVector,有100个元素的空间,每个元素的初值为50。 B、创建一个向量类对象MyVector,有100个元素的空间,每个元素的初值为50。 C、创建一个数组类对象MyVector,有100个元素的空间,若空间使用完时,以50个元素空间单位递增 D、创建一个向量类对象MyVector,有100个元素的空间,若空间使用完时,以50个元素空间单位递增。 29.关于 JavaBean的以下陈述中哪个为真?( c ) A、可在目标平台上修改JavaBean 的源代码。 B、可在目标平台上重编译bean 的 jar文件。 C、执行嵌入在Forte for Java 的bean 的jar 文件所得到的输出与IBM Visual Age IDE 的输出是一样的。 D、可在目标应用中修改JavaBean 的视感。 30.为说明包含bean 构件,把哪个语句加入到JSP页面?( a ) A、 B、 C、 D、 二、填空题 1. 对于java入口程序public static void main()方法,public,static和void定义的意义分别是什么?(为什么要定义成public static void 形式) Public:__________公有方法,可被类外部调用 Static:_________静态方法,可不实例化而被类直接调用 Void:___________无返回值_____________ 2. 数组x定义如下: int x[ ][ ]=new int[3][2] 则 x.length 的值为_______3_____, x[0].length 的值为______2______。 3. 创建类的对象时,使用关键字______new_____给对象分配内存空间。 4. 定义类的构造方法不能有返回值类型,其名称与____类______名相同。 5. 应用程序的main方法中有以下语句,则输出的结果是 ___sum=28_________。 int b[][]={{1, 2, 3}, {4,5}, {6,7}}; int sum=0; for(int i=0;i for(int j=0;j sum+=b[i][j]; } } System.out.println("sum="+sum); 参考答案: 答:1、只有公有的方法才能被访问或调用; 只有静态的方法才能够直接调用; 由于是公共调用的入口方法,无法确认返回值类型。 2、 3; 2。 3、new 4、类 5.28 《JAVA程序设计》模拟题 C 一.判断题 1、Boolen变量值可以是0或1 ( × ) 2、在Java中,整型的大小是不固定的。一些编译器使用2字节的整型,而其它编译器则使 用4字节 ( × ) 3、运算符 ++ 的优先级高于运算符 + ( √ ) 4、将Short值赋给Long值是允许的 ( √ ) 5、Java中的每个类都至少有一个构造器 ( √ ) 6、静态方法可作用于类变量和实例变量 ( × ) 7、在同一类中可以有具有以下声明的两个方法: void method1(int j,int k)和int method2(int k,int j) ( √ ) 8、一个类的子类可以是某些其它类的超类 ( √ ) 9、当超类引用变量指定为对子类的引用时,只能访问超类中定义的成员 ( × ) 10、一个类可以拥有任何数量的超类和子类 ( √ ) 二.单项选择题 1. 哪种语言是以对象为特征的开发可视化程序组件的语言?( b ) A. 过程化语言 B. 面向对象的语言 C. 机器语言 D. 以上都不是 2. 以下哪个选项使Java得以在因特网上流行?( a ) A. Java Applet B. Java应用程序 C. Java字节码 3) 所有Java应用程序必须包含下面哪个方法才能独立运行?( d ) A. Start() B. Begin() C. Method() D. Main() 4) 执行编译好的Java程序的命令是( b ) A. javac B. java C. run D. ececute 5) 可以将以下哪个值赋给类型char的变量?( c ) (1).’A’ (2).9 (3).12.3 (4).”hello” A. (1)和(2) B. (1)、(2)和(3) C. (1) D. (2) 6.Java中的子类也称为( c ) A. 内联类 B. 嵌套类 C. 派生类 D. 隐藏类 7.以下哪个是关于Java的正确说法( d ) A. 不具有编译器 B. 不具有解释程序 C. 不具有编译器和解释程序 D. 具有字节码阅读器 8.运算符“|”是( a ) A. 位运算符 B. 逻辑运算符 C. 这种运算符不存在 9. 使用以下哪些修饰符进行修饰时,子类不可访问其变量?( b ) A. Protected B. Private C. 以上两者都是 D. 以上都不是 10. 以下关于抽象方法的说法哪些是错误的?( d ) A. 可以直接访问它们而无需创建包含他们的类对象。 B. 它们的实现是不提供的。 C. 它们的实现是由其子类提供的。 D. 抽象方法永远不会被调用。 11.引用抽象类的引用变量可以初始化为( b ) A. 抽象类的对象 B. 抽象类子类的对象 C. 以上两者都是 D. 以上都不是 12. 以下关于接口的说法哪些是错误的?( c ) A. 创建接口层次结构是可能的。 B. 接口类型变量可用于应用实现它的类对象。 C. 接口可被实例化。 D. 声明抽象方法的接口无需在其声明中具有abstract修饰符。 13.假定没有任何修饰符指定其访问的类拥有以下哪种访问级别?( c ) A. Public B. Protected C. Package D. Private 14. 可在方法的作用域中抛掷的异常是:( c ) A. 使用Java的throw语句的方法直接抛掷的异常 B. 被方法通过调用其他方法抛掷的异常 C. 上面的a和b D. 以上都不是 15. 如果我们假定throw object;但该参数不是Throwable对象,则会发生什么?( c ) A. 什么也不发生,该参数也将时有效的 B. 该参数将转换成Throwable对象,然后执行该语句 C. 编译器将指出错误 D. 这本身将产生异常 16.何时抛掷Error异常?( a ) A. 当发生动态链接失败或JVM本身发生某些知命错误时 B. 当OS中的中断处理程序不处理生成的中断时 C. 当运行时异常系统无法处理它时 D. 以上都是 17.以下程序测试String 类的各种构造方法,试选出其运行效果。( a ) class STR{ public static void main(String args[]){ String s1=new String(); String s2=new String("String 2"); char chars[]={'a',' ','s','t','r','i','n','g'}; String s3=new String(chars); String s4=new String(chars,2,6); byte bytes[]={0,1,2,3,4,5,6,7,8,9}; StringBuffer sb=new StringBuffer(s3); String s5=new String(sb); System.out.println("The String No.1 is "+s1); System.out.println("The String No.2 is "+s2); System.out.println("The String No.3 is "+s3); System.out.println("The String No.4 is "+s4); System.out.println("The String No.5 is "+s5); } } A. The String No.1 is The String No.2 is String 2 The String No.3 is a string The String No.4 is string The String No.5 is a string B .The String No.1 is The String No.2 is String 2 The String No.3 is a string The String No.4 is tring The String No.5 is a string C. The String No.1 is The String No.2 is String 2 The String No.3 is a string The String No.4 is strin The String No.5 is a string D. 以上都不对 18.下面语句段的输出结果是什么?( b ) int i = 9; switch (i) { default: System.out.println("default"); case 0: System.out.println("zero"); break; case 1: System.out.println("one"); case 2: System.out.println("two"); } A .default B. default, zero C. error default clause not defined D. no output displayed 19.下面哪个语句正确地声明一个整型的二维数组?( d ) A. int a[][] = new int[][]; B. int a[10][10] = new int[][]; C. int a[][] = new int[10][10]; D. int [][]a = new int[10][10]; 20. 欲构造ArrayList类的一个实例,此类继承了List接口,下列哪个方法是正确的?( b ) A. ArrayList myList=new Object(); B. List myList=new ArrayList(); C ArrayList myList=new List(); D. List myList=new List(); 三.多项选择 1.Java语言在体系结构上是( ) A. 定向的 B. 抽象的 C. 无关的 D. 特定的 2. 以下哪个是关于Java的正确说法( ) A. 具有编译器 B. 具有解释程序 C. 具有编译器和解释程序 D. 具有字节码阅读器 3.当我们希望在发生某些条件时跳出循环,可以使用( ) A. break语句 B. continue语句 C. exit语句 4.以下那句话是正确的?( ) A. 异常是事件 B. 错误导致异常 C. 异常导致错误 D. 所有时间都是异常 5. 在Java中,以下哪种情况被视为错误?( ) A. 内存芯片故障 B. 试图用零去除时 C. 未向用户分配存储单元的引用 D. 试图执行非法的指令 答:1.(BC) 2 .(ABCD) 3.(AB) 4.(AB) 5.(AD) 一、单选题练习 1.完整的计算机系统由(C)组成。 A.运算器、控制器、存储器、输入设备和输出设备 B.主机和外部设备 C.硬件系统和软件系统 D.主机箱、显示器、键盘、鼠标、打印机 2.以下软件中,(D)不是操作系统软件。 A.Windows xp B.unix C.linux D.microsoft office 3.用一个字节最多能编出( D )不同的码。 A. 8 个 B. 16个 C. 128 个 D. 256个 4.任何程序都必须加载到( C )中才能被CPU执行。 A. 磁盘 B. 硬盘 C. 内存 D. 外存 5.下列设备中,属于输出设备的是(A)。 A.显示器 B.键盘 C.鼠标 D.手字板 6.计算机信息计量单位中的K代表( B )。 A. 102 B. 210 C. 103 D. 28 7.RAM代表的是( C )。 A. 只读存储器 B. 高速缓存器 C. 随机存储器 D. 软盘存储器 8.组成计算机的CPU的两大部件是( A )。 A.运算器和控制器 B. 控制器和寄存器 C.运算器和内存 D. 控制器和内存 9.在描述信息传输中bps表示的是(D)。 A. 每秒传输的字节数 B.每秒传输的指令数 C.每秒传输的字数 D.每秒传输的位数 10.微型计算机的内存容量主要指( A )的容量。 A. RAM B. ROM C. CMOS D. Cache 11.十进制数27对应的二进制数为( D )。 A.1011 B. 1100 C. 10111 D. 11011 12.Windows的目录结构采用的是(A)。 A.树形结构 B.线形结构 C.层次结构 D.网状结构 13.将回收站中的文件还原时,被还原的文件将回到(D)。 A.桌面上 B.“我的文档”中 C.内存中 D.被删除的位置 14.在Windows 的窗口菜单中,若某命令项后面有向右的黑三角,则表示该命令项( A )。 A. 有下级子菜单 B.单击鼠标可直接执行 C.双击鼠标可直接执行 D.右击鼠标可直接执行 15.计算机的三类总线中,不包括( C )。 A. 控制总线 B.地址总线 C.传输总线 D.数据总线 16.操作系统按其功能关系分为系统层、管理层和(D)三个层次。 A. 数据层 B.逻辑层 C.用户层 D.应用层 17.汉字的拼音输入码属于汉字的(A)。 A. 外码 B. 内码 C.ASCII 码 D.标准码 18.Windows的剪贴板是用于临时存放信息的( C )。 A.一个窗口 B.一个文件夹 C.一块内存区间 D.一块磁盘区间 模拟题一 第一部分:交际用语 此部分共有5个未完成的对话,针对每个对话是未完成的部分有4个选项,请从A、B、 C、D四个选项中选出可以填入空白处的最佳选项,并用铅笔将答题卡上的相应字母涂黑。 1. — Hello! May I talk to the manager about the price —. A. Sorry, he is out at the moment B. No, you can’t C. Sorry, y ou can’t D. I don’t know 2. —I’m terribly sorry that I made your table cloth dirty. —______. A. Never mind B. Don’t mention it C. That’s right D. Sorry 3. ― Do you mind if I open the window ―______ I feel a bit cold. A. Of course not. B. I’d rather you didn’t. C. Go ahead. D. Why not 4. —Excuse me, sir. Where is Dr. Smith’s office —. A. You can’t ask me B. Good question C. Please don’t say so D. Sorry I don’t know, but you can as k the man over there 5. — Good morning, sir. May I help you —. A. No, I don’t buy anything B. No, I don’t need your help C. Yes, I need some salt D. Oh, no. That’s Ok 第二部分:阅读理解 此部分共有2篇短文,每篇短文后有5个问题。请从每个问题后的A、B、C、D四个选项中,选出可以填入空白处的最佳选项,并用铅笔将答题卡上的相应字母涂黑。 Passage 1 模拟题三 第一部分:交际用语 此部分共有5个未完成的对话,针对每个对话有4个选项,请从A、B、C、D四个选项中选出可以填入空白处的最佳选项,并用铅笔将答题卡上的相应字母涂黑。 1. –Hello! I want to make a person-to-person call to Toronto, Canada. The number is 932-0806. --___B_____. A. But I don’t know whom do you want to call. B. What’s the name of the party you’re calling? C. What’s the address of the person you’re calling? D. What’s the extension number you’re calling? 2. ---Have you ever been to the Temple of Heaven in Beijing? -- ___B__. A. No, but I have no time. B. No, but I’d like to. C. Yes. I was too busy then. D. Yes. I couldn’t do it right now. 3. –Is everyone always so helpful to you in your office? --- __D___. A. Yes. What can I do for you now? B. Yes, there is a hotel nearby. C. Yes. Can I help you? D. Yes. It’s a great place to work. 4. ---It’s a beautiful day today! How about a little trip out into the country? --- ___A______. A. That sounds great. What should I do for the preparation? B. I don’t know. I really haven’t thought about what we’d do. C. Well, would you like me to pack picnic or to buy something? D. It’s all right. Thank you. 5. –Excuse me. Could you show me the way to the nearest subway station? --- ___C____. A. Any time. It’s next to the post office. B. All right. Do you want me to go with you? C. No problem. With pleasure. D. Of course not. Go down this street and turn right. 第二部分:阅读理解 此部分共有2篇短文,每篇短文后有5个问题。请从每个问题后的A、B、C、D四个选项中,选出可以填入空白处的最佳选项,并用铅笔将答题卡上的相应字母涂黑。 Passage 1 The greatest recent social changes have been in the lives of women. During the twentieth century there has been a remarkable shortening of the proportion of a woman’s life spent in caring for children. A woman marrying at the end of the nineteenth century world probably have been in her middle twenties, and would be likely to have seven or eight children, of whom four or five lived till they were five years old. By the time the youngest was fifteen, the mother would have been in her early fifties and would expect to live a further twenty years, during which custom, opportunity and health made it unusual for her to get paid work. Today women marry younger and have fewer children. Usually a woman’s youngest child will be fifteen when she is forty-five and can be expected to live another thirty-five years and is likely to take paid work until retirement at sixty. Even while she has the care of children, her work is lightened by household appliances and convenience foods. The important change in women’s life-pattern has only recently begun to have its full effect on women’s economic p osition. Even a few years ago most girls left school at the first opportunity, and most of them took a full-time job. 网页设计与制作模拟题2 一、单项选择题 1.在配置连接一个SQL Server数据库的ODBC,下列说法中,(C)是不准确的。 A. 配置时,可以直接测试数据源 B. 配置时,必须指定数据库的主机地址 C. 配置时无须输入用户和密码 D. 对Web应用而言,应该建立System DSN 2.因特网上的域名服务称为( B )。 A. WINS B. DNS C. ARP D. TELNET 3.构成DHTML的各种技术中不包括( B )。 A. 客户机端脚本 B. 服务器端脚本 C. CSS D. DOM 4.HTML是一种页面( D )型的语言。 A. 程序设计 B. 执行 C. 编译 D. 描述 5.在HTML中定义一个表单应该使用以下标记( A ) A. 2017年山大网络教育专科计算机基础试题答案
山大网络教育英语模拟题一含答案
最新山东大学网络教育期末英语模拟题三及答案
山东大学网络教育考试模拟题及答案(计算机信息管理)—网页设计与制作2