
Python Vocab Matching
Authored by PRESTON COLE
Computers
9th - 12th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MATCH QUESTION
1 min • 1 pt
Match the vocabulary with the BEST example!
variable declaration
def number_guessing():
function declaration
secret_number = random.randint(1, 100)
formatted string literal
while guess != secret_number:
method call
attempts = 0
loop declaration
print(f"Done in {attempts} attempts.")
2.
MATCH QUESTION
1 min • 1 pt
Match the vocabulary with the BEST example!
Tuple
{'1':'2', '3':'4'}
Set
(1, 2, 3, 4, 5)
List
'[1, 2, 3, 4, 5]'
String
[1, 2, 3, 4, 5]
Dictionary
{1, 2, 3, 4, 5}
3.
MATCH QUESTION
1 min • 1 pt
two_d_list = [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j']]
TypeError
two_d_list[2][0]
c
two_d_list[0][0]
IndexError
two_d_list[0][2]
a
two_d_list[1,2]
f
two_d_list[1][0]
4.
MATCH QUESTION
1 min • 1 pt
Match the vocabulary with the BEST example.
def
Module
import random
Modulo
%
IDE
random.randint()
Method
VSCode
Keyword
5.
MATCH QUESTION
1 min • 1 pt
Use the image to match the code element to a vocabulary word.
function definition
if
reserved keyword
calculate
method call
i
variable
append
function call
isinstance
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
A step-by-step procedure or formula for solving a problem.
7.
LABELLING QUESTION
1 min • 1 pt
Label the syntax!
loop
module
variable declaration
function definition
nested function call
conditional statement
formatted string literal
method call
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?