问答题

【问题2】(7分)
该商务网站的计数器部分代码如下,请根据题目说明,将空缺的代码补充完整。
<%
set conn= server.createobject('adodb.connection')
(7) .provider='sqloledb'
provstr='serveF127.0.0.1;database= (8) L;uid=sa;pwd=9857452'
conn_.open provstr
set rs=conn.Execute('select*from counter')
……
conn.Execute'Update counter set counteFcounter+l,today=o,statdtm=date(),daynum=
daynum+l, yesterday=' &rs('today')&'”
conn.Execute' (9) into yesday(yesday,stats) values(…&yesday&”’,”&rs(”today”)&”)”
……
application. ( 10)
if rs('top”)<rs('today') then
conn.Execute'Update counter set counter=counter+1,today=today+1, [top]='&
rs('today')&''
else
conn.Execute'Update counter set counter=counter+1,today=today+1'
end if
(11) .unlock
end if
counters= (12)
today= (13)
yesterday= rs('yesterday')
rs.close
setrs= nothing
conn.close
setconn=nothing
%>
document.write('<font style='FONT-SIZE: 12px;COLOR: #000000;'>总共访问量:
<%=counters%>,今日访问:<%=today%>,昨日访问:<%=yesterday%></font>');

A.createobject('adodb.connection')
B.provider='sqloledb'
C.0.0.1;database=
D.open
E.Execute('select*from
F.Execute'Update
G.Execute'
H.Execute'Update
I.Execute'Update
J.unlock
K.close
L.close
M.write('<font
题目列表

你可能感兴趣的试题

问答题

● A transport layer protocol usually has several responsibilities. One is to create a process-to-process communication; UDP uses (71) numbers to accomplish this. Another responsibility is to provide control mechanisms at the transport level. UDP does this task at a very minimal level. There is no flow control mechanism and there is no (72) for received packet. UDP,however, does provide error control to some extent. If UDP detects an error in the received packet, it will silently drop it.
The transport layer also provides a connection mechanism for the processes. The (73) must be able to send streams of data to the transport layer. It is the responsibility of the transport layer at (74) station to make the connection with the receiver, chop the stream into transportable units,number them, and send them one by one. It is the responsibility of the transport layer at the receiving end to wait until all the different units belonging to the same process have arrived, check and pass those that are (75) free, and deliver them to the receiving process as a stream.
(71)A.hop B.port C.route D.packet
(72)A.connection B.window C.acknowledgement D.destination
(73)A.jobs B.processes C.programs D.users
(74)A.sending B.routing C.switching D.receiving
(75)A.call B.state C.cost D.error

A.
The
B.
(71)A.hop
C.port
D.route
E.packet
(72)A.connection
F.window
G.acknowledgement
H.destination
(73)A.jobs
I.processes
J.programs
K.users
(74)A.sending
L.routing
M.switching
N.receiving
(75)A.call
O.state
P.cost
Q.error
微信扫码免费搜题