现自:  1.  interface Color {  }      2. interface Weight  {  }

题目
单选题
现自:  1.  interface Color {  }      2. interface Weight  {  }      3.  //insert code here    和以下足六个声明:  class Boat extends Color, extends Weight  {  }     class Boat extends Color and Weight  {  }      class Boat extends Color, Weight  {  }  class Boat implements Color,  implements Weight  {  }     class Boat implements Color and Weight  {  }      class Boat implements Color, Weight  {  }    分别插入到第3行,有多少行可以编译? ()
A

  0

B

  1

C

  2

D

  3

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

第1题:

A network administrator creates a layer 3 EtherChannel, bundling four interfaces into channel group 1. On what interface is the IP address configured?()

A.the port-channel 1 interface

B.the highest number member interface

C.all member interfaces

D.the lowest number member interface


参考答案:A

第2题:

下列关于loop back interface的说法()是不正确的?

A.loop back interface是CISCO路由器上缺省端口

B.loop back interface一个永远不会DOWN的逻辑端口

C.loop back interface是一个做自环测试的端口

D.loop back interface是对端使用LOOPBACK命令测试链路后本端的端口状态


参考答案:A, C, D

第3题:

Which command allows you to decode packets in JUNOS?()

A.debug packet interface-name

B.show interface extensive

C.traceoptions interface-name

D.monitor traffic interface interface-name


参考答案:D

第4题:

To troubleshoot interface problems, you can use both the disable command and the deactivate command. Which two statements are correct?()

  • A、If the interface is disabled, the logical unit will administratively shutdown.
  • B、If the interface is deactivated, the physical interface will administratively shutdown.
  • C、If the interface is deactivated, the interface configuration is ignored during commit.
  • D、If the interface is disabled, the logical unit configuration is ignored during commit.

正确答案:B,C

第5题:

Which command allows you to view interface usage details in real-time?()

  • A、user@host> debug interface interface-name
  • B、user@host> monitor usage interface-name
  • C、user@host> monitor interface interface-name
  • D、user@host> traceoptions interface interface-name

正确答案:C

第6题:

Whichcommandshowsif an accesslistisassignedtoaninterface?()

A.show ip interface [interface] access-lists

B.show ip access-lists interface [interface]

C.show ip interface [interface]

D.show ip access-lists [interface]


参考答案:C

第7题:

public interface A {  String DEFAULT_GREETING = “Hello World”;  public void method1();  }  A programmer wants to create an interface called B that has A as its parent. Which interface declaration is correct?() 

  • A、 public interface B extends A {}
  • B、 public interface B implements A {}
  • C、 public interface B instanceOf A {}
  • D、 public interface B inheritsFrom A {}

正确答案:A

第8题:

Which command shows if an access list is assigned to an interface?()

A. show ip interface [interface] access-lists

B. show ip access-lists interface [interface]

C. show ip interface [interface]

D. show ip access-lists [interface]


参考答案:C

第9题:

Which three demonstrate an “is a” relationship?() 

  • A、 public class X {  }     public class Y extends X { }
  • B、 public interface Shape { }     public interface Rectangle extends Shape{ }
  • C、 public interface Color { }     public class Shape { private Color color; }
  • D、 public interface Species { }     public class Animal { private Species species; }
  • E、 public class Person { }    public class Employee {      public Employee(Person person) { }
  • F、 interface Component { }     class Container implements Component {   private Component[] children; }

正确答案:A,B,F

第10题:

现自:  1.  interface Color {  }      2. interface Weight  {  }      3.  //insert code here    和以下足六个声明:  class Boat extends Color, extends Weight  {  }     class Boat extends Color and Weight  {  }      class Boat extends Color, Weight  {  }  class Boat implements Color,  implements Weight  {  }     class Boat implements Color and Weight  {  }      class Boat implements Color, Weight  {  }    分别插入到第3行,有多少行可以编译? () 

  • A、  0
  • B、  1
  • C、  2
  • D、  3

正确答案:B

更多相关问题