which of the following sets of commands would not result in a square being drawn on the canvas? forward(100)…

which of the following sets of commands would not result in a square being drawn on the canvas? forward(100) setx(100) backward(100) setx(0) goto(100, 0) goto(100, 100) goto(0, 100) goto(0, 0) setx(100) sety(100) setx(0) sety(0) forward(100) sety(100) backward(100) sety(0)

which of the following sets of commands would not result in a square being drawn on the canvas? forward(100) setx(100) backward(100) setx(0) goto(100, 0) goto(100, 100) goto(0, 100) goto(0, 0) setx(100) sety(100) setx(0) sety(0) forward(100) sety(100) backward(100) sety(0)

Answer

Explanation:

Step1: Analyze option 1

Commands move in a line, not a square.

Step2: Analyze option 2

Commands form a square.

Step3: Analyze option 3

Commands just set coordinates, no shape drawn.

Step4: Analyze option 4

Commands move in a non - square path.

Answer:

A. forward(100), setx(100), backward(100), setx(0) C. setx(100), sety(100), setx(0), sety(0) D. forward(100), sety(100), backward(100), sety(0)