python data structure 1

python data structure 1

KG - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Attacchi informatici

Attacchi informatici

9th - 12th Grade

10 Qs

Chapter 6 Part 2 - 4

Chapter 6 Part 2 - 4

11th - 12th Grade

11 Qs

7.02 going online

7.02 going online

4th - 9th Grade

10 Qs

ULANGAN BAB 2 TIK

ULANGAN BAB 2 TIK

KG - University

10 Qs

ระบบปฏิบัติการ windows

ระบบปฏิบัติการ windows

University

10 Qs

Pop Science: DNA

Pop Science: DNA

8th - 12th Grade

15 Qs

GRAND OPENING INTERNSHIP EXERCISE 2024

GRAND OPENING INTERNSHIP EXERCISE 2024

Professional Development

13 Qs

ICT Review Quiz

ICT Review Quiz

5th Grade

13 Qs

python data structure 1

python data structure 1

Assessment

Quiz

Computers, Science

KG - 12th Grade

Practice Problem

Hard

Created by

guanxiong sun

Used 23+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the colors[2] expression?

'burnt sienna'

'green'

It causes a run-time error.

'red'

'blue'

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

How would you access the element 'red' from the above list?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the result of the "yellow in colors" expression?

False

True

3

Errors

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

x = [10, [3.141, 20, [30, 'baz', 2.718]], 'foo']

What is the expression that returns the 2.718?

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

x = [10, [3.141, 20, [30, 'baz', 2.718]], 'foo']

What is the expression that returns the 'z' in 'baz'?

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What’s the main difference between Python lists and tuples?

Lists are faster and tuples are slower.

Lists are immutable and tuples are mutable.

Lists are mutable and tuples are immutable.

Correct

Lists can hold any data type and tuples can only contain int and str objects.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Create a variable to store some information of James. We need to store his name "James", his email "james@google.com", his mobile 07746330330.

What data structure would you like to use?

List

Dictionary

Tuple

Set

Access all questions and much more by creating a free account

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

Already have an account?