Menu

Basic Movement - Code Quiz

1. Which line completes the snippet so that it draws a square?

import turtle turtle.forward(100) turtle.right(90) turtle.forward(100) turtle.right(90) turtle.forward(100) # line missing here turtle.forward(100)
turtle.right(180)
turtle.right(4)
turtle.left(90)
turtle.right(90)

2. Which shape does the code draw?

import turtle turtle.forward(100) turtle.right(120) turtle.forward(100) turtle.right(120) turtle.forward(100)
A triangle
A square
A hexagon
A pentagon

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic