-
Notifications
You must be signed in to change notification settings - Fork 9
Practice: Draw
Julia Ogris edited this page Aug 1, 2023
·
8 revisions
Which drawing does this program create?
color "red"
move 50 50
circle 20
Choose one correct answer:
- A:
- B:
- C:
- D:
- E:
Solution
DWhat does this program output?
clear "blue"
color "red"
move 50 50
rect 20 20
Choose one correct answer:
- A:
- B:
- C:
- D:
Solution
BWhat does this program output?
clear "green"
color "white"
width 4
move 80 20
line 80 80
line 20 20
line 20 80
Choose one correct answer:
- A:
- B:
- C:
- D:
Solution
DWhat does this program output?
clear "black"
width 4
move 20 80
color "red"
circle 10
color "white"
line 80 20
color "red"
circle 10
Choose one correct answer:
- A:
- B:
- C:
- D:
- E:
Solution
AConsider the following program:
grid
color "purple"
width 1
move 50 10
line 50 90
color "blue"
move 50 10
line 40 50
line 50 90
line 60 50
line 50 10
color "forestgreen"
move 50 20
line 30 50
line 50 80
line 70 50
line 50 20
color "gold"
move 50 30
line 20 50
line 50 70
line 80 50
line 50 30
color "orange"
move 50 40
line 10 50
line 50 60
line 90 50
line 50 40
color "red"
It is meant to create the following drawing:
Sadly, the last two lines of the program got lost.
Choose two correct ways to complete the program
-
A:
move 50 10 line 50 90
-
B:
move 10 50 line 50 90
-
C:
move 10 50 line 90 50
-
D:
move 90 50 line 10 50
Solution
C DCreate the following drawing with colors "black"
, "red"
and "yellow"
and a circle diameter of 40
.
Enter code:
Sample solution
clear "black"
color "red"
rect 100 50
move 50 50
color "yellow"
circle 20
Create the following drawing with colors "black"
and "aqua"
and a line width of 0.4
.
There are 10 lines in total.
Enter code:
Sample solution
clear "aqua"
width 0.4
line 10 100
move 0 10
line 20 100
move 0 20
line 30 100
move 0 30
line 40 100
move 0 40
line 50 100
move 0 50
line 60 100
move 0 60
line 70 100
move 0 70
line 80 100
move 0 80
line 90 100
move 0 90
line 100 100
Overview | About | Playground | Gallery