Java认证考试

Which statements concerning the switch construct are true?()  A、All switch statements must have a default label.B、There must be exactly one label for each code segment in a switch statement.C、The keyword continue can never occur within the body of a switc

题目

Which statements concerning the switch construct are true?()  

  • A、All switch statements must have a default label.
  • B、There must be exactly one label for each code segment in a switch statement.
  • C、The keyword continue can never occur within the body of a switch statement.
  • D、No case label may follow a default label within a single switch statement.
  • E、A character literal can be used as a value for a case label.
如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which two statements about login classes correctly define their usage within the JUNOS software?()

A.A different login class must be configured for each user.

B.Individual commands can be explicitly allowed or denied.

C.A user must be assigned to one of the default login classes.

D.Each login class is associated with one or more permissions flags.


参考答案:B, D

第2题:

A new switch is installed in the Testking network. This switch is to be configured sothat VLAN information will be automatically distributed to all the other Cisco Catalyst switches in the network.Which of the conditions below have to be met in order for this to occur?()

A. The switch that will share the VLAN information must be in the VTP Server mode.

B. The switches must be in the same VTP domain.

C. The switch that will share the VLAN information must be configured as the root bridge.

D. The switches must be configured to use the same VTP version.

E. The switches must be configured to use the same STP version.

F. The switches must be configured to use the same type of ID tagging.

G. The switches must be connected over VLAN trunks.


参考答案:A, B, F

第3题:

When comparing and contrasting the similarities and differences between bridges and switches, which of the following are valid statements? Choose all the valid answer choices)

A. Bridges are faster than switches because they have fewer ports.

B. A switch is a multiport bridge,

C. Bridges and switches learn MAC addresses by examining the source MAC address of each frame. received.

D. A bridge will forward a broadcast but a switch will not.

E. Bridges and switches increase the size of a collision domain.

F. None of the above statements are true.


正确答案:BC
B,C 解析:Explanation:
Both bridges and switches build the bridge table by listening to incoming frames and examining the source MAC address in the frame.

Switches are multiport bridges that allow you to create multiple broadcast domains. Each broadcast domain is like a distinct virtual bridge within a switch.

Incorrect Answers:
A. Switches are generally faster than bridges. Bridges also do not necessarily have fewer ports than switches.

D. Both bridges and switches will forward broadcast and multicast traffic, assuming that the traffic remains in the same VLAN.

E. The use of VLANs in a switch can decrease the size of the collision domain, by creating additional, smaller collision domains.

第4题:

You have configured voice VLANs on Catalyst switch R1.  Which two statements are true about the  operation of voice VLANs on this device? ()

  • A、 When the voice VLAN feature is enabled, all untagged traffic is sent according to the default  CoS priority of the port.
  • B、 Enabling voice VLANs enables the switch to create multiple queues for traffic that is entering a  port.
  • C、 When voice VLANs are configured on a trunk link, UplinkFast must also be enabled.
  • D、 Voice VLANs are configured to enable the switch to forward frames marked with the proper  CoS values over separate physical links.
  • E、 Enabling voice VLANs enables the switch to forward frames with a specific 802.1P marking.

正确答案:A,E

第5题:

Which three statements about VTP features are true?()

A.When properly configured,VTP minimizes VLAN misconfigurations and configuration inconsistencies

B.Each broadcast domain on a switch can have its own unique VTP domain

C.VTP works at Layer 3 of the OSI model and requires that a management VLAN IP address be configured.

D.When properly configured,VTP maintains VLAN configuration consistency and accelerates trunk link negotiation.

E.VTP pruning is used to increase available bandwidth in trunk links

F.Client,server,and transparent are valid VTP modes

G. To configure a switch to be part of two VTP domains,each domain must have its own passwords


参考答案:A, E

第6题:

You are configuring a new Catalyst switch that you want to manage remotely from workstations on other network segments within your enterprise.Which of the following are required to allow remote management of the switch over IP?()

A. The switch name must match the workgroup name of the local network.

B. The switch must be configured with an IP address and default gateway.

C. The remote workstations must have access to the management VLAN of the switch.

D. CDP must be enabled on the switch so that it can be located by other devices on the network.


参考答案:B, C

第7题:

Refer to the exhibit. The output that is shown is generated at a switch. Which three of these statements are true? ()

A.All ports will be in a state of discarding, learning, or forwarding.

B.Thirty VLANs have been configured on this switch.

C.The bridge priority is lower than the default value for spanning tree.

D.All interfaces that are shown are on shared media.

E.All designated ports are in a forwarding state.

F.The switch must be the root bridge for all VLANs on this switch.


参考答案:A, C, E

第8题:

A new switch is installed in the Ezonexam network. This switch is to be configured so that VLAN information will be automatically distributed to all the other Cisco Catalyst switches in the network.

Which of the conditions below have to be met in order for this to occur? (Choose all that apply).

A. The switch that will share the VLAN information must be in the VTP Server mode.

B. The switches must be in the same VTP domain.

C. The switch that will share the VLAN information must be configured as the root bridge.

D. The switches must be configured to use the same VTP version.

E. The switches must be configured to use the same STP version.

F. The switches must be configured to use the same type of ID tagging.

G. The switches must be connected over VLAN trunks.


正确答案:ABFG
A,B,F,G 解析:Explanation:
For the VLAN information to pass automatically throughout the network, VTP must be set up correctly. In order for VTP to work, a VTP server is needed, the VLAN's must be in the same VTP domain, and the encapsulation on each end of the trunk must both set to either 802.1Q or ISL.

Incorrect Answers:
C. Root bridges and other functions of the Spanning Tree Protocol (STP) have no impact of the VTP configuration.

D, E. There is only one version of VTP and STP.

第9题:

Which three statements about VTP features are true?()

  • A、When properly configured,VTP minimizes VLAN misconfigurations and configuration inconsistencies
  • B、Each broadcast domain on a switch can have its own unique VTP domain
  • C、VTP works at Layer 3 of the OSI model and requires that a management VLAN IP address be configured.
  • D、When properly configured,VTP maintains VLAN configuration consistency and accelerates trunk link negotiation.
  • E、VTP pruning is used to increase available bandwidth in trunk links
  • F、Client,server,and transparent are valid VTP modes
  • G、To configure a switch to be part of two VTP domains,each domain must have its own passwords

正确答案:A,E,F

第10题:

Which two statements are true regarding an Ethernet collision domain?()

  • A、If a switch is used, the collision domain is limited to each device and the switch
  • B、If a hub is used, the collision domain is limited to each device and the hub
  • C、If a hub is used, the collision domain includes all devices connected to the hub
  • D、If a switch is used, the collision domain includes all devices connected to the switch

正确答案:A,C

更多相关问题