【正文】
7, 39。Admin39。) )。d)PreparedStatement stmt1 = (insert into EMP (EMPNO,ENAME) values (7,39。Admin39。) )。45)分析如下所示的HTML頁(yè)面代碼,要實(shí)現(xiàn)每1秒鐘刷新時(shí)鐘顯示,應(yīng)在下劃線處添加的代碼是( )。 (選擇一項(xiàng))htmlheadscript language=javascriptfunction showTime(){ var time = new Date()。 [0]. = ()+:+ ()+:+ ()。 _________________________//在此處添加代碼}/script/headbody onLoad=showTime()form name=form1 action= method= input name=myClock type=text value= readonly=true//form/body/html a)var myTime = setTimeout(showTime(),1)。b)var myTime = setTimeout(showTime(),1000)。c)var myTime = setTimeout(1)。d)var myTime = setTimeout(1000)。46),using語(yǔ)句范圍內(nèi)定義了一個(gè)數(shù)據(jù)庫(kù)連接對(duì)象,當(dāng)程序執(zhí)行到using語(yǔ)句末尾時(shí),將自動(dòng)釋放此數(shù)據(jù)庫(kù)對(duì)象。假設(shè)strSQL為連接字符串,以下using語(yǔ)句使用正確的是( )。 (選擇一項(xiàng))a)using {(SqlConnection conn=new SqlConnection(strSQL)}b)using (SqlConnection conn=new SqlConnection()){strSQL }c)using {}(SqlConnection conn=new SqlConnection(strSQL))d)using (SqlConnection conn=new SqlConnection(strSQL)){}47)下面的Java程序編譯運(yùn)行結(jié)果是( )。 (選擇一項(xiàng))interface A{ int x = 0。}class B{ int x=1。}class C extends B implements A { public void pX(){ ()。 } public static void main(String[] args) { new C().pX()。 }} a)產(chǎn)生運(yùn)行期錯(cuò)誤b)產(chǎn)生編譯期錯(cuò)誤c)程序運(yùn)行,輸出結(jié)果為1d)程序運(yùn)行,輸出結(jié)果為048)在SQL Server 2005中,要?jiǎng)?chuàng)建一個(gè)students(學(xué)生)表,包括三個(gè)字段:sid(學(xué)號(hào), smallint)、sname(姓名, char(10))、age(年齡, int),要求:除年齡字段外,其他字段都不能為空;學(xué)生年齡介于 15 到 40 歲之間。下列 SQL 語(yǔ)句中能滿足上述條件的是( )。 (選擇一項(xiàng))a)CREATE TABLE students ( sid smallint , sname char(10) , age int null check ((age=15) and (age=40)) )b)CREATE TABLE students ( sid smallint not null, sname char(10) not null, age int check ((age=15) and (age=40)) )c)CREATE TABLE students ( sid smallint , sname char(10) , age int null check age in [15,40] )d)CREATE TABLE students ( sid smallint not null, sname char(10) not null, age int check age in [15,40] )49),可以通過(guò)以下( )方法創(chuàng)建DataSet(數(shù)據(jù)集)對(duì)象。 (選擇二項(xiàng))a)通過(guò)Connection對(duì)象和Command對(duì)象將數(shù)據(jù)填充到DataSet對(duì)象中b)通過(guò)DataAdapter(數(shù)據(jù)適配器)的Fill方法直接填充到DataSet對(duì)象中c)通過(guò)手動(dòng)編碼自定義DataTable(數(shù)據(jù)表)、DataColumn(數(shù)據(jù)列)和DataRow(數(shù)據(jù)行),然后將數(shù)據(jù)表添加到DataSet對(duì)象中d)通過(guò)DataReader對(duì)象的Fill方法將數(shù)據(jù)添加到DataSet對(duì)象中50)分析如下Java代碼,編譯運(yùn)行后將輸出( )。 (選擇一項(xiàng))public class Test { public Test() {} static void print(ArrayList al) { (2)。 al = new ArrayList()。 (3)。 (4)。 } public static void main(String[] args) { Test test = new Test()。 ArrayList al = new ArrayList()。 (1)。 print(al)。 ((1))。 }} a)1b)2c)3d)415 / 15