参考答案和解析
正确答案:C
更多“Transport gateways connect byte streams in the transport layer. Application gateways allow ”相关问题
  • 第1题:

    根据如图6-3所示的UML类图可知,类Car和类Boat中的move()方法(47)。

    A.引用了类Transport的move()方法

    B.重置了类Transport的move()方法

    C.是类Transport的move()方法的聚集

    D.是类Transport的move()方法的泛化


    正确答案:B
    解析:在UML类图中,“”表示其相连的两个类之间存在泛化关系,即在图6-3中显示了一个继承结构:类Transport为基类,其子类分别为类Car和类Boat。同时注意到,在图6-3中的类Transport的名称之下有一个标识abstract>>。该标识用于说明该类是一个抽象类,类中的方法move()是必须在子类中重新定义的纯虚拟函数。由图6-3可以看出,在两个子类中都定义了函数原型完全相同的move()方法。在面向对象程序设计中,使用动态多态重置(overriding)时需满足3个条件:①类之间具有继承关系、②基类中至少定义一个纯虚拟函数在子类中重新定义这个纯虚拟函数。图6-3给出的UML类图结构满足了重置的3个条件,说明子类Car和子类Boat中的move()方法重置了基类Transport的move()方法。

  • 第2题:

    根据如下所示的UML类图可知,类Car和类Boat中的move()方法(1)。

    A.引用了类Transport的move()方法

    B.重置了类Transport的move()方法

    C.是类Transport的move()方法的聚集

    D.是类Transport的move()方法的泛化


    正确答案:B
    解析:本题考查的是面向对象程序设计中的动态多态——重置(overriding)。使用重置时需满足三个条件:类之间具有继承关系、基类中至少定义一个纯虚拟函数、在子类中重新定义这个纯虚拟函数。本题将这个知识点与UML类图结合起来考查。题中所示的UML类图显示了一个继承结构:类Transport为基类,其子类分别为类Car和类Boat。值得注意的是,图中的类 Transport的表示,在其名字之下有一个标识abstract>>,这说明该类是一个抽象类,类中的方法move()就是必须在子类中重新定义的纯虚拟函数。由图中可以看出,在两个子类中都定义了函数原型完全相同的move()方法。因此该UML类图给出的结构满足了重胃的三个条件,说明类Car和类Boat中的move()方法重置了类Transport的move()方法。

  • 第3题:

    The Hypertext Transfer Protocol , the Web's (请作答此空) protocol , is at the heart of the Web. HTTP is implemented in two programs : a ( ) program and a server program . The client program and server program executing on different end systems , talk to each other by ( ) HTTP messages . HTTP defines how Web clients request Web pages from servers and how servers transfer web pages to clients . when a user ( ) a web page , the browser sends http request messages for the objects in the page to the server . The server ( ) the requests and responds with http response messages that contain the objects .

    A.transport-layer
    B.application-layer
    C.network-layer
    D.link-layer

    答案:B
    解析:
    Web的应用层协议是超文本传输协议,是web核心。HTTP在两类程序(客户端程序、服务器端程序)中执行。客户端程序、服务器端程序在不同的终端系统中执行,通过交换HTTP消息来进行交互。HTTP定义了Web客户端如何从服务器端请求Web页面以及服务器端如何传送Web页面到服务器。当用户请求一个web页面,浏览器发送页面对象的http请求给服务器。服务器接收请求并用包含对象的http消息进行响应。

  • 第4题:

    OSI参考模型有哪些层,按顺序()。

    A.Application、session、transport、network、physical、physical、datalink

    B.Application、presentation、session、network、transport、datalink,physical

    C.Application、presentation、session、transport、network、datalink、physical

    D.Application、session、transport、physical、network、physical、datalink


    正确答案:C

  • 第5题:

    药物的转运(transport)


    答案:
    解析:
    药物的跨模运动。

  • 第6题:

    The Hypertext Transfer Protocol,the Web's(请作答此空)protocol,is at the heart of the Web.HTTP is implemented in two programs:a( )program and a server program.The client program and server program executing on different end systems,talk to each other by( )HTTP messages.HTTP defines how Web clients request Web pages from servers and how servers transfer web pages to clients.when a user( )a web page,the browser sends http request messages for the objects in the page to the server.The server( )the requests and responds with http response messages that contain the objects.

    A.transport-layer
    B.application-layer
    C.network-layer
    D.link-layer

    答案:B
    解析:
    Web的应用层协议是超文本传输协议,是web核心。HTTP在两类程序(客户端程序、服务器端程序)中执行。客户端程序、服务器端程序在不同的终端系统中执行,通过交换HTTP消息来进行交互。HTTP定义了Web客户端如何从服务器端请求Web页面以及服务器端如何传送Web页面到服务器。当用户请求一个web页面,浏览器发送页面对象的http请求给服务器。服务器接收请求并用包含对象的http消息进行响应。