Creating Lists in Python_v1

Creating Lists in Python_v1

University

19 Qs

quiz-placeholder

Similar activities

Basic Knife Cuts and Shapes

Basic Knife Cuts and Shapes

University

15 Qs

TLE2 M2 System Unit

TLE2 M2 System Unit

University

20 Qs

Latihan bro

Latihan bro

12th Grade - University

20 Qs

TLE2 M4 Understanding Storage Devices & Capacities

TLE2 M4 Understanding Storage Devices & Capacities

University

15 Qs

Россия-Уругвай

Россия-Уругвай

University

14 Qs

BCS Network Security Test 4

BCS Network Security Test 4

University

18 Qs

Life Book Vocabulary Review

Life Book Vocabulary Review

University

17 Qs

I & DT - Quiz ( G Sec )

I & DT - Quiz ( G Sec )

University

20 Qs

Creating Lists in Python_v1

Creating Lists in Python_v1

Assessment

Quiz

Instructional Technology

University

Easy

Created by

Kevin Tinsley

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for creating a list in Python?

list = [1, 2, 3]

list = {1, 2, 3}

list = (1, 2, 3)

list = <1, 2, 3>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a list of float values?

[48.0, 30.5, 20.2, 100.0, 42.0]

["staff", "hat", "shoes"]

["The Holy Grail", 1975, 9.99]

[]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the list that contains string values.

[48.0, 30.5, 20.2, 100.0, 42.0]

["staff", "hat", "shoes"]

["The Holy Grail", 1975, 9.99]

[]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of values does the list 'movie' contain?

Strings

Integers

Floats

Booleans

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet? temps = [48.0, 30.5, 20.2, 100.0, 42.0] temp = temps[0]

A) 48.0

B) 30.5

C) 20.2

D) IndexError

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What error will occur if you try to access temps[5] in the following list? temps = [48.0, 30.5, 20.2, 100.0, 42.0]

IndexError: index out of range

TypeError: list indices must be integers

ValueError: invalid literal for int()

KeyError: 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of 'item' after executing the following code? inventory = ["staff", "hat", "shoes", "bread", "potion", "scroll"] item = inventory[3]

staff

hat

bread

scroll

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?