The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Figure 1 shows a pseudocode representation of the function called FindHighest.FindHighest is used to find the largest value stored in an array.Note: line numbers have been shown but are not part of the function.Figure 11 FUNCTION FindHighest(arr)2 highest ← arr[1]3 FOR i ← 2 TO LEN(arr)4 IF arr[i] > highest THEN5 highest ← arr[i]6 ENDIF7 ENDFOR8 RETURN highest9 ENDFUNCTION 3 (a) How many parameters does the function FindHighest have?[1 mark] ............................................................................................................................................3 (b) This function uses iteration. Give the line number on which iteration starts.[1 mark] ............................................................................................................................................ 3 (c) This function uses selection. Give the line number on which selection starts.[1 mark] ............................................................................................................................................3 (d) This function uses variable assignment. Give the line number in the function wherevariable assignment is first used.[1 mark] ............................................................................................................................................3 (e) The variable i in Figure 1 only has scope between lines 3 and 7. Explain withreference to the variable i what scope means.[1 mark]