Skip to content

Practice: Draw

Julia Ogris edited this page Aug 1, 2023 · 8 revisions

Q1.1

Which drawing does this program create?

color "red"
move 50 50
circle 20

Choose one correct answer:

  • A:
    reddot-a
  • B:
    reddot-b
  • C:
    reddot-c
  • D:
    reddot-d
  • E:
    reddot-e
Solution D

Q2.1

What does this program output?

clear "blue"
color "red"
move 50 50
rect 20 20

Choose one correct answer:

  • A:
    red-rect-a
  • B:
    red-rect-b
  • C:
    red-rect-c
  • D:
    red-rect-d
Solution B

Q3.1

What 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:
    lines-a
  • B:
    lines-b
  • C:
    lines-c
  • D:
    lines-d
Solution D

Q4.1

What 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:
    lines-circle-a
  • B:
    lines-circle-b
  • C:
    lines-circle-c
  • D:
    lines-circle-d
  • E:
    lines-circle-e
Solution A

Q5.1

Consider 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:
star

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 D

Q6.1

Create the following drawing with colors "black", "red" and "yellow" and a circle diameter of 40.

aaf

Enter code:


Sample solution
clear "black"
color "red"
rect 100 50
move 50 50
color "yellow"
circle 20

Q7.1

Create the following drawing with colors "black" and "aqua" and a line width of 0.4.

lines

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