2. 16、要求在 html 页面上做一个宽度为 40 像素的文本输入框,文本框中输入
的文字都以 Arial 字体显示。对应的代码是 <input type=”test” name=”username”
style=”FONT-FAMILY: Arial” style=”width:??”>,请写出??所代表的 html 代码。
17、在某个网站的根目录下有两个文件: index.html 和 mail.html,要求用户
访问默认页面 index.html 5 秒后,页面自动跳转到 mail.html。对应的 html 代码是
<meta http-equiv=”refresh” content=”5;URL=?????”>,请写出?????对应的代码。
18、要求用 jsp 实现以下功能:用户在浏览器的地址栏中看到的地址是 http://
127.0.0.1/test/a.jsp , 但 实 际 在 浏 览 器 中 看 到 的 页 面 内 容 却 是
http://127.0.0.1/text/b.jsp。请问在 a.jsp 中用一句什么样的 jsp 代码可以实现这个功
能?
19、要求以 css 方式实现鼠标移动到网页上链接时链接不出现下划线,请写
出对应的 css 代码
20、 C 语言 fopen()函数中,打开文件的方式用”r”与”r+”的区别是什么?
在
打开文件的方式用”r”与”w”的区别是什么?”w”与”wb”的区别是什么?
21 、 C 语言中常常使用 #include 语句指明所要用的“函数头文件”,在
Windows2000 操作系统下,系统的“函数头文件”放在什么地方? UNIX 操作
系统下,系统的“函数头文件”放在什么地方?
22、画出程序流程图:用 C 语言编程,判断一个给定的字符串是否为有效的
IP 地址,输出判断结果。举例:testip 10.1.1.1 输出“10.1.1.1 is a valid IP Address”
3、 数据库开发(25 分钟)
23、ASP 执行原理是:
A. Connection. B. ResordSet. C.存储用户信息,进行安全管理.
D.应用服务器.
3. 26、Exchange Server 作为文档管理服务器,常用的开发手段包括:
A.ADO. B.WebDAV. C.Socket. D.CDO.
27、MS SharePoint Portal Server 实现的主要功能包括:
A.门户服务. B.文档管理服务. C.信息检索服务. D.以上都是.
28、Every night the sales database backup fails. Which DBCC command could repair
the Sales database and check the data integrity and indices?
A.DBCC NEWALLOOC B.DBCC CHECKALLOC C.DBCC CHECKDB
D.DBCC DBREPAIR
29、You install SQL server on an IIS machine.You need to optimize IIS. What do you
configure on SQL Server?
A.Set working set size B.Min Server memory C.Max server memory
D.Max worker threads
30、It took you hours to create an index on a table.What should you do to protect it?
A.Backup master database B.Backup user database
C.Make differential backup of user database D.Backup log
31、 need to produce a list of the five highest revenue transactions from the Orders
You
table in the Sales database.The Orders table is defined as follows:
CREATE TABLE Orders{
OrderID int IDENTITY(1,1) NOT NULL,
SalePersonID int NOT NULL,
RegionID int NOT NULL,
Orderdate datetime NOT NULL,
OrderAmount int NOT NULL,
}
Which statement will produce the report?
A. SELECT TOP 5 OrderAmount,SalePersonID FROM Orders ORDER BY
OrderAmount.
B. SELECT TOP5 OrderAmount,SalePersonID FROM Orders.
C. SELECT TOP 5 with TIES OrderAmount,SalePersonID FROM Orders ORDER
BY OrderAmount.
D. SELECT TOP 5 with TIES OrderAmount,SalePersonID FROM Orders ORDER
BY OrderID.
32 、 You are creating a large index on the EMP table.This index will have a high
number of inserts.To speed up creation of the index, what can be done?
A. Use the NOLOGGING clause in the CREATE INDEX command.
4. B. Use the same INITRANS value of the corresponding table on the index.
C. SET the DB_BLOCK_SIZE to multiples of 5.
D. Place indexes in separate tablespaces.
33 、 The CALC_COMM procedure is no longer needed and should be remouved.
Which command will successfully drop this procedure?
A. DROP calc_comm;
B. REMOVE calc_comm;
C. DROP PROCEDURE calc_comm;
D. ALTER calc_comm. DROP PROCEDURE;
34、Which of these statements is always true?
A.A database must contain at least three datafiles.
B.Control files must be mirrored.
C.A database has at least two groups of redo log files.
D.The members of a redo log group can have various sizes if they can be stored on
one disk.
35、For which column would you create an index?
A.A column that is small
B.A column that is updated frequently
C.A column containing a wide range of values
D.A column with a small number of null values
function popup_search(factory,backfill_fill_form,backfill_attr){
var url=”http://DEMO/exam.exe?
OP=SEARCH”+”+FACTORY=”+factory+
四、分析理解,请分析下术 JavaScript 函数,回答下面问题:(20 分钟)
”+KEEP.IsPopUp=1”+”+KEEP.backfill_field=”+backfill_field+
“+KEEP.backfill_form=”+backfill_form;
if (typeof backfill_attr==”string”&& backfill_attr.length!=0){
var f=document.forms[backfill_form];
if(typeof f==”object”){
var e=f.elements[backfill_form];
var name_qbe=””;
if(backfill_attr==”QBE” && val.length>0){
var n=val.split(/[,]/,3);
if(typeof n[0]==”string”&&n[0].length>0)
name_qbe+=”+QBE.IN.last_name=”+escape(n[0]);
if(typeof n[0]==”string”&&n[1].length>0)
name_qbe+=”+QBE.IN.last_name=”+escape(n[1]);
if(typeof n[0]==”string”&&n[2].length>0)
name_qbe+=”+QBE.IN.last_name=”+escape(n[2]);
val=””;
}
if(val.length>0||name_qbe.length>0){
if(val.length>0)
url+=”+QBE.IN.”+backfill_attr+”=”+escape(val);
if(name_qbe.length>0)
url+=name_qbe;
5. }
}
}
var name=””;
var features=”location=no”+”,menubar=no”+”,toolbar=no”;
w=window.open(url,name.features);
w.focus();
return w;
}
36、入口参数 backfill_field 和 backfill_from 应该表示什么含义?
37 、调用该函数应该会弹出一个新的浏览器窗口。如果需要使窗口的高度为
100,宽度为 150,应该如何修改?
38、 如果用 popup_search(“cr”,”SET.assignee”,”main”,”QBE”)方式调用该函数,打
class ValHold{
public int I=10;
开新窗口的 URL 大致应该怎样?
}
public class ObParm{
五、JAVA 基础和开发(20 分钟)
public static void main(String argv[]){
ObParm o=new ObParm();
39.如下代码的输出是什么? o.amethod();
}
public void amethod(){
int I=00;
ValHold v=new ValHold();
v.i=30;
another(v,i);
System.out.println(v,i);
}//End of amethod
public void another(ValHold v,int i){
I=0;
v.i=20;
ValHold vh=new ValHold();
V=vh;
System.out.println(v.i+” ”+i);
}//End of another
}
6. 40、描述如下代码的错误,并改正之:
public interface SomethingIsWrong{
public voi daMethod(int aValue){
System.out.println(“Hi Mom”);
}
}
41、以下界面都用了什么控件?请一一列出。另外,界面中是否应用了高级特效技术?你可
以做出多少种特效效果?(比如淡入淡出、图像通道合成及半透明处理、面板弹出等)