Python Programming Vocab 2 Quiz

Python Programming Vocab 2 Quiz

10th Grade

15 Qs

quiz-placeholder

Similar activities

Code HS Python Final

Code HS Python Final

9th - 12th Grade

16 Qs

TIN 10 Bài 10 CĐ F. Hàm

TIN 10 Bài 10 CĐ F. Hàm

10th Grade

20 Qs

Python Variables

Python Variables

7th - 12th Grade

10 Qs

Grade 8 End of Unit Revision

Grade 8 End of Unit Revision

8th Grade - University

15 Qs

Gr10 DigiPro Sprint 1.1

Gr10 DigiPro Sprint 1.1

10th Grade

10 Qs

AQA GCSE Computer Science - 3.2.10 Subroutines

AQA GCSE Computer Science - 3.2.10 Subroutines

8th - 10th Grade

20 Qs

Programming python review

Programming python review

9th - 12th Grade

15 Qs

Python Programming Vocab 2 Quiz

Python Programming Vocab 2 Quiz

Assessment

Quiz

Computers

10th Grade

Easy

Created by

Allyson Smith

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a for loop in Python?

To perform a task repeatedly for a set number of times

To check if a condition is true

To define a function

To comment on code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write a comment in Python?

With # at the beginning of the line

Using {} brackets

By surrounding text with $ symbols

With % at the start of the line

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the function setposition(x, y) do in Python?

Sets the speed of an operation

Moves Tracy to a specific coordinate

Changes the color of Tracy

Defines a new function

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a correct naming guideline for functions in Python?

Start with a lowercase letter

Use spaces between words

Begin with a letter

Use descriptive names

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the begin_fill() statement in Python?

It starts a loop

It begins a color fill for a shape

It sets the position of Tracy

It defines a function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command changes the thickness of the line Tracy draws?

color("red")

pensize()

setposition()

begin_fill()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you make Tracy turn left by a specific angle?

setposition(x, y)

begin_fill()

left(angle)

color("red")

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?