Font size
WorksheetsComments
Total questions: 8
Worksheet time: 8mins
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)
forward(100)
for i in range(3):
forward(50)
for i in range(4):
forward(90)
Right(90)
for i in range(4):
forward(30)
right(90)
Which comments describes this code accurately
color("orange")
circle(45)
Make a circle with a radius of 30
Make an orange circle with a radius of 45
Make a blue circle
Orange circle 45
Comments are used to _ _ _ _ _ _ _ _ code to make it easier to understand
(the answer is all lowercase and one word)
(a)
What will this code make, and which comment should be used
for i in range(3):
forward(90)
right(60)
Hexagon, #Draw a hexagon with side lengths of 90
Circle, #Draw a circle with side lengths of 90
Square, #Draw a sqaure with side lengths of 90
Pentagon, #Draw a pentaagon with side lengths of 90
(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)
True or false: Comments can NOT be used for assisting someone in writing code.
True
False
Forward(100):
Right(90)
Right(90
#Move forward and turn right twice
#Move forward and turn left twice
#Syntax Error
#Turn left twice
Comments are?
Descriptive words added in to make code function
Words that are used to describe code directive
Found at the end of code
Words that are used to describe the process of writing or making code
