26)
a)现在时间是:2006-02-20-15:54
b)现在时间是:15:54
c)00:00
d)现在时音是:+15+:+54
27)在SQL Server 2000中,外键用于将一个表中的列与另一表中的列关联起来,为了确保引用的完整性,要求(a)(选择一项)
a)外键列的列值必须已经存在于主键表的对应列的列值中
b) 外键列的列值必须与主键表的对应列的列值一一对应
c) 外键列不能有重复值
d) 外键表的数据必须大于主键表的数据行行数
28)分析下面的javascript代码段:输出结果是(b ) (选择一项)
Var s1=15;
Var s2=”string”;
If(isNaN(s1))
If(isNaN(s2))
a)
29)在html页面中,(c )标记用于为表格中的一列指定一个标题. (选择一项)
a)<tr>
30)在C语言中,下列代码的输出结果是(c ) (选择一项)
Void main()
{
{
J++;
}
}
a)
31)
a) if(new
File(“d:/abc.txt”).exists()==1)
c) if(new
File(“d:/abc.txt”).exists())
32)
Try
}catch(Exception e)
{
}
a)
b)
c)
d)
b)
a)<button value=”鼠标响应” onclick=’alert(“确定”)’></button>
b)<input type=”button” value=”鼠标响应” onclick=’aler t(“确定”)’>
c) <input type=”button” value=”鼠标响应” onchange=’aler t(“确定”)’>
a)<button onchange=’alert(“确定”)’>鼠标响应</button>
c)
#include<stdio.h>
Int z;
Int p(int x)
{
}
Void main()
{
}
a) a,b
d)
a)
{
Int age;
Char sex;
Char name[20];
}
b)
{
Char sex;
Float score;
}stu1,stu2;
c)
{
};
e)
}cmp1,emp2;
f)
Public static void main(String []args)
{
String s;
System.out.println(“s=”+s);
}
a)编译错误
d)正常运行,输出s=
g)
a)
var str=(second>12)?”上午好!”:”下午好!”;document.write(str);
b) var todays_date=new Date();var hours=todays_date.getHours();
var str=( hours <12)?”上午好!”:”下午好!”;document.write(str);
c) var todays_date=new Date();var seconds=todays_date.getSeconds();
var str=(second<12)?”上午好!”:”下午好!”;document.write(str);
d)
var str=( hours>12)?”上午好!”:”下午好!”;document.write(str);
38)在C语言中,下列( )情况不需要定义常量. (选择一项)
a)程序中经常使用到某个值,而这个值保持不变,例如圆周率
b)某个值在程序中保持不变,并且具有很多位小数,在程序中不好书写
c)某个固定不变的值非常简单,但是需要在很多地方频繁使用
d)某个值非常复杂,而且需要在很多地方频繁使用,但是这个值在不同的地方可能不同
39)在java接口中,下列选项里有效的方法声明是( ab )(选择一项)
a)public void aMethod();
b)void aMethod();
c)sttic void aMethod();
d)protected void aMethod();
40)在java中,对于PreparedStatement的方法setInt(int I,int x),描述正确的是( d). (选择一项)
a)使得第i-1个参数的值设为x
b) 使得第x-1个参数的值设为i
c) 使得第x个参数的值设为i
d) 使得第i个参数的值设为x
41)在java语言中,下面变量命名合法的有(ad ). (选择一项)
a)variable123
42)给定java程序Test.java如下:
{
Void jump(){}
}
给定Test的子类Test2,代码如下:
Import com.*;
Public class Test2 extends Test
{
{
//a
}
}
可以在Test2的A处加入的代码是( ab)(选择二项)
a)tt.talk();
43)某学生练习12分钟跑步,已知该学生第一分钟跑100米,随着时间的推移,以后每分钟少跑5米,即第一分钟跑95米,第三分钟跑90米,以此类失失推,下列代码是模拟计算该学生12分钟内跑多少米的C语言代码,请问空白处应该填写的代码是(c ).
Void main()
{
For(i=1;i<=minutes;i++)
{
}
Printf(“共跑了%d米”,total);
}(选择一项)
a)
b)
c)
d)
44)在SQLServer2000中,假定grade(成绩)表中包含字段:sID(学号),cid(班级编号),lang(语文成绩),math(数学成绩),那么计算所有学生人数的务科最高成绩的SQL语句是(b).(选择一项)
a)select count(*) ,max(lang),max(math) from grade
b) select count(*) ,max(lang),max(math) from grade group by sid
c) select sum(*) ,max(lang),max(math) from grade group by sid
d) select sum(*) ,max(lang),max(math) from grade
45)在C语言中,假设有定义:int I;char c,*s; float f,g;则结果为整型的表达式有(bd ). (选择二项)
a)i+f
46)给定一段java代码如下:要打印出list中储存的内容,以下语句正确的是(ab)(选择二项)
ArrayList list=new ArrayList();
List.add(“a”);
List.add(“b”);
Iterator it=list.iterator();
a)
b)
System.out.println(list.get(i));
c)
d)
47)在SQLServer2000中,现有订单表orders,包含用户信息userid,产品信息productid,以下(d )语句能够返回至少被订购过两回的productid. (选择一项)
a)select productid from orders group by productid where count(productid)>1
b) select productid from orders having count (productid)>1 order by productid
c) select productid from orders where
d) select productid from orders group by productid having count(productid)>1
48)仔细阅读下面的C语言代码:变量是var2的最后的值是(a ).(选择一项)
Void main()
{
}
a)
49)如图,是Windows2000 Server中的资源管理器的搜索界面,为了在D盘中搜索所有文件名中包含music且后缀名为mp3的文件,需要在光标处输入的字符是(a)..(选择一项)
a)
50)在Java中,下列( d)语句不能通过编译. (选择一项)
a) String s=”john”+”was”+”here”;
b)String s=”john”+3;
c) int a=3+5;
d) float f=5+5.5;

加载中…