一起答
单选

已知3个类R、S和T,类R中定义了一个私有方法F1和一个公有方法F2;类S中定义了一个公有方法F3,类S为类R的派生类,类T为类S的派生类,它们的继承方式如下所示:

 class S: public R {…};

 class T: private S {…};

在关于类S的描述中正确的是(5);在关于类T的描述中正确的是(6)。

  • A.类S的对象可以访问F1,但不能访问F2
  • B.类S的对象可以访问F2,但不能访问F1
  • C.类S的对象既可以访问F1,也可以访问F2
  • D.类S的对象既不能访问F1,也不能访问F2
试题出自试卷《软件水平考试(中级)网络工程师上午(基础知识)试题模拟试卷16》
参考答案
查看试卷详情
相关试题
  1. (143)

    • A.rate
    • B.velocity
    • C.bandwidth
    • D.period
  2. (142)

    • A.bits
    • B.frequencies
    • C.packets
    • D.messages
  3. (141)

    • A.splitting
    • B.combining
    • C.packing
    • D.compacting
  4. (140)

    • A.direct-sequence
    • B.discrete-sequence
    • C.duplicate-sequence
    • D.dedicate-sequence
  5. (138)

    • A.HTTP
    • B.URL
    • C.HTML
    • D.TAG
  6. In the following essay, each blank has four choices. Choose the best answer and write down on the answer sheet.

     Spread spectrum simply means that data is sent in small pieces over a number of the(71)frequencies available for use at any time in the specified range. Devices using(72)spread spectrum(DSSS)communicate by(73)each byte of data into several parts and sending them concurrently on different(74). DSSS uses a lot of the available(75), about 22 megahertz(MHz).

    • A.continuous
    • B.high
    • C.low
    • D.discrete
  7. (137)

    • A.ISDN
    • B.X.25
    • C.Frame. Relay
    • D.ATM
  8. (136)

    • A.OSPF
    • B.RIP
    • C.RARP
    • D.BGP
  9. (135)

    • A.4B/SB
    • B.CRC
    • C.Manchester Code
    • D.Huffman Code
  10. For each blank, choose the best answer from the four choices and write down on the answer sheet.

    (66)is a protocol that a host uses to inform. a router when it joins or leaves an Internet multicast group.

    (67)is an error detection code that most data communication networks use.

    (68)is an interior gateway protocol that uses a distance vector algorithm to propagate routing information.

    (69)is a transfer mode in which all types of information are organized into fixed form. cells on an asynchronous or non-periodic basis over a range of media.

    (70)is an identifier of a web page.

    • A.ICMP
    • B.SMTP
    • C.IGMP
    • D.ARP