wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Comments

Total questions: 8

Worksheet time: 8mins

Name
Class
Date
1.

When should you use a comment to describe something, if a question is not correct to codehs standards, it is wrong (two answers, pay attention to grammar)

a)

forward(100)

b)

for i in range(3):

forward(50)

c)

for i in range(4):

forward(90)

Right(90)

d)

for i in range(4):

forward(30)

right(90)

2.

Which comments describes this code accurately

color("orange")

circle(45)

a)

Make a circle with a radius of 30

b)

Make an orange circle with a radius of 45

c)

Make a blue circle

d)

Orange circle 45

3.

Comments are used to _ _ _ _ _ _ _ _ code to make it easier to understand

(the answer is all lowercase and one word)

(a)  

4.

What will this code make, and which comment should be used

for i in range(3):

forward(90)

right(60)

a)

Hexagon, #Draw a hexagon with side lengths of 90

b)

Circle, #Draw a circle with side lengths of 90

c)

Square, #Draw a sqaure with side lengths of 90

d)

Pentagon, #Draw a pentaagon with side lengths of 90

5.

(complete the words ex: Code is _ _ _ _ <--- "Cool." dont add quotation marks)

Comments are used to tell you about _od_

and are good at showing how it _o_k_, they can be used to describe short and _ _ ng code

(a)  

6.

True or false: Comments can NOT be used for assisting someone in writing code.

a)

True

b)

False

7.

Forward(100):

Right(90)

Right(90

a)

#Move forward and turn right twice

b)

#Move forward and turn left twice

c)

#Syntax Error

d)

#Turn left twice

8.

Comments are?

a)

Descriptive words added in to make code function

b)

Words that are used to describe code directive

c)

Found at the end of code

d)

Words that are used to describe the process of writing or making code