Computer Science Summer test revision UIII Flashcards

1
Q

What is programming language?

A

A set of instructions written by a programmer to deliver instructions to a computer to do something

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a turtle programming language and how does it work?

A

Turtle graphics is a python module that lets you draw and animate by controlling the screen.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how do you go forward

A

fd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how do you go backwards

A

bk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how do you right turn

A

rt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how do you left turn

A

lt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

how do you centre your turtle

A

ct

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is the code to draw a square?

A

repeat 4[ fd 10 rt 90]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

how to hide turtle

A

ht

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

how to show turtle?

A

st

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

how to set position

A

setpos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

how to change pen colour?

A

setpencolor “…..

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

how to fill something with colour?

A

setfloodcolor “…..

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

how to draw a star?

A

repeat 5[fd 160 rt 144]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

how to draw a pentagon

A

repeat 5[fd :size rt 72]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

how to draw a triangle

A

repeat 3[fd 100 rt 120]