Operations and Operands
Turtles
Other Modules
Data Types/Conversion
For/While/If
100

6%4

2

100

What does turtle.Turtle do?

It creates a new turtle

100

How do you import a module?

import ________

100

Can you convert "dog" to an integer?

No

100

Which of the following does not have a Boolean expression: for, while, if

for

200

(5%4)**10

1

200

How do you change the turtle's color? (The turtle is called turtlename)

turtlename.color()

200

How would you take the square root of 2.0?

math.sqrt(2.0)

200

How would you convert n to a floating point number?

float(n)

200

The if statement gets executed if the condition is ______ (true or false)

true

300

Which is/are the operand(s) in 5 + 2

5,2

300

How to do you move a turtle forward? (name = turtlename)

turtlename.forward()

300

In math.pi(), what is the accessed element?

pi

300

How do you find the data type of variable v?

type(v)

300

You know the code is part of the if/while/for loop if the code is ________.

Indented

400

What are the seven tokens?

+,-,/,//,*,**,%

400

What would you say to turn a turtle called turtlename, which is facing to the east turn to the west.

turtlename.right(180) or turtlename.left(180)

400

random.randrange(1,7) selects a number between _ and _ inclusive.

1 and 6

400

Can a list contain any data type?

Yes
400

for i in range (100):

       print (i)

would print the numbers from ___ to ____ inclusive.

0 to 99

500

(11/4*4)**2

64

500

Which direction does the turtle start of facing?

east

500

Will the random.random() function ever generate 0?

Yes

500

If you convert a float (5.6) to an integer, does it round to the nearest integer (6), the smaller integer(5), or the bigger integer(6)

the smaller integer

500

Which is more commonly used in Python : the for or while loop

the for loop

M
e
n
u