Computer Science Summer test revision UIII Flashcards
What is programming language?
A set of instructions written by a programmer to deliver instructions to a computer to do something
What is a turtle programming language and how does it work?
Turtle graphics is a python module that lets you draw and animate by controlling the screen.
how do you go forward
fd
how do you go backwards
bk
how do you right turn
rt
how do you left turn
lt
how do you centre your turtle
ct
what is the code to draw a square?
repeat 4[ fd 10 rt 90]
how to hide turtle
ht
how to show turtle?
st
how to set position
setpos
how to change pen colour?
setpencolor “…..
how to fill something with colour?
setfloodcolor “…..
how to draw a star?
repeat 5[fd 160 rt 144]
how to draw a pentagon
repeat 5[fd :size rt 72]
how to draw a triangle
repeat 3[fd 100 rt 120]