Docsity

CodeHS Programming Concepts Q&A, Exams of Nursing

Toggle sidebar
bg1
Code HS 2.6-2.11Latest 2023 Rated A+
Comments are written for... ✔✔Humans to read and to understand
What symbol is used at the beginning of an in-line comment? ✔✔#
What punctuation is used to begin a multi-line comment? ✔✔"""
What name follows all naming rules? ✔✔make_square
If I am creating a function that makes two squares, what would be the best name option?
✔✔draw_squares
What is not a way functions make our code more readable? ✔✔Each function only contains one
command
What two things must be included in your function definition? ✔✔A function name and
commands to be performed
pf3

Partial preview of the text

Download CodeHS Programming Concepts Q&A and more Exams Nursing in PDF only on Docsity!

Code HS 2.6-2.11Latest 2023 Rated A+

Comments are written for... ✔✔Humans to read and to understand

What symbol is used at the beginning of an in-line comment? ✔✔#

What punctuation is used to begin a multi-line comment? ✔✔"""

What name follows all naming rules? ✔✔make_square

If I am creating a function that makes two squares, what would be the best name option? ✔✔draw_squares

What is not a way functions make our code more readable? ✔✔Each function only contains one command

What two things must be included in your function definition? ✔✔A function name and commands to be performed

What is the proper way to call the function three_circles? ✔✔three_circles()

How would I change Tracy's trail to a yellow line with a thickness of 10 pixels? ✔✔color("yellow)

pensize(10)

What is true of Tracy's color command? ✔✔The color name must be in quotation marks

What is the correct way to draw a circle that is filled in? ✔✔begin_fill

circle(20)

end_fill

what would be the output of the following command? ✔✔circle(50,360,5)

What would be the output of the following command? ✔✔circle(50,180,3)

Top down design makes it easier to solve a problem by... ✔✔Breaking the problem down into smaller parts