Python_List_fun

Python_List_fun

11 Qs

quiz-placeholder

Similar activities

Python list and tuple

Python list and tuple

6th - 8th Grade

10 Qs

aXQtMjktMTEtMjAyMg==

aXQtMjktMTEtMjAyMg==

Professional Development

10 Qs

Understanding Lists in Python

Understanding Lists in Python

12th Grade

15 Qs

list 3

list 3

9th - 12th Grade

15 Qs

Python List Operations

Python List Operations

10th Grade

10 Qs

CSC305: TOPIC 7

CSC305: TOPIC 7

University

15 Qs

python_basics

python_basics

University

10 Qs

list in python

list in python

10th - 12th Grade

15 Qs

Python_List_fun

Python_List_fun

Assessment

Quiz

Computers

Hard

Created by

GHIS 2023

Used 11+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which List is Correct

my_list =

[1, "Hello", 3.4]

my_list = [1, 2, 3.4]

my_list = [ ]

All the previous

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To add items to a python list

insert()

append()

Extend()

All previous

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

numbers = [21, 34, 54, 12]

numbers.----------------(32)

#The output is [21, 34, 54, 12,32]

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

my_list = [1, "Hello", 3.4]

The index of "Hello" in the previous list is ------------

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To Combine items of two lists in python we use ---------------- method

extend()

insert()

merge()

all previous

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

vowel = ['a', 'e', 'i', 'u']

vowel.----------------(3, 'o')

print('List:', vowel)

 

# Output: List: ['a', 'e', 'i', 'o', 'u']

append

pop

insert

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

languages = ['Python', 'Swift', 'C++', 'C', 'Java', 'Rust', 'R']

languages.---------------('Python')

print(languages)

# The Output is ['Swift', 'C++', 'C', 'Java', 'Rust', 'R']

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?