wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Domain 1 Multiple Choice Extra Practice

Total questions: 25

Worksheet time: 14mins

Name
Class
Date
1.

Containment is important when one needs to know if an answer is in an acceptable (a)   of answers.

Choose from the below words

list

tuple

set

dictionary

2.

Python and other languages use a double (a)   sign as a comparison.

Choose from the below words

equal

plus

minus

and

3.

A(n) (a)   is a value attached to a variable, usually with an equal sign.

Choose from the below words

assignment

plus

minus

and

4.

Rather than count the ending point, one can add the number needed to the (a)   number in the slice.

Choose from the below words

first

last

middle

next

5.

The (a)   operator determines whether a value is in a list. A. containment B. logical C. arithmetic D. comparison

Choose from the below words

containment

logical

arithmetic

comparison

6.

The start and end characters in a slice are separated with a(n) (a)   .

Choose from the below words

colon

comma

semicolon

dash

7.

The percent symbol is the (a)   operator, showing the remainder after division.

Choose from the below words

modulus

division

floor

integer

8.

A common mnemonic to remember the ​ (a)   of operations is Please Excuse My Dear Aunt Sally.

Choose from the below words
sequence

Division

order
math
object
9.

Data structures are lists stored inside of (a)   .

Choose from the below words
variables

functions

modules

objects
10.

Q13. Anything placed inside (a)   in a calculation is calculated first.

Choose from the below words

parentheses

quotes

brackets

commas

11.

Python returns (a)   when dividing an integer and a float.

Choose from the below words

float

decimal

int

string

12.

A(n) (a)   is a container that stores values like strings or numbers.

Choose from the below words

variable

list

method

function

13.

A(n) (a)   is a set of multiple values assigned to one variable.

Choose from the below words

list

tuple

set

string

14.

The (a)   method adds an item to the end of a list.

Choose from the below words

append

add

insert

push

15.

The identity operator 'is' checks if two variables occupy the same (a)   space.

Choose from the below words

memory

logical

variable

comparison

16.

The (a)   operator checks if two variables share the same memory location. A. identity B. comparison

Choose from the below words

identity

comparison

17.

Operators help perform calculations and check conditions within blocks of (a)   .

Choose from the below words

code

data

logic

loops

18.

A(n) (a)   is a function tied to an object that can access or modify it.

Choose from the below words

method

loop

class

operator

19.

The (a)   function converts a value to a string.

Choose from the below words

str

stringify

convert

to_string

20.

The (a)   operator compares two values. A. comparison B. assignment C. logic

Choose from the below words

comparison

assignment

logic

21.

Logical operators include and, (a)   , and not.

Choose from the below words

or

if

then

also

22.

Match the vocabulary with the BEST example!

a)

[1, 2, 3, 4, 5]

1.

List

b)

(1, 2, 3, 4, 5)

2.

Tuple

c)

{1, 2, 3, 4, 5}

3.

Set

d)

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

4.

Dictionary

e)

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

5.

String

23.

What data type is this?
quiz = {"Do you help out at home? ":"yes",        
"Do you beleive in Santa? ":"yes"
}

a)

list

b)

string

c)

dictionart

d)

dictionary

24.

Which data structure does this describe?

Ordered, changeable, duplicates allowed [ ]

a)

List

b)

Tuple

c)

Set

d)

Dictionary

25.

Which data structure does this describe?

Ordered, unchangeable, duplicates allowed ( )

a)

List

b)

Tuple

c)

Set

d)

Dictionary