Codehs - Python Lessons 9 - 12

Codehs - Python Lessons 9 - 12

Assessment

Quiz

Computers

9th - 12th Grade

Medium

CCSS
6.EE.B.6

Standards-aligned

Created by

Christine Marra

Used 54+ times

FREE Resource

Student preview

quiz-placeholder

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the name of the programming language we are learning?

Codehs.com

Python

Tracy

JavaScript

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the correct way to ask the user for a color and store the answer as a variable?

color = input("Name a color: ")

user_color = Name a color:

input("name a color: ")

user_color = input("Name a color: ")

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What symbol is used in python to assign values to a variable?
equals =
plus + 
forward slash /
asterisk *

Tags

CCSS.6.EE.B.6

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of these are a proper name for a variable?

variable

My_variable

shape

Shape

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How would I change Tracy's trail to a yellow line with a thickness of 10 pixels??

color("yellow")

pensize(10)

Color("yellow")

thickness(10)

color yellow()

pensize(10)

color yellow():

thickness(10)

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which symbol do we use if we want to add a comment to our code?

@

#

*

&

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is true of Tracy's color command?

You can only use hex color codes.

The color name must be in quotation marks.

There are 10 different colors that Tracy knows.

The color name must have underscores between words (ex. light_blue)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?