1. The following pseudo-code prints out a pattern. In this pseudo-code, the statement
write("*") will print a star without moving to a new line. The statement
writeline() will move to the start of a new line.
1 star ← 1
2 WHILE star < 5
3 FOR n ← 1 TO star
4 write("*")
5 NEXT n
6 writeline()
7 star ← star + 1
8 ENDWHILE
(a) Draw in the box beside the code the pattern that this program produces. [3]
(b) Give the line numbers of two lines that represent the programming construct “Sequence”. [2]
(c) Give the line numbers of two lines that represent the starts of iterations. [2]