Answer:
rsort()
Explanation:
the sorting function is used to sort the elements in the array.
the sorting can be increasing or decreasing, depends on the function used.
let discuss the option:
a. sort()
this is the sorting function, it used to sort the array in ascending order.
b. arsort()
this is also sorting function, it used to sort the associated array in descending order according to the value.
d. asort()
this is also sorting function, it used to sort the associated array in ascending order according to the value.
c. rsort()
this is the sorting function, it used to sort the array in descending order.
Therefore, the correct answer is rsort().
Answer:
System.out.println(value % 10);
printReverse(value / 10);
Explanation:
System.out.println(value % 10);
To print the last digit, we print the value modulo 10 as the result of the value modulo 10 gives us the last digit.
printReverse(value / 10);
To call the recursive method again without the last digit, we now pass the result of dividing the value with 10 inside the printReverse method as parameter. The division by 10 will remove the last digit from the value and result will be the remaining digits.
Answer:
true
Explanation:
we can connect to any device which has a network connection