Answer:
Following are the code block in the Java Programming Language.
//define recursive function
public static long exponentiation(long x, int n) {
//check the integer variable is equal to the 0.
if (x == 0) {
//then, return 1
return 1;
}
//Otherwise, set else
else {
//set long data type variable
long q = exponentiation(x, n/2);
q *= q;
//check if the remainder is 1
if (n % 2 == 1) {
q *= x;
}
//return the variable
return q;
}
}
Explanation:
<u>Following are the description of the code block</u>.
- Firstly, we define the long data type recursive function.
- Then, set the if conditional statement and return the value 1.
- Otherwise, set the long data type variable 'q' that sore the output of the recursive function.
- Set the if conditional statement and check that the remainder is 1 and return the variable 'q'.
Answer:
1. social media and mobile devices may lead to psychological.
2. They may contribute to more serious health conditions such as depression.
3. The overuse of technology may have a more significant impact on developing children and teenagers.
Explanation:
may this help you have a good day
Answer:
B)tracert
Explanation:
Tracery Command can be regarded as
network diagnostic tool, it is used in tracking process of pathway of packet ranging from source to destination on IP network. It as well allows to know real time of each hops that are been taken by a packet as it enroutes to it's destination. The traceroute can be run by following these steps:
✓Open the run window
✓Open Command prompt, this can be done by enter "cmd" then enter.
✓ input" tracert" then destination ( Ip address or web address)
It should be noted that Tracery command issued from the command prompt will show the route that a packet travels from the issuing computer to another computer.