A new company has been given one public IP address. The comp

题目
单选题
A new company has been given one public IP address. The company employs 200 users requiring Internet access from the headquarters. Which of the following can be implemented to provide Internet access for all the employees?()
A

Multicasting

B

Proxy server

C

NAT

D

Subnetting

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

下面程序段的输出结果是 class Test{ public static void main(String args[]){ MyThread t=new MyThread(); t.displayOutput("t has been created)); t.start(); } } class MyThread extends Thread{ public void displayOutput(String s){ System.out.println(s); } public void run(){ displayOutput(t is running."); } }

A.t has been created.

B.t has been created. t is running.

C.t is running.

D.编译出错


正确答案:A
解析:本题考查线程的创建和调用。创建一个新的线程对象后,通过使用 start()方法就可以启动该线程,线程也就处于可运行状态Runnable。Start()方法产生了线程运行需要的系统资源,并调用线程体,也就是run()方法,使得线程可以进入运行状态。程序运行时首先创建一个新的线程对象t,并调用displayOutput(Strings)方法输出t has been created。t.start()方法调用run()方法,输出t is running,所以正确答案为选项A。

第2题:

A new company has been given one public IP address. The company employs 200 users requiring Internet access from the headquarters.Which of the following can be implemented to provide Internet access for all the employees?()

A. Multicasting

B. Proxy server

C. NAT

D. Subnetting


参考答案:C

第3题:

下面程序段的输出结果是______。 class Test{ public static void main(String args[ ]){ MyThread t=new MyThread( ); t.displayOutput("t has been created"); t.start( ); } } class MyThread extends Thread{ public void display Output(String s){ System.out,println(s); } public void run( ){ displayOutput("t is running"); } }

A.t has been created t is running

B.t has been created

C.t is running

D.编译错误


正确答案:A
解析: 创建一个新的主线程对象后,通过使用start( )方法就可以启动此线程,线程就处于可运行状态Runnable。程序运行时,首先创建一个线程对象t,并调用displayOutput(Strings)方法输出“t has been created”。t.start( )方法调用run( )方法,输出“t is running”,所以正确答案为A。

第4题:

A company has recently switched ISPs and is being assigned a new block of public addresses.  The public web and FTP servers must be re-addressed to support this change.  After changing IP addresses and updating the DNS records many customers have reported that they are not able to access the web or FTP servers.  Which of the following could have been done prior to making these changes to make it more transparent to users?()

  • A、Reduce the TTL on the DHCP records.
  • B、Configure a primary DNS server for the PTR records.
  • C、Reduce the TTL on the DNS records.
  • D、Configure a caching only DNS server.

正确答案:C

第5题:

从下列的2道试题(试题五和试题六)中任选 1道解答。如果解答的试题数超过1道,则题号小的 1 道解答有效。

试题五(共15分)

阅读下列说明和C++代码,将应填入 (n) 处的字句写在答题纸的对应栏内。

【说明】

某公司的组织结构图如图5-1所示,现采用组合(Composition)设计模式来构造该公司的组织结构,得到如图5-2所示的类图。

其中 Company 为抽象类,定义了在组织结构图上添加(Add)和删除(Delete)分公司/办事处或者部门的方法接口。类ConcreteCompany表示具体的分公司或者办事处,分公司或办事处下可以设置不同的部门。类HRDepartment和 FinanceDepartment分别表示人力资源部和财务部。

【C++代码】

include <iostream>

include <list>

include <string>

using namespace std;

class Company { // 抽象类

protected:

string name;

public:

Company(string name) { (1) = name; }

(2) ; // 增加子公司、办事处或部门

(3) ; // 删除子公司、办事处或部门

};

class ConcreteCompany : public Company {

private:

list< (4) > children; // 存储子公司、办事处或部门

public:

ConcreteCompany(string name) : Company(name) { }

void Add(Company* c) { (5) .push_back(c); }

void Delete(Company* c) { (6) .remove(c); }

};

class HRDepartment : public Company {

public:

HRDepartment(string name) : Company(name) {} // 其它代码省略

};

class FinanceDepartment : public Company {

public:

FinanceDepartment(string name) : Company(name) {} // 其它代码省略

};

void main() {

ConcreteCompany *root = new ComcreteCompany("北京总公司");

root->Add(new HRDepartment("总公司人力资源部"));

root->Add(new FinanceDepartment("总公司财务部"));

ConcreteCompany *comp = new ConcreteCompany("上海分公司");

comp->Add(new HRDepartment("上海分公司人力资源部"));

comp->Add(new FinanceDepartment("上海分公司财务部"));

(7) ;

ConcreteCompany *comp1 = new ConcreteCompany("南京办事处");

comp1->Add(new HRDepartment("南京办事处人力资源部"));

comp1->Add(new FinanceDepartment("南京办事处财务部"));

(8) ; //其它代码省略

}


正确答案:
试题五(共15分)
(1)this->name(1分)
(2)virtual void Add(Company* c) = 0(2分)
(3)virtual void Delete(Company* c) = 0(2分)
(4)Company*(2分)
(5)children(2分)
(6)children(2分)
(7)root->Add(comp)(2分)
(8)comp->Add(comp1)(2分)

第6题:

阅读下列说明和Java代码,将应填入(n)处的字句写在答题纸的对应栏内。

【说明】

某公司的组织结构图如图6-1所示,现采用组合(Composition)设计模式来设计,得到如图6-2所示的类图。

其中Company为抽象类,定义了在组织结构图上添加(Add)和删除(Delete)分公司/办事处或者部门的方法接口。类ConcreteCompany表示具体的分公司或者办事处,分公司或办事处下可以设置不同的部门。类HRDepartment和FinanceDepartment分别表示人力资源部和财务部。

【Java代码】

import Java.util.*j

(1) Company{

protected String name;

public Company(String name) { (2)=name;}

public abstract void Add(Company C);//增加子公司、办事处或部门

public abstract void Delete(Company C);//删除子公司、办事处或部门

}

class ConcreteCompany extends Company{

private List<(3) >children=new ArrayList<(4)>();

//存储子公司、办事处或部门

public ConcreteCompany(String name){super(name);}

public void Add(Company c){(5).add(c);)

public void Delete(Company c){(6).remove(c);)

}

class HRDepartment extends Company{

public HRDepartment(String name){super(name);}

//其它代码省略

}

class FinanceDepartment extends Company{

public FinanceDepartment(String name){super(name);)

//其它代码省略

}

public class Test{

public static void main(String[]args){

ConcreteCompany root=new ConcreteCompany(“北京总公司”);

root.Add(new HRDepartment(“总公司人力资源部”));

root.Add(new FinanceDepartment(“总公司财务部”));

ConcreteCompany comp=new ConcreteCompany(“上海分公司”);

comp.Add(new HRDepartment(“上海分公司人力资源部”));

comp.Add(new FinanceDepartment(“上海分公司财务部”));

(7) ;

ConcreteCompany compl=new ConcreteCompany(“南京办事处”);

compl.Add(new HRDepartment(“南京办事处人力资源部”));

Compl.Add(new FinanceDepartment(“南京办事处财务部”);

(8); //其它代码省略

}

}


正确答案:(1)Abstract class (2)this->name (3)Company (4)ConcreteCompany (5)children (6)children (7)root->Add(comp) (8)root->Add(compl)
(1)Abstract class (2)this->name (3)Company (4)ConcreteCompany (5)children (6)children (7)root->Add(comp) (8)root->Add(compl) 解析:FinanceDepartment类和HRDepartment类以及ConcreteCompany类均继承类Company,实现了Company类的Add方法和Delete方法。同时,ConcreteCompany类与Company类是组合关系,多个ConcreteCompany类组合成Company类。

第7题:

An administrator has just installed a new NIC into the server. The system POSTs fine and the NIC is recognized by the OS, but it does not receive an IP address. Which of the following is the MOST likely cause of this?()

A. The NIC is not on the HCL.

B. The driver is incorrect on the server.

C. The patch cable has not been seated properly.

D. The NIC is not seated properly.


参考答案:C

第8题:

ALIBABA SEEKS TO RAISE BILLIONS IN IPO Investors in the United States are preparing for the first public sale of stock in the Chinese company Alibaba. The company sells goods________ linking buyers and sellers in the huge Chinese online market. Alibaba is expected to ________ its initial public offering, called an IPO, in September on the New York Stock Exchange. The total value of the company, based in Hangzhou, has been estimated at about $200 billion. Reports from Bloomberg News say Alibaba is offering investors a 12 percent ________ of the company. That would mean the company could raise ________ $20 billion dollars in the public stock sale. After the IPO, Alibaba could become one of the most ________ technology companies in the world. Apple, for example, has a market value of about $600 billion. Google is valued at about $390 billion and Microsoft is worth about $370 billion.


参考答案:by; make; share; as much as; valuable

第9题:

It was said that the new car__________to the institute as a gift by a businessman.

A.had given
B.would give
C.had been given
D.has been given

答案:C
解析:
考查时态、语态。答案选择哪一个,取决于was。It was said that...表示“据说……”发生在过去某时,而give这个动作发生在过去的过去,因此应用过去完成时。

第10题:

You work as a network Technician. A new workstation has consistently been unable to obtain anIP address from the DHCP server when the workstation boots. Older workstations function normally, and the new workstation obtains an address when manually forced to renew its address.  What should be configured on the switch to allow the workstation to obtain an IP address at boot?()

  • A、UplinkFast on the switch port connected to the server
  • B、BackboneFast on the switch port connected to the server
  • C、PortFast on the switch port connected to the workstation
  • D、trunking on the switch

正确答案:C

更多相关问题