Python Lists

Python Lists

8th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Questionário Aula 6 - Int. à Inf. (Segurança e Proteção)

Questionário Aula 6 - Int. à Inf. (Segurança e Proteção)

10th Grade

10 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

ICT as Platform for Change

ICT as Platform for Change

11th - 12th Grade

10 Qs

Numpy-1

Numpy-1

9th - 12th Grade

10 Qs

Introducción Redes Tele1 IB

Introducción Redes Tele1 IB

10th Grade - University

15 Qs

Contact Center Sevices

Contact Center Sevices

7th - 10th Grade

10 Qs

Topic 4.1 Introduction to Java

Topic 4.1 Introduction to Java

12th Grade

20 Qs

Quiz 8 (01.09.2021)

Quiz 8 (01.09.2021)

1st - 12th Grade

10 Qs

Python Lists

Python Lists

Assessment

Quiz

Computers

8th - 12th Grade

Medium

Created by

Nargas Khan

Used 125+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Data Structures are used to group multiple items?

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many values can a variable store?

4

11

456743

1

3.

OPEN ENDED QUESTION

3 mins • 1 pt

Why would you use lists in a program instead of variables?

Evaluate responses using AI:

OFF

Answer explanation

You would use lists in a program instead of a variable when you have more than one value to store and it can be grouped together. It is also more efficient to use a list. It is much better to group the values together in a single variable (list). That is what data structure is - an organised collection of Items.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which brackets are used to create Lists?

()

{}

[]

Answer explanation

Lists are created using square brackets and have commas separating the different data values.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Spot the error in this program:

friends = Alice", "Bob","Liz"]

friends =

"Bob",

"Liz"]

Alice"

Answer explanation

friends = ["Alice", "Bob","Liz"]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does .append () do?

To add a new item to a specified position in the list.

To delete the item specified.

To find the index of a specific item.

To add a new item to the end of the list.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does .insert() do?

To find the index of a specific item.

To delete the item specified.

To add a new item to a specified position in the list.

To find the index of a specific item.

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?