Python Vocab Matching

Python Vocab Matching

Assessment

Quiz

Created by

PRESTON COLE

Computers

9th - 12th Grade

7 plays

Easy

Student preview

quiz-placeholder

7 questions

Show all answers

1.

MATCH QUESTION

1 min • 1 pt

Match the vocabulary with the BEST example!

formatted string literal

def number_guessing():

method call

secret_number = random.randint(1, 100)

variable declaration

print(f"Done in {attempts} attempts.")

function declaration

attempts = 0

loop declaration

while guess != secret_number:

2.

MATCH QUESTION

1 min • 1 pt

Match the vocabulary with the BEST example!

Set

[1, 2, 3, 4, 5]

Tuple

'[1, 2, 3, 4, 5]'

String

{1, 2, 3, 4, 5}

List

{'1':'2', '3':'4'}

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[1][0]

c

two_d_list[1,2]

IndexError

two_d_list[2][0]

f

two_d_list[0][0]

a

two_d_list[0][2]

4.

MATCH QUESTION

1 min • 1 pt

Match the vocabulary with the BEST example.

def

IDE

%

Keyword

VSCode

Method

import random

Modulo

random.randint()

Module

5.

MATCH QUESTION

1 min • 1 pt

Media Image

Use the image to match the code element to a vocabulary word.

method call

append

reserved keyword

i

function call

if

variable

calculate

function definition

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!

e
f
g
h
d
c
b
a

function definition

variable declaration

method call

formatted string literal

module

loop

conditional statement

nested function call