Answer:
Given code output is "786".
Explanation:
Code:
list1 = [ 'cyber', 786 , 2.23, 'square', 70.2 ]#defining a list list1 that holds value in parameter
print (list1[1] )#use a print method that prints list index value
In the given code a list "list1" is declared that holds value in it and in the next step a print method is declared that prints the first index value of the list.
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: Hello your question lacks some details attached below is the missing detail
answer :
a) True , B) False C) True D) True
Explanation:
a) True ; The critical section cannot be executed by more than one process at a time
b) False : The code does not satisfy the progress condition, because while loops are same hence no progress
c ) True : The code satisfies the bounded waiting condition, because of the waiting condition of the while loop
d) True : No matter how many times this program is run, it will always produce the same output, this is because of the while loop condition
Answer:
This brainly page should be able to help, make sure to thank them if it's correct
<em><u>brainly.com/question/15076370</u></em>
<em><u /></em>