Is an open standard promotes interoperability among the wireless client adapters and dial-in servers from different vendors.()
第1题:
OSI参考模型中的OSI表示的是()。
A.Organization Standard Institute
B.Organization Standard Inter connection
C.Open System Internet
D.Open System Inter connection
第2题:
请把下述代码加上异常处理。
int MyWriteFile(CString strFileName, CString strText)
{
int nRet = 0;
CFile myFile;
myFile.Open(strFileName, CFile::modeWrite|CFile::shareExclusive|CFile::modeCreate,
NULL);
int nLen = strText.GetLength();
myFile.Write((char*)(LPCSTR)strText, nLen);
myFile.Close();
return nRet;
}
第3题:
请认真阅读以下关于某传输系统的技术说明、状态转换图及C++代码,根据要求回答问题1和问题2。
【说明】
传输门是传输系统中的重要装置。传输门具有Open(打开)、Closed(关闭)、Opening(正在打开)、StayOpen(保持打开)和Closing(正在关闭)5种状态。触发状态的转换事件有click、complete和timeout 3种,事件与其相应的状态转换如图6-18所示。

下面的【C++代码1】与【C++代码2】分别用两种不同的设计思路对传输门进行状态模拟,请填补代码段中的空缺语句。
【C++代码1】
const int CLOSED = 1; const int PENING = 2;
const int PEN = 3; const int CLOSING = 4;
const int STAYOPEN = 5; //定义状态变量,用不同整数表示不同状态
class Door {
private:
private:
int state; //传输门当前状态
void setState(int state) { this->state = stale; } //设置当前状态
public:
Door () :state (CLOSED) { };
void getState() { //根据当前状态输出相应的字符串
switch(state) {
case OPENING: cout <<"OPENING" << endl; break;
case CLOSED: cout << "CLOSED" << endl; break;
case OPEN: cout << "OPEN" << endl; break;
case CLOSING: cout << "CLOSING" << endl; break;
case STAYOPEN: cout << "STAYOPEN" << endl; break;
}
}
void click() { //发生click事件时进行状态转换
if ( (1) ) setState(OPENING);
else if ( (2) ) setState(CLOSING);
else if ( (3) ) setState(STAYOPEN);
}
void timeout() { //发生timeout事件时进行状态转换
if (state == OPEN) setState(CLOSING);
}
void complete() { //发生complete事件时进行状态转换
if (state == OPENING) setState(OPEN);
else if (state == CLOSING) setState(CLOSED);
}
};
int main(){
Door aDoor;
aDoor.getState(); aDoor.click(); aDoor.getState(); aDoor.complete();
aDoor.getState(); aDoor.click(); aDoor.getState(); aDoor.click();
aDoor.getState(); return 0;
}
【C++代码2】
class Door {
public:
DoorState *CLOSED, *OPENING, *OPEN, *CLOSING, *STAYOPEN, *state;
Door();
virtual ~Door() { ... //释放申请的内存,此处代码省略};
void s
第4题:
A. L2TP
B. IPsec
C. PPTP
D.RSA
第5题:
What will be the result of attempting to compile and run the following code?() public class Q6b0c { public static void main(String args[]) { int i = 4; float f = 4.3; double d = 1.8; int c = 0; if (i == f) c++; if (((int) (f + d)) == ((int) f + (int) d)) c += 2; System.out.println(c); } }
第6题:
OSI参考模型中的OSI表示的是()
第7题:
When open for an XPage, Standard views in the Domino Designer include all of the following EXCEPT?()
第8题:
What will be written to the standard output when the following program is run?() public class Qcb90 { int a; int b; public void f() { a = 0; b = 0; int[] c = { 0 }; g(b, c); System.out.println(a + " " + b + " " + c[0] + " "); } public void g(int b, int[] c) { a = 1; b = 1; c[0] = 1; } public static void main(String args[]) { Qcb90 obj = new Qcb90(); obj.f(); } }
第9题:
The program will fail to compile.
The program will not terminate normally.
The program will write 10 to the standard output.
The program will write 0 to the standard output.
The program will write 9 to the standard output.
第10题:
Outsourcing
Transporting
Warehousing
Distributing
第11题:
9
18
20
21
22
第12题:
802.11B
spanning-tree
802.1Q
ISL
VTP
Q.921
第13题:
以下程序的执行结果是【 】。
include <iostream.h>
include <fstream.h>
include <stdlib.h>
int main()
{
fstream outfile, infile;
outfile.open("D:\\text.dat",ios::out);
if(!outfile)
{
cout<<"text.dat can't open"<<end1
第14题:
有以下程序: #include <iostream> #include <fstream> using namespace std; int main ( ) { ofstream ofile; char ch; ofile.open ("abc.txt"); cin>>ch; while (ch!='#' ) { cin>>ch; ofile.put(ch);
A.程序编译时出错
B.abc#
C.abc
D.#
第15题:
A.WEP
B.HTTP
C.SSID
D.EAP
第16题:
Which statements can be inserted at the indicated position in the following code to make the program write 1 on the standard output when run?() public class Q4a39 { int a = 1; int b = 1; int c = 1; class Inner { int a = 2; int get() { int c = 3; // insert statement here return c; } } Q4a39() { Inner i = new Inner(); System.out.println(i.get()); } public static void main(String args[]) { new Q4a39(); } }
第17题:
If you needed to transport traffic coming from multiple VLANs (connected between switches), and your CTO was insistent on using an open standard,which protocol would you use?()
第18题:
Which protocol is an open standard protocol framework that is commonly used in VPNs,to provid secure end-to-end communication?()
第19题:
What will be the result of attempting to compile and run the following program?() public class Q28fd { public static void main(String args[]) { int counter = 0; l1: for (int i=10; i<0; i--) { l2: int j = 0; while (j < 10) { if (j > i) break l2; if (i == j) { counter++; continue l1; } } counter--; } System.out.println(counter); } }
第20题:
You want to create a template to be used as a standard for all company reports. What is the easiest way to do this?()
第21题:
The code will fail to compile.
0 will be written to the standard output.
1 will be written to the standard output.
2 will be written to the standard output.
3 will be written to the standard output.
第22题:
c = b;
c = this.a;
c = this.b;
c = Q4a39.this.a;
c = c;
第23题:
12
18
8
9
27