[配置路由器信息] Current configuration: ! host

题型:填空题

问题:

[配置路由器信息]
Current configuration:
!
hostname router1
isdn switch-type basic-net3 (1)
!
interface Ethernet0
ip address 10.0.0.1 255.255.255.0
ip nat inside (2)
!
interface bri 0
ip address negotiated (3)
ip nat outside
encapsulation PPP
PPP authentication pap callin (4)
PPP multlink (5)
dialer-group 1
dialer string 2633
PPP pap sent-username 263 password 263 (6)
ip route 0.0.0.0 0.0.0.0 bri 0
access-list 2 permit any (7)
dialer-list 1 protocol ip permit (8)
ip nat inside source list 2 interface bri 0 overload (9)
……
End

考点:计算机软件水平考试中级网络工程师中级网络工程师下午试题
题型:填空题

[说明]

对多个元素的聚合进行遍历访问时,需要依次推移元素,例如对数组通过递增下标的方式,数组下标功能抽象化、一般化的结果就称为迭代器(Iterator)。模式以下程序模拟将书籍(Book)放到书架(BookShelf)上并依次输出书名。这样就要涉及到遍历整个书架的过程。使用迭代器Iterator实现。图6-1显示了各个类间的关系。以下是JAVA语言实现,能够正确编译通过。

[图6-1]

[Java代码]

//Iterator. java文件

public interface Iterator

public abstract boolean hasNext();

public abstract Object next();

//Aggregate. java文件

public interface Aggregate

public abstract Iterator iterator();

//Book. java

public class Book

//省略具体方法和属性

//BookshelfIterator. java文件

public class Bookshelf工terator (1) Iterator

private BookShelf bookShelf;

private int index;

public BookshelfIterator(BookShelf bookShelf)

this. bookShelf = bookShelf;

this. index = 0;

public boolean hasNext()//判断是否还有下一个元素

if(index < bookShelf. getLength())

return true;

else

return false;

public Object next()f//取得下一个元素

Book book = bookShelf. getBookAt(index);

index++;

return book;

//BookShelf. java

import java. util. Vector;

public class BookShelf

private Vector books;

public BookShelf(int initialsize)

this. books = new Vector(initialsize);

public Book getBookAt(int index)

return(Book)books.get(index);

public int getLength()

return books.size();

public Iterator iterator()

return new BookShelfIterator( (2) );

//Main. java文件

public class Main

public static void main(String args)

BookShelf bookShelf = new BookShelf(4);

//将书籍上架,省略代码

Iterator it = bookShelf. (3) ;

while( (4) )//遍历书架,输出书名

Book book = (Book)it. (5) ;

System.out.printin(" "+book.getName());

(3)处填()。

题型:填空题

下列哪些是口腔颌面部手术麻醉的特点()。

A.容易发生气道梗阻

B.常需经鼻插管

C.需远离手术区控制病人的呼吸

D.血液及异常分泌物较多,需注意术后气道的管理

E.降压麻醉在口腔颌面部手术中很有价值

题型:填空题

月经期应注意.卫生保健,错误的是

A.防寒保暖

B.忌食辛辣

C.禁止盆浴、坐浴

D.保持外阴清洁

E.月经量少时可游泳

题型:填空题

采暖室外计算温度应采用( )。

A.10年平均不保证5天的日平均温度
B.10年平均不保证3天的日平均温度
C.历年平均不保证3天的日平均温度
D.历年平均不保证5天的日平均温度

题型:填空题

1949年1月至9月享受实物薪金制待遇的干部,能否办理离休?为什么?

更多题库