List 1

List 1

12th Grade

9 Qs

quiz-placeholder

Similar activities

How well do you know me?

How well do you know me?

KG - Professional Development

11 Qs

Intro to Python Programming Quiz 9D

Intro to Python Programming Quiz 9D

1st Grade - University

14 Qs

Python Programming L1 Quiz

Python Programming L1 Quiz

12th Grade

14 Qs

Tricky riddles

Tricky riddles

KG - 12th Grade

11 Qs

Tuples 4

Tuples 4

12th Grade

10 Qs

Python - Loop Sets - 5

Python - Loop Sets - 5

12th Grade

10 Qs

Python Types (Beginners)

Python Types (Beginners)

1st - 12th Grade

10 Qs

Tuples 6

Tuples 6

12th Grade

10 Qs

List 1

List 1

Assessment

Quiz

Other

12th Grade

Medium

Created by

Amy Austin

Used 1+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is used in Python to store multiple items in a single variable?

Array

List

Dictionary

Tuple

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python collection is ordered and changeable?

Tuple

List

Dictionary

Set

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you add new items to a Python list?

Using the add() method

Using the append() method

Using the insert() method

Items cannot be added once a list is created

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to determine how many items a list has in Python?

count()

length()

len()

size()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create a list in Python?

list('apple', 'banana', 'cherry')

list['apple', 'banana', 'cherry']

['apple', 'banana', 'cherry']

list=('apple', 'banana', 'cherry')

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which collection type allows duplicate members in Python?

Set

List

Dictionary

All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a Python collection data type?

Array

List

Set

Dictionary

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you copy a list in Python?

Lists cannot be copied

Using the clone() method

Using the duplicate() method

Using the copy() method

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python version started treating dictionaries as ordered?

Python 3.5

Python 3.6

Python 3.7

Python 2.7