6%4
2
The 'P' in the acronym IPO refers to __________
What is Processing?
How do you import a module?
import ________
Can you convert "dog" to an integer?
No
Which of the following does not have a Boolean expression: for, while, if
for
(5%4)**10
1
A variable is available only to statements in the variable's ________.
What is scope?
How would you take the square root of 2.0?
math.sqrt(2.0)
How would you convert n to a floating point number?
float(n)
The if statement gets executed if the condition is ______ (true or false)
true
Which is/are the operand(s) in 5 + 2
5,2
Arguments are passed by ______ to the corresponding parameter variables in a function.
What is position.
In math.pi(), what is the accessed element?
pi
How do you find the data type of variable v?
type(v)
You know the code is part of the if/while/for loop if the code is ________.
Indented
What are the seven tokens?
+,-,/,//,*,**,%
This term refers to a function that calls itself within its own definition.
What is a recursive function?
random.randrange(1,7) selects a number between _ and _ inclusive.
1 and 6
Can a list contain any data type?
for i in range (100):
print (i)
would print the numbers from ___ to ____ inclusive.
0 to 99
(11/4*4)**2
64
________ means performing no operation in Python.
What is a pass?
Will the random.random() function ever generate 0?
Yes
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
Which is more commonly used in Python : the for or while loop
the for loop