Read all the instructions given below and mark the checkboxes once read. When all the checkboxes are marked simulator will be enabled.
You can choose the time of simulation from the slider given below.
Values of array should be entered in the text box given below separated by space.
Values must always be number.
Click on generate button to create the array.
Click on find to start the simulation.
Once simulation is over you will see questions please answer them.
Click on reset button to reset the simulator.
1 Sec
2 Sec
3 Sec
4 Sec
5 Sec
Please insert space sepeated numbers only.
Array Values
Generate
Reset
Current Max
Result
Find
Function in Python
def myMax(list):
max = list[0]
for x in list:
if x > max :
max = x
return max
Please attempt all the questions.
1. Suppose list1 is [2446,134,12456,129], what is max(list1)?
2446
134
12456
129
2. What is length of list?
1
2
3
4
3. At the start of process which element will represent currentMax?
134
2446
12456
Error
Please mark all the answers.
Submit