Question 12
AQA Computer Science November 2020 Paper 1 (7516/1)AS3 marks
On the specification
- 3.1 Fundamentals of programming3.2 Fundamentals of data structures
Question text
12 This question refers to the subroutine DisplayImage Explain what effect swapping around the nested iteration structure in this subroutine would have on the image output, assuming that the image width and height are equal. Written in pseudo-code the altered iteration structure would be: FOR ThisColumn ← 0 TO Header.Width – 1 FOR ThisRow ← 0 TO Header.Height – 1 OUTPUT Grid[ThisRow, ThisColumn] ENDFOR OUTPUT newline ENDFOR [3 marks] You are advised to spend no more than 60 minutes on this section. Enter your answers to Section C in your Electronic Answer Document. You must save this document at regular intervals. These questions require you to load the Skeleton Program and to make programming changes to it.