wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PYTHON VOCABULARY

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

It lets you test if a condition in your code returns True, if not, the program will raise an Error.

a)

ASSERT

b)

ELIF

c)

GLOBAL

d)

IMPORT

2.

It can be used to erase an item at a given index and to remove slices from a list.

a)

RAISE

b)

NONE

c)

DEL

d)

RETURN

3.

It is used in conditional statements (if statements), and decides what to do if the condition is False.

a)

YIELD

b)

RETURN

c)

LAMBDA

d)

ELSE

4.

It is used to end the current iteration in a for loop or a while loop and goes to the next iteration.

a)

GLOBAL

b)

CONTINUE

c)

FINALLY

d)

NONLOCAL

5.

It is used to produce an exception to interrupt the code execution.

a)

RAISE

b)

TRY

c)

WHILE

d)

IF

6.

It is the same as "else if" in other programming languages.

a)

EXCEPT

b)

ELIF

c)

ELSE

d)

FINALLY

7.

It allows you to modify the variable outside of the current scope.

a)

CLASS

b)

WHILE

c)

PASS

d)

GLOBAL

8.

It is used to define a null value or no value at all. It is not the same as 0, False, or an empty string.

a)

NONE

b)

NONLOCAL

c)

RAISE

d)

LAMBDA

9.

This block lets you check some code for errors.

a)

DEL

b)

TRY

c)

CLASS

d)

WHILE

10.

It is used to make code in one module available in another.

a)

ELSE

b)

DEF

c)

BREAK

d)

IMPORT