Which two of the following statements about the Python program in Figure 1 are true when it is executed with the grid shown in Figure 2?
Select two options.
Figure 1
for r in range(4):
for c in range(3):
if getValue(r, c) == 12:
found_row = r
found_col = c
Figure 2
| column 0 | column 1 | column 2 | |
|---|---|---|---|
| row 0 | 3 | 8 | 5 |
| row 1 | 14 | 12 | 9 |
| row 2 | 12 | 2 | 7 |
| row 3 | 11 | 6 | 10 |
for r in range(4) executes exactly 4 times.found_col will be 0.found_row = r will run for every cell in the grid.getValue(r, c) and 12 is 8.c remains constant throughout the execution of the program.298 exam-style questions on AQA GCSE Computer Science Programming concepts. Each one has a worked solution and a mark scheme showing where the marks go.