by typing ctrl+ s on keyboard
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().
Explanation:
def letterDigitCount(j):
dic={"digits":0,"letters":0}
for a in j:
if a.isdigit():
dic["digits"]+=1
elif a.isalpha():
dic["letters"]+=1
return dic
Answer:
Handle the exception in a catch block or throw the exception to the method that called this method.
Explanation:
The try and catch statements occur in pairs. The try statement allows the user to define a block of code to be tested for errors while it is being executed.
The catch statement allows the user to define a block of code to be executed, if an error occurs in the try block.
If an exception is checked by a method, the method either handles the exception in a catch block or throw the exception to the method calling it.
The automotive system that connects the engine and the transmission to the wheels is c (c) the steering system