You are configuring a switch so that a specific port on the switch is assigned to VLAN 3. What command do you use to assign FastEthernet port 0/4 to VLAN 3 on a Cisco switch?
a.
Switch(config)#int fa 0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 3
b.
Switch(config)#int fa 0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access 3
c.
Switch(config)#int fa 0/4
Switch(config)#switchport mode access
Switch(config-if)#switchport access vlan 3
d.
Switch(config)#int fa 0/4
Switch(config-if)#switchport mode access 3
Switch(config-if)#switchport access vlan
a.
Switch(config)#int fa 0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 3
You might also like to view...
Words with a special meaning that may be used only for their intended purpose are known as
A) single purpose words.. B) programmer-defined identifiers. C) keywords. D) syntax words. E) none of the above.
Write a switch statement to convert a letter grade into an equivalent numeric value on a four-point scale. Set the value of the variable gradeValue to 4.0 for an A, 3.0 for a B, 2.0 for a C, 1.0 for a D, and 0.0 for an F. For any other letter, set the value to 0.0 and display an error message.
What will be an ideal response?
Write a new class TruncatedDollarFormat that is the same as the class DollarFormat from Listing 6.14, except that it truncates rather than rounds to obtain two digits after the decimal point. When truncating, all digits after the first two are discarded, so 1.229 becomes 1.22, not 1.23. Repeat Programming Project 3 in Chapter 4 using this new class.
This project may require a little trial and error to get the code right to truncate past the two digits of the cents and not lose the cents completely. Casting a double to an int will truncate, but it has to be done after the dollars.cents is multiplied by 100, and an explicit cast is required by the java compiler (unlike C or C++): ``` int allCents = amount * 100; ``` gives a compiler error since amount is type double. ``` int allCents = (int)amount * 100; ``` loses the cents part of amount because the cast operates on amount before multiplying by 100. Putting parentheses around the multiplication, however, makes it do the multiplication first: ``` int allCents = (int)(amount * 100); ``` so it does not lose the cents digits. The only other “tricky” part is using the write() method in TruncatedDollars along with System.out.println() and System.out.print() to display money values interspersed with text in sentences.
What type of job involves working at client locations and the ability to work with little direct supervision?
a. field-based b. project-based c. office-based d. home-based