Python Vocab Matching

Python Vocab Matching

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

Python Data Structures

Python Data Structures

10th Grade

10 Qs

Unit 7 - ArrayList - Test Review

Unit 7 - ArrayList - Test Review

9th - 12th Grade

12 Qs

Unit 5 Lists, Loops, & Traversals

Unit 5 Lists, Loops, & Traversals

10th - 12th Grade

12 Qs

GCSE Computer Science 9-1: Sorting Algorithms

GCSE Computer Science 9-1: Sorting Algorithms

10th Grade - University

10 Qs

Search Algorithms

Search Algorithms

9th Grade

9 Qs

Revision Quiz Std 12 Jan 19 2021

Revision Quiz Std 12 Jan 19 2021

12th Grade

10 Qs

Applied Networking

Applied Networking

11th - 12th Grade

10 Qs

Python Review 2023-01-12

Python Review 2023-01-12

9th - 12th Grade

10 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:

method call

attempts = 0

variable declaration

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

loop declaration

secret_number = random.randint(1, 100)

formatted string literal

def number_guessing():

2.

MATCH QUESTION

1 min • 1 pt

Match the vocabulary with the BEST example!

List

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

Tuple

(1, 2, 3, 4, 5)

Dictionary

[1, 2, 3, 4, 5]

Set

{1, 2, 3, 4, 5}

String

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

a

two_d_list[2][0]

f

two_d_list[0][2]

IndexError

two_d_list[1,2]

c

two_d_list[1][0]

TypeError

two_d_list[0][0]

4.

MATCH QUESTION

1 min • 1 pt

Match the vocabulary with the BEST example.

def

Modulo

%

Keyword

VSCode

IDE

import random

Module

random.randint()

Method

5.

MATCH QUESTION

1 min • 1 pt

Media Image

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

method call

append

function definition

i

variable

calculate

function call

isinstance

reserved keyword

if

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

variable declaration

loop

function definition

module

nested function call

method call

conditional statement

formatted string literal