Answer:
<em>Ethernet cables, Network Adapters, Modem, Routers, Switches.</em>
Explanation:
<em>The devices that are required in setting up a wired network for the 5 computer comprises of the following devices </em>
- <em>Ethernet Cables</em>
- <em>Network Adapters</em>
- <em>Modem/Router</em>
- <em>Network Switch</em>
<em>Ethernet cables: They are called network cables or RJ-45 cables used to in connecting two or more computers together. it has different categories called, the untwisted pair and twisted pair Ethernet, with a speed from 10-1000</em>
<em>Network Adapters : This adapters allows a computer device to connect and interface with a network computer</em>
<em>Modem/Routers : A router is a device that that sits in the middle between your local computers and modems. it takes receives information or gets information from the modem and delivers it to the computer</em>
<em>Network switch: it connects more than two computers together to a network and share data among themselves and other devices on the network</em>
Answer:
19.71 ms
Explanation:
The disk rotates at 3600 rpm, hence the time for one revolution = 60 / 3600 rpm = 16.67 ms.
Hence time to read or write on a sector = time for one revolution / number of sectors per track = 16.67 ms / 32 sectors = 0.52 ms
Head movement time from track 8 to track 9 = seek time = 2 ms
rotation time to head up sector 1 on track 8 to sector 1 on track 9 = 16.67 * 31/32 = 16.15 ms
The total time = sector read time +head movement time + rotational delay + sector write time = 0.52 ms + 2 ms + 16.15 ms + 0.52 ms = 19.19 ms
Answer:
public ArrayList onlyBlue(String[] clothes){
ArrayList<String> blueCloths = new ArrayList<>();
for(int i =0; i<clothes.length; i++){
if(clothes[i].equalsIgnoreCase("blue")){
blueCloths.add(clothes[i]);
}
}
return blueCloths;
}
Explanation:
- Create the method to accept an Array object of type String representing colors with a return type of an ArrayList
- Within the method body, create and initialize an Arraylist
- Use a for loop to iterate the Array of cloths.
- Use an if statement within the for loop to check if item equals blue and add to the Arraylist.
- Finally return the arrayList to the caller
Answer:
The program to this question as follows:
Program:
x=int(input('Input the first number: ')) #defining variable x and input value by user
y=int(input('Input the second number: ')) #defining variable y and input value by user
if x > y: #if block to check value x>y
max=x #define variable max that hold variable x value
print('max number is: ', x) #print value
else: #else block
max=y #define variable max that holds variable y value
print('max number is: ', y) #print value
Output:
Input the first number: 22
Input the second number: 33
max number is: 33
Explanation:
In the above code two-variable, "x and y" is defined, which holds a value, which is input by the variable. In the next step, the if block statement is used that can be described as follows:
- In the if block, it will check x is greater than y it will define a variable, that is "max", that holds variable x value and prints its value.
- In the else block, if the above condition is false it uses the max variable, that holds variable y value and prints its value.
Answer:
Session hijacking
Explanation:
Session hijacking : Session hijacking is an attack where a user session is taken over by an attacker. A session starts when you log into a service, for example your banking application, and ends when you log out.