Python List, Tuple, Set & Dictionaries

Python List, Tuple, Set & Dictionaries

Assessment

Assessment

Created by

Yolande Cole

Computers

Professional Development

809 plays

Medium

Student preview

quiz-placeholder

25 questions

Show answers

1.

Multiple Choice

30 sec

1 pt

Square brackets in an assignment statement will create which type of data structure?

( s=[] )

List

Queue

Dictionary

Set

2.

Multiple Choice

30 sec

1 pt

Which of these is the correct code for creating a list of names?

nameList = John, Harry, Jesse, John, Harry, Harry

nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList = [John, Harry, Jesse, John, Harry, Harry]

3.

Multiple Choice

30 sec

1 pt

List items have an index number. In the following list, which item has the index number of 3?

["John", "Harry", "Jesse", "John", "Harry", "Harry"]

"John"

"Harry"

"Jesse"

"John"

4.

Multiple Choice

30 sec

1 pt

Which of these pieces of code would return the name "Harry" from the following list?

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList()

nameList[1]

NameList(4)

nameList["4"]

5.

Multiple Choice

30 sec

1 pt

Media Image

What is the position of the name "Robert" in the following list:

0

1

2

3

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Find a similar activity

Create activity tailored to your needs using

Quizizz AI
python quiz

30 questions

python quiz

assessment

Professional Development

Python - List (metods)

20 questions

Python - List (metods)

assessment

Professional Development

Quiz Module 2 and 3

27 questions

Quiz Module 2 and 3

assessment

Professional Development

Python quiz 1

30 questions

Python quiz 1

assessment

7th Grade - Professio...

Stats+Python ISA Test - Quiz

20 questions

Stats+Python ISA Test - Quiz

assessment

University - Professi...

Python Lists Dictionaries Tuple Set

25 questions

Python Lists Dictionaries Tuple Set

assessment

Professional Development

Python Lists and Dictionaries

25 questions

Python Lists and Dictionaries

assessment

Professional Development

Тест 2. Функции и коллекции

21 questions

Тест 2. Функции и коллекции

assessment

Professional Development