Understanding Lists in Python

Understanding Lists in Python

7th Grade

20 Qs

quiz-placeholder

Similar activities

KELAS 7 BAB 6 ANALISIS DATA C. Pengolahan Data Dasar

KELAS 7 BAB 6 ANALISIS DATA C. Pengolahan Data Dasar

7th Grade - University

20 Qs

Understanding Digital Media: Effects and Health Impacts

Understanding Digital Media: Effects and Health Impacts

7th Grade

15 Qs

Kegiatan Amal di Bulan Ramadhan

Kegiatan Amal di Bulan Ramadhan

5th Grade - University

15 Qs

Викторина по истории информатики

Викторина по истории информатики

6th - 8th Grade

16 Qs

ICT Quizz 1 P6

ICT Quizz 1 P6

6th - 8th Grade

15 Qs

Pemrograman Visual dan Scratch

Pemrograman Visual dan Scratch

7th Grade - University

15 Qs

Asesmen Harian Informatika Kelas 7

Asesmen Harian Informatika Kelas 7

7th Grade - University

18 Qs

Soal pengulangan berfikri komputasioan

Soal pengulangan berfikri komputasioan

7th Grade - University

20 Qs

Understanding Lists in Python

Understanding Lists in Python

Assessment

Quiz

Information Technology (IT)

7th Grade

Practice Problem

Medium

Created by

John Heatley

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to create a list of fruits in Python?

fruits = "apple", "banana", "cherry"

fruits = ["apple", "banana", "cherry"]

fruits = {"apple", "banana", "cherry"}

fruits = ("apple", "banana", "cherry")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the first element of the list `numbers = [10, 20, 30, 40]`?

numbers[1]

numbers[0]

numbers(0)

numbers.first()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? ```python colours = ["red", "blue", "green"] print(colours[2]) ```

"red"

"blue"

"green"

"colours"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following creates an empty list in Python?

empty = ()

empty = []

empty = {}

empty = ""

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the list `animals = ["cat", "dog", "rabbit"]`, what does `animals[1]` return?

"cat"

"dog"

"rabbit"

1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of "banana" in the list `fruits = ["apple", "banana", "cherry"]`?

0

1

2

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the last element of the list `numbers = [5, 10, 15, 20]` using a negative index?

numbers[-1]

numbers[-2]

numbers[3]

numbers[4]

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?