26)在C#语言中,方法重载的主要方式有两种,包括()和()。(选择二项)
a) 参数类型不同的重载
b) 返回值类型不同的重载
c) 方法名称不同的重载
d) 参数个数不同的重载
27)在java中,较为常用的jdbc驱动方式是()和()(选择二项)
a) jdbc-odbc桥连接
b) mssqlserver驱动程序
c) 纯odbc驱动程序
d) 纯java驱动程序
28)在以下c#的数据类型中,()属于值类型(选择二项)
a) bool
b) struct
c) class
d) string
29)在C#中,类的实例化需要使用的关键字是()(选择一项)
a) this
b) base
c) new
d) as
30)在html文档中包含如下提交按钮,则选项中对该提交按钮的描述错误的是()(选择二项)
<input type=“submit” name=“submit” value=“提交” style=“width:82px;height:23px;background-image:url(images/back1.jpg);border:0px;padding:1px;margin:0px;”
onMouseOver=”this.style.badkgroundImage=’url(images/back2.jpg’);”
onMouseOut=”this.style.badkgroundImage=’url(images/back1.jpg’);”
a) 在初始状态下没改提交按钮的背景图片为back1.jpg
b) 当鼠标移入按钮时,按钮的背景图片为back1.jpg
c) 当鼠标移出按钮时,按钮的背景图片为back2.jpg
d) 按钮的宽度,高度应和图片的宽度,高度一致
31)在C#中,下面关于结构使用正确的是()(选择一项)
a) class Person{}
struct Teacher:Person
{//….}
b) struct Person{}
struct Teacher:Person
{//….}
c) struct Teacher{
string name;int age;
public teacher(String name,int age){
this.name=name;
this.age=age;
}
}
struct Teacher{
string name;int age;
public Teacher(){
}
}
在jsp的小脚本中,使用以下()语句可以使用浏览器重定向另一个页面(选择一项)
a) request.sendredirect(“http://www.jb-aptech.com.cn”);
b) request.sendredirect();
c) response.sendredirect(“http://www.jb-aptech.com.cn”);
d) response.sendredirect();
33)jsp页面中,使用jsp表达式计算表达式的值,并将数据输出到html页面,下列关于jsp表达式描述错误的是()。                                           (选择二项)
a) 使用jsp表达式可以生成jsp动态内容
b)  jsp表达式后面不能家分号
c )jsp表达式的基本语法为<%!代码%>
d)一个表达式标签内可以编写多个java表达式
34)在.net框架下开发三层结构应用程序时,关于三层结构的说法中错误的是()
                                                                   (选择一项)
三层结构体现了“高内聚,低耦合”的思想
三层结构在大中型应用系统中应用较多
三层结构适用于客户界面需求经常发生变化的情景
三层结构适用于客户对开发语言要求经常发生变化的情景
 35)在web应用系统中,编写的公共的处理页面名为manage.jsp,该页面包含在web根目录下,哪么在web根目录下的其他页面上引用该页面的代码正确的是()。
                                                                 (选择一项)
<%include file=”manage.jsp”%>
<%! Include file =”manage.jsp”%>
<%@ include file=”manage.jsp”%>
<include file=”manage.jsp”>
 36)在java中, 有如下两个类Student和Person。如果Student是Person的子类,这下列声明对象X的语句中错误的是()                                    (选择一项)
a) Person  x=new Student ();
b)  Person  x=new Person ();
c) Student x=new Person();
d)  Student x =new Person();
37) 在html页面上包含如下所显示的层对象,这JavaScript语句document.getElementById(“info”).innerHTML的值是()。                  (选择一项)
     a)请填写
     b) <p> 请填写<p>
     c) id=”info” style=”display:block”
     d)<div id=”info” style=”display:block” ><p>请填写<p></div>
38)在SQL Server 2005数据库中,现在有表student(数据库如下左图),class(数据库如下右图),现在针对“中文2”班的学生姓名和班级名 建立视图如下所示,则下划线处应填写的内容为()。
Create view ScanNamInfo As
Select a.Studentname,classname From dob.student a INNER JOIN dbo.class b_______ 
studentname studentID classID
张三 200601098 1
李四 200601099 2
张三 200601100 2
王老五 200601101 3
classID classname
1 中文1
2 中文2
3 计算机1
4 计算机2ON a.classID=b.classID where(b.classID=2)
IN a.classID=b.classID where (b.classID=2)
ON a.classID=b.classID=2
IN a.classID=b.classID and b.classID=239) 在HTML页面中,包含id为“div1”的层,下列()选项中的JavaScript代码可以使该曾隐藏。(选择一项)
a)  document.getElementById(“div1”).style.display=”block”;
b)  document.getElementById(“div1”).style.display=”none”;
c)  document.getElementByName(“div1”).style.display=”block”;
d)  document.getElementByName(“div1”).style.display=”none”;
40) 在SQLService2005 数据库系统中,以下扩展名的文件中不是SQLService2005 数据库文件的是()。(选择一项)
a) mdf
b)ndf
c)dbf
d)ldf41)JSP文件test.jsp内容如下所示,测试图运行时,将发生()(选择一项)
<html>
<%{%>
<%String str;%>
<%}%>
<str is<%=str%>>
</html>
翻译期错误
编译Java源码时发生错误
执行编译后的字节码时发生错误
运行后,浏览器上显示:str is null
42)在.NET框架下使用实体类实现三层结构时,以下选项中用于实现数据访问层返回强类型实体对象集合的是:()(选择两项)
a) IList<T>
b) List<T>
c)Array
d)ArrayList
43)给定如下Java代码片段。已知查询语句是:select id from title, 并且已经获得了相应的结果集对象res。现在要在控制台上输出title表中id列(存储类型为int)的值,可以填入下划线处的代码是()。(选择两项)
While(res.next())
{
Int id = _________
}
res.getInt(“id”);
res.getInt(0);
res.getInt(1);
res.getInt(id);
在SQL Server2005数据库中,执行以下的T-SQL,若能找到title_id为tc2的记录,
将产生的结果是()。(选择一项)
Begin transaction
If exists(select title_id from titles where title_id = ‘tc2’)
Begin
Delete titles where title_id = ‘tc2’
Rollback transaction
Print ‘OK’
End
删除该记录行,不打印任何信息
不删除该记录行,并且打印OK
删除该记录行,并且打印OK
不删除该记录行,也不打印任何信息
45)分析以下C#代码,根据面向对象的多态性,代码的运行结果是()。(选择一项)
Class A{
Public void F(){
Console.Write(“A”);
}
Public void F(string Chr){
Console.write(Chr);
}
}
Class B:A{
Public void F(){
Console.Write(“B”);
}
Static void Main(){
B objB = new B();
objB.F();
}
}
A
B
BA
AB
                            (12)
46)给定如下java代码。这段程序编译运行后的输出结果是()   (选择一项)
 public classTest{
public static void aMethod() throws Exception{
 try{
throw new Exception(); 
}finally{
System.out.print(“Finally”);
}
}
public static void main(String[]args){
  try{
  aMethod();
}catch(Excception e){
 System.out.print(“Exception”);
}
System.out.print(“Finished”);
}
}
a) FinallyException
b) Finally
c) ExceptionFinallyException
d) FinallyExceptionException
47)在sqlserver 2005 数据库中, 有以下创建和使用存储过程的代码,在ManagementStudio中运行以下代码,选项中说法正确的是()                     (选择一项)
Create procedure myProc @inparam int,@outparam int OUTPUT 
AS
SELECT @outparam=100                 --1
IF(@outparam>0)
   RETURN 1000
ELSE
    RETURN 2000
GO
declare @A int
declare @B int
Set@A=10
EXEC myProc@A,@B             --2
Select@A,@B                    --3
a)代码行1将产生错误
b) 代码行2将产生错误
c) 代码行3将产生错误
d)正常运行,最后一行输出为10和null
48)在html页面上包含如下所示的页面代码,要求编写javascript语句清空下拉选择框
Country的选项内容,则选项的语句正确的是()            (选择一项)
                       13
<form name =”form1” action=””>
<select name=”country”>
     <option value=”中国”>中国</option>
     <option value=”美国”>美国</option>
</select>
</form>
document.form1.country.options.size=0;
document.form1.country.options.length=0;
document.form1.country.options.value=””;
document.form1.country.value=””;
在C#中,下面关于接口的定于正确的是( )。
public interface IStudentService{
public string addStudent();
}
b) public interface IStudentService{
string addStudent()
{//…
}
c) public class Student{}
public interface IStudentService:Student{
string addStudent();
}
public interface IStudentService{
string addStudent();
}
50)编写javascript代码实现当移动浏览器的垂直滚动条时,层(DIV)的垂直位置始终位于浏览器顶端,下列选项中()是正确的                      (选择一项)
<div id=”divid”><img src=”pic.jpg”/></div>
a)document.getElementById(“divid”).top=0
b)document.getElementById(“divid”).pixelTop=document.booyscrollYop;
c)document.getElementById(“divid”).style. pixelTop=0
d) document.getElementById(“divid”).style. pixelTop=document.boby.srcollTop;

解决方案 »

  1.   

    先说声抱歉,我没有标准答案。
    我也是初学,对这个没把握的。
    下面是我做的答案26.ad
    27.ad
    28.ab
    29.c
    30.ad
    31.c
    32.c
    33.cd
    34.b
    35.c
    36.cd
    注:我认为应该选两项。
    37.a
    注:我觉得这个题有点歧义,题目中的“如下所显示的层对象”没有出现。
    38.a
    39.b
    40.c
    41.a
    42.ab
    43.ab
    44.b
    45.b
    46.b
    47.不会
    48.c
    49.d
    50.d
      

  2.   

    36只有一个答案 只能父类new子类 不能子类new父类 里氏替换原则..