Answer:
Following is the definition of the required function:
def powerTo( double first, int second);
if second > 0;
double result = pow(first,second);
return result;
else
return 0;
Explanation:
The explanation for above code is as follows:
- A function named powerTo is defined, having two arguments with data type double and integer respectively.
- A if condition is applied that checks the second parameter.
- If the the condition: second > 0 gets true, a value is returned which is equal to first parameter raised to the second.
- If the condition is if bracket gets false, 0 is returned as a result.
i hope it will help you!
The answer is 326.
Range is found by subtracting the smallest number in the data set from the largest number.
Highest number: 419
Lowest number: 93
419-93
=326
(Next time make sure to post this under the Mathematics section.)
The largest numeric value that can be represented in 3 bytes is 224
Explanation:
- commonly, to represent a 999 number, 10 bits are used.
- But with 3 bytes, it can save or store integer with the range from 0 to 224-1 in the 24 bits. (3 * 8 bits =24 bits).
- Then the binary notation is used for encoded numeric data in order to store in the computer storage device.
Answer:
The answer is "Option b".
Explanation:
Phishing is used by hackers to get sensitive data. It is a software tool, that offers online mail to use we can track the users. It also known as a state, in which clients will have to re-enter id and pass codes to validate themselves due to some changes to the system, and incorrect option can be defined as follows:
- In option a, It is used to attack on user system.
- In option c, It is used to provides unauthorized access.
- In option d, It is also known as malware, which is installed in user smartphones.
Answer:
Ports 20 and 21
Explanation:
For the FTP to work, there are two parts that are required; the command and the data. These two parts are sent on the two ports 21 and 20 respectively. If the firewall is indeed blocking connections on ports 21 and 20, then your FTP will not work.
Hence, you need to open ports 20 and 21 to allow FTP to remain functional.
Cheers.