Python Vocab Matching

Python Vocab Matching

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

Algorithms

Algorithms

9th - 12th Grade

10 Qs

LINUX CLI

LINUX CLI

12th Grade

10 Qs

Reto HTML: ¿Qué etiqueta es?

Reto HTML: ¿Qué etiqueta es?

11th Grade

10 Qs

Code.org List Quiz Questions

Code.org List Quiz Questions

9th - 12th Grade

10 Qs

Google Hacking and Ethical Hacking Quiz

Google Hacking and Ethical Hacking Quiz

11th Grade

10 Qs

AP CSP-Review Session 1 MCQ Quiz

AP CSP-Review Session 1 MCQ Quiz

10th Grade

10 Qs

Lists - MCQ1

Lists - MCQ1

11th - 12th Grade

10 Qs

MYP Design

MYP Design

9th - 10th Grade

12 Qs

Python Vocab Matching

Python Vocab Matching

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

PRESTON COLE

Used 7+ times

FREE Resource

7 questions

Show all answers

1.

MATCH QUESTION

1 min • 1 pt

Match the vocabulary with the BEST example!

function declaration

while guess != secret_number:

variable declaration

def number_guessing():

formatted string literal

secret_number = random.randint(1, 100)

method call

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

loop declaration

attempts = 0

2.

MATCH QUESTION

1 min • 1 pt

Match the vocabulary with the BEST example!

Dictionary

(1, 2, 3, 4, 5)

Set

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

List

{1, 2, 3, 4, 5}

String

[1, 2, 3, 4, 5]

Tuple

'[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']]

c

two_d_list[0][2]

f

two_d_list[1][0]

IndexError

two_d_list[0][0]

a

two_d_list[2][0]

TypeError

two_d_list[1,2]

4.

MATCH QUESTION

1 min • 1 pt

Match the vocabulary with the BEST example.

import random

IDE

VSCode

Modulo

random.randint()

Module

%

Keyword

def

Method

5.

MATCH QUESTION

1 min • 1 pt

Media Image

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

reserved keyword

i

function definition

if

function call

append

variable

isinstance

method call

calculate

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

nested function call

conditional statement

module

variable declaration

loop

method call

function definition

formatted string literal