Answer:
Explanation: If and else statements are one of the most important parts of programming.
1. You add an if you do something if a condition is met. For example, if number of chocolates equals zero( a condition), and inside you can do something like buy more chocolates. And else statement happens if the if condition isn't met and you want to the code to do something else. You don't need this if you don't want anything to happen if the if condition isn't true.
2. This might be used in a number guessing game. Let's say you have to guess a number, if its correct the computer should correct but if you get it wrong it should display wrong. You can write if the number the user writes in equal to the number you are supposed to guess say correct. Else say wrong
Hope this helps. Please mark as brainliest! Thanks!
Helpful, resourceful, friendly, welcoming.
It can illustrate cooperation's and kindness by allowing many different people and strangers to post their opinions and thoughts as long as they are being positive about it! Hope i helped
Answer:
The data-link layer
Explanation:
The physical layer and data-link layer are often confused a lot especially in terms of what they do in the TCP/IP 7 layer protocol. The physical layer as the name suggests represents the physical devices like the cables and the connectors that join or interconnect computers together. This layer is also responsible for sending the signals over to other connections of a network. The data-link, on the other hand, translates and interprets these sent binary signals so that network devices can communicate. This layer is responsible in adding mac addresses to data packets and encapsulating these packets into frames before being placed on the media for transmission. Since it resides in between the network layer and the physical layer, it connects the upper layers of the TCP/IP model to the physical layer.
A vlan can span multiple interconnected switches.
<h3>
What is a vlan?</h3>
A virtual LAN (VLAN) is a logical overlay network that groups together a subset of devices that share a physical LAN, isolating the traffic for each group.
A LAN is a group of computers or other devices in the same place -- e.g., the same building or campus -- that share the same physical network.
Each virtual switch, or VLAN, is simply a number assigned to each switch port.
For example, the two switch ports in the red mini-switch might be assigned to VLAN #10 . The two ports in the orange mini-switch might be assigned to VLAN #20 .
VLANs can be used for different groups of users, departments, functions, etc., without needing to be in the same geographical area.
VLANs can help reduce IT cost, improve network security and performance, provide easier management, as well as ensuring network flexibility.
To learn more about vlan, refer
https://brainly.in/question/2890503
#SPJ4