Question 8
The following pseudocode is executed using the "Olympics" dataset. Procedure doSomething accepts a table of rows that contains rows of the same player. Assume that the player has won at least two medals and only one medal in any year. At the end of the execution, if (B - A) represents year the gap between first and second medals won by a player then, choose the correct code fragment to complete the pseudocode. [MCQ]
1 Procedure doSomething(Table T1) 2 A = 2030, B = 2030 3 while(Table T1 has more rows){ 4 Read the first row Z from Table T1 5 **************************** 6 ***Fill the code**** 7 **************************** 8 Move the row Z to Table T2 9 }10 return((B - A))11 End doSomething