Python lists - append - insert

Python lists - append - insert

7th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

MOAC Word 2016 Lesson 3

MOAC Word 2016 Lesson 3

8th - 12th Grade

10 Qs

Массивке енгізу және өшіру

Массивке енгізу және өшіру

9th Grade

10 Qs

Python - List 1

Python - List 1

9th Grade

8 Qs

Câu hỏi trắc nghiệm Tin học 10 - Bài 23

Câu hỏi trắc nghiệm Tin học 10 - Bài 23

10th Grade

10 Qs

Bài 23-Một số lệnh làm việc với dữ liệu danh sách

Bài 23-Một số lệnh làm việc với dữ liệu danh sách

10th Grade

10 Qs

Swift-Array Methods

Swift-Array Methods

10th Grade

10 Qs

MS WORD

MS WORD

9th - 11th Grade

10 Qs

Introduction to Python - Lists Part 2

Introduction to Python - Lists Part 2

7th - 8th Grade

10 Qs

Python lists - append - insert

Python lists - append - insert

Assessment

Quiz

Computers

7th - 12th Grade

Medium

Created by

Larbi Yazid

Used 42+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

students = ["Abdulla", "Mohamed", "Fatima","Reem"]


How to add "Saif" at the end of the list?

students.add("Saif")

students.insert("Saif")

students[4]="Saif"

students.append("Saif")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

numbers = [6,7,3,9,2]

How to add 8 at the end of the list?

numbers.append(8)

append numbers(8)

append.numbers(8)

numbers.append[8]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

cars = ["Toyota" , "Lexus" , "Nissan", "Ford"]

How to add after "Lexus" the word "Mercedes"?

cars.insert(3,"Mercedes")

cars.insert(2,"Mercedes")

cars.append("Mercedes")

cars.append(2,"Mercedes")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

weight = [64,78,82,90]

How to add 58 at the beginning of the list?

weight.insert(1,58)

weight.insert(-1,58)

weight.append(58)

weight.insert(0,58)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

colors = ["Red", "Blue", "Green", "Orange"]


How to add "Yellow" between "Green" and "Orange"

colors.insert(2,"Yellow")

colors.insert(3,"Yellow")

colors.insert(4,"Yellow")

colors.insert(5,"Yellow")