Answer: (B) Allow the firewall to accept inbound traffic to ports 80, 110, 143, and 443
Explanation:
Port 80 is used by HTTP, 110 by pop3 to retrieve emails from web servers, 143 by imap for internet messaging and 443 is used for TCP for websites using SSL. So if the firewall is allowed to accept inbound traffic to these ports 80,110,143 and 443 then it would be possible to retrieve emails.
Answer:
False
Explanation:
There are also hackers online
Answer:
The complete method is as follows:
public static int divBySum(int[] arr, int num){
int sum = 0;
for(int i:arr){
if(i%num == 0)
sum+=i;
}
return sum;
}
Explanation:
As instructed, the program assumes that arr has been declared and initialized. So, this solution only completes the divBySum method (the main method is not included)
This line defines the method
public static int divBySum(int[] arr, int num){
This line declares and initializes sum to 0
int sum = 0;
This uses for each to iterate through the array elements
for(int i:arr){
This checks if an array element is divisible by num (the second parameter)
if(i%num == 0)
If yes, sum is updated
sum+=i;
}
This returns the calculated sum
return sum;
}
Answer:
The following are the program in the Python Programming Language.
#get input from the user
val = input("Enter the value: ")
#split the input values
x=val.split()
#declare and initialize two variables to 0
total, l = 0,0
#set for loop
for n in x:
#coverting into string
n = int(n)
#perform addition
total= total + n
#check that is l is none or n is greater than l
if(l is None or n > l):
#initialize the value of n in l
l = n
#print the following output
print("Average and maximum value are:", total // len(x), l)
<u>Output</u>:
Enter the value: 10 20 0 5
Average and maximum value are: 8 20
Explanation:
<u>Following are the description of the program</u>.
- Firstly, declare a variable 'val' in which we get string type input from the user.
- Again declare two variables and assigned them to 0.
- Then set the for loop statement, in which we convert the string variable into the integer and perform addition with those converted values. Set the if conditional statement to check that if the variable 'l' is none or 'n' is greater than 'l
' then, assigned the value of the variable 'n' in the variable 'l'.
- Finally, print the following result with message.