【正文】
utStream 3. DataInput 和 DataOutput 4. DataInputStream 和 DataOutputStream9) RecordEnumeration 接口定義了下面的哪個(gè)方法? 1. enumerateRecords() 2. getRecord() 3. nextRecord() 4. addRecord()10) 代碼段如下所示:(19)代碼段1: byte[] ba = new byte[50]。 while ((i=())!= 1) { if (i!=39。 } } 4. InputStream ins = null。 int i。) { ((char)i)。 StringBuffer buffer = new StringBuffer()。n39。 ins = ()。 } } catch( IOException e ) { done( Exception + e + trying to connect. )。n39。s where you read the data. // This case expects an integer // followed by zero or more // strings. try { DataInputStream din = new DataInputStream(() )。 display(Connecting to the server... )。6) 你正在編寫(xiě)連接到 Web 服務(wù)器上運(yùn)行的一個(gè) servlet 的 MIDlet 代碼。關(guān)于上面陳述,下面哪項(xiàng)是正確的?1. 陳述 A 是正確的,陳述 B 是錯(cuò)誤的。 Display display = (form)。 (form)。 (gauge)。 Display display = (this)。進(jìn)程指示應(yīng)該被嵌入到form 組件中。 4. StringItem strIt = new StringItem( , Msg)。 2. StringItem strIt = new StringItem( , Msg)。 show = new Form(Name)。import .*。public class Hello extends MIDlet{ private Display Exhibit。 } public void startApp() throws MIDletStateChangeException { (show)。 (strIt)。 (show)。下面 的哪個(gè)方法可以在設(shè)備屏幕上顯示進(jìn)程指示? 1. public void showGauge() { Form form = new Form(“Gauge”)。 (form)。 } 3. public void showGauge() { Form form = new Form(“Gauge”)。 } 4. public void showGauge() { Form form = new Form(“Gauge”)。 (gauge)。 2. 陳述 A 是錯(cuò)誤的,陳述 B 是正確的。MIDlet 的代碼段如下所示:public void connhandler(){ HttpConnection con = null。 int response = ()。 int n = ()。 )。 }}編譯 MIDlet 代碼后,你試圖不啟動(dòng) Web 服務(wù)器來(lái)連接 servlet。 StringBuffer buffer = new StringBuffer()。) { (i)。 int i。 } } 3. InputStream ins = null。 while ((i=())!= 1) { if (i!=39。 ins = ()。n39。 int nob = (id, ba, 0)。 ba = (id)。有一個(gè)應(yīng)用程序使用名為 的記錄存儲(chǔ),使客戶(hù)方便的記錄所有提交到銀行的單據(jù)。 } 2. public void getEnum() { RecordEnumeration re。 } 3. public void getEnum() { RecordStore rs。 RecordStore rs。安全客體陳述 B:安全對(duì)象經(jīng)常是一個(gè)用戶(hù)或代表一個(gè)用戶(hù)的處理操作的形式的主動(dòng)實(shí)體。陳述 C:在委托代碼安全模型(trusted code security model)中,遠(yuǎn)程代碼被標(biāo)記為不可信賴(lài)并限制系統(tǒng)資源的訪問(wèn)。 3. 陳述 B 和 C 是正確的,陳述 A 是錯(cuò)誤的。判斷上面陳述。 4. 兩個(gè)陳述都是錯(cuò)誤的。 2. 偽裝、病毒和蠕蟲(chóng)、防火墻。下面哪個(gè)算法最符合他的要求? 1. 2. RC4 3. WES 4. SSID23) 思考下列陳述:陳述 A:應(yīng)該為一個(gè)接入點(diǎn)分配加密 SSID 來(lái)保護(hù)它免受攻擊。3. NAT 防火墻工作在網(wǎng)絡(luò)層來(lái)檢查進(jìn)出的信息包。Don 應(yīng)該打開(kāi)哪個(gè)數(shù)據(jù)庫(kù)來(lái)檢查配置數(shù)據(jù)? 1. FlyingColors_merce 2. MSCS_Admin 3. FlyingColors_dw 4. Direct Mailer28) 你正使用一個(gè)程序中某些子組件來(lái)獲取特定用戶(hù)輸入并在設(shè)備屏幕上顯示。 (stritem)。 } 3. public void setItem() { Form form = new Form(“Container”)。 TextBox textb = new TextBox (“Input”, ”, 20, )。2. 這是運(yùn)行時(shí)環(huán)境和 MIDlet 應(yīng)用程序代碼的接口。陳述 B:HttpConnection 接口是從 包中的 ContentConnection 接口擴(kuò)展而來(lái)的。 4. 兩個(gè)述都是錯(cuò)誤的。 (Accept, application/octetstream )。 ( data )。3. prep_Request()方法處理 MIDlet 連接到服務(wù)器的響應(yīng)。 try { conn = connect(“ this )。 try { DataInputStream din = new DataInputStream(())。n39。 } } catch( IOException e ) { done( Exception + e + trying to connect. )。中的 readUTF()方法讀取按 UTF8格式編碼的字符串?dāng)?shù)據(jù)。 2. 假冒、病毒和蠕蟲(chóng)、防火墻。NAT 防火墻和路由器一起起作用。3. 充當(dāng)客戶(hù)和服務(wù)器之間的協(xié)商者的處理過(guò)程。3. 追蹤入侵并將其阻止。C:為了檢查服務(wù)器是否已接收到數(shù)據(jù),客戶(hù)需發(fā)送用會(huì)話密鑰加密的隨機(jī)字符串。2. 默認(rèn)狀態(tài)下發(fā)生在數(shù)據(jù)庫(kù)中的事件都不計(jì)入審計(jì)。陳述 B:對(duì)無(wú)線數(shù)據(jù)網(wǎng)的拒絕服務(wù)攻擊既有簡(jiǎn)單無(wú)線電干擾,又有針對(duì)簡(jiǎn)單移動(dòng)設(shè)備或接入點(diǎn)的巧妙攻擊。 4. 兩個(gè)都錯(cuò)誤。 2. 陳述 A 錯(cuò)誤,陳述