Answer:
Answer explained below. Python language used
Explanation:
The size of the square is of size 10. So assuming zero indexing,
vertical side1 (column Index = 5): row index from 5 to 14
vertical side1 (column Index = 14): row index from 5 to 14
horizontal side1 (row Index = 5): column index from 5 to 14
horizontal side2 (row Index = 14): column index from 5 to 14
Note:
while indexing, data_new[a:b,c] denotes,
row index: a to b-1
column index: c
Similarly data_new[a,b:c] denotes,
row index: a
column index: b to c-1
<u>Code:
</u>
import matplotlib.pyplot as plt
import numpy as np
size_1 = 20
size_2 = 20
data_new = np.random.random((size_1,size_2))
data_new[5:15,5] = 4
data_new[5:15,14] = 4
data_new[5,5:15] = 4
data_new[14,5:15] = 4
fig = plt.figure(figsize=(10,10))
plt.imshow(data_new)
plt.colorbar()
plt.show()
Answer:
import java.util.Scanner;
public class num2 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int total = 0;
for(int i=0; i<5; i++){
System.out.println("Enter next Int: ");
total = total+in.nextInt();
}
System.out.println(total);
}
}
Explanation:
In the code above written in Java programming language, the for loop statement for(int i=0; i<5; i++) ensures that the loop goes from 0-4 a total of five times.
At each iteration it requests a user to enter an int. The number entered is stored in the variable total which is initially assigned 0.
When the loop finishes execution, total is printed out
Answer: Well known ports
Explanation:
DHCP server transmit the response to the dynamic host configuration server protocol (DHCP) clients. DHCP default port is 67 and its port number is greater than the user data-gram specific port.
FTP server has its default listen at port 21 and file transition protocol(FTP) uses two transmission control protocol(TCP) connection for communication in the network. FTP passes information in port number 21, which is only used to send control information.
Well known port are use to identify the service of network on the public internet and private internet network. Therefore, port 21 and 67 are the well known ports.
Answer: apply heading styles to text.
Explanation:
Answer:
HTML Link Colors
By default, a link will appear like this (in all browsers):
An unvisited link is underlined and blue
A visited link is underlined and purple
An active link is underlined and red
You can change the link state colors, by using CSS: