1. Consider the following pseudocode.i = 0sum = 0REPEAT UNTIL i = 4 i = 1 sum++DISPLAY sumWhat is the output?Nothing – infinite loop.The number 4 is displayed.The number 0 is displayed.The number 1 is displayed.2. To have a set of command execute multiple times in a program, you would want to use a loop. What types of loops are available in programming?
Do whileRepeatFor nextWhile3. Consider the following code:sum = 0j = 0DO WHILE j = 1 AND <= 100) sum = sum + num ENDIFEND DO WHILEavg = sum / jWith inputs of 0, -1, 4, 8 and 12, what will be the output?An infinite loopA correct averageAn incorrect averageA run time error
Requirements: Choose the right answer for each question | Python