Python Lists

Python Lists

University

23 Qs

quiz-placeholder

Similar activities

list 6th

list 6th

7th Grade - University

20 Qs

Python exam preparation

Python exam preparation

University

18 Qs

PPS PYTHON QUIZ

PPS PYTHON QUIZ

University

20 Qs

PP-ASSESSMENT-1

PP-ASSESSMENT-1

University

20 Qs

Understanding Python Functions

Understanding Python Functions

University

20 Qs

Python Prowess

Python Prowess

University

20 Qs

DB Quiz 1: Queries

DB Quiz 1: Queries

University

20 Qs

Python Lists Quiz 8

Python Lists Quiz 8

University

24 Qs

Python Lists

Python Lists

Assessment

Quiz

Computers

University

Medium

Created by

Mr Hoplar

Used 2+ times

FREE Resource

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is associated to lists in Python?

" "

' '

( )

[ ]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we convert a data type to a list?

list( )

array( )

int( )

dataTypeToList( )

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When does indexing start for lists in Python?

0

1

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you create a list in Python that contains 1, 2, and 3?

numbers = 1, 2, 3

numbers = 1 + 2 + 3]

numbers = (1, 2, 3)

numbers = [1, 2, 3]

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you create a list in Python that contains 43.0, "A", True and 2?

data = [43.0, "A", True, 2]

data = 43.0 + "A" + True + 2

data = (43.0, "A", True, 2)

data = 43.0, "A", True, 2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

integers = [10, 20, 30, 40, 50]

What is the output of integers[1] ?

10

20

30

Index Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

integers = [10, 20, 30, 40, 50]

What is the output of integers[0] ?

10

20

30

Index Error

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?