answersLogoWhite

0

Uses of switch

Updated: 8/11/2023
User Avatar

Wiki User

11y ago

Best Answer

A switch is used as a convenient way to connect or disconnect an electrical circuit. When the switch is "open", the air or other insulation prevents electricity from flowing. When the switch is "closed", the conductive parts are touching each other and allow electricity to flow easily.

Switches are rated according to the amount of voltage and current they can handle. For instance, an ordinary light switch could not handle 10,000 volts at 15 amps, but might easily handle 120 volts at 15 amps.

Semiconductor "switches" are often called "transistors".

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

8y ago

Front and back door switches:

Front and back door switches You sometimes need two switches to switch on one buzzer. This would be like a house with a doorbell that you could ring from either the back door or the front door.

Making an electric motor go forwards or backwards:

Making an electric motor go forwards or backwards You can use two batteries and two push switches to make a motor change direction.

Switching on a light from upstairs or downstairs:

Switching on a light from upstairs or downstairs You can turn a light on and off from upstairs or downstairs.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

A switch statement in Java is used to represent condition logic for an expression and a series of possible values in a more concise way than a series of if-then-else statements.

Unlike if-then-else statements, the switch statement can have a number of possible execution paths.

Example of switch and if-then-else statement:

switch(expression) {

case a:
code block a

break;


case b:
case c:
code block b/c

break;

default:
default code block d

}

if (expression == a) {

code block a

} else if (expression c) {

code block b/c

} else {

default code block d

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Uses of switch
Write your answer...
Submit
Still have questions?
magnify glass
imp