Python List Operations

Python List Operations

10th Grade

10 Qs

quiz-placeholder

Similar activities

Evolução dos Computadores - Hardware e Software

Evolução dos Computadores - Hardware e Software

10th Grade

10 Qs

Binary representation revision

Binary representation revision

9th - 10th Grade

10 Qs

SIKOMDIK

SIKOMDIK

10th Grade

15 Qs

Evaluasi Materi Integrasi Aplikasi Office

Evaluasi Materi Integrasi Aplikasi Office

10th Grade

15 Qs

Përdorimi i sigurt i internetit. Platforma eTwinning

Përdorimi i sigurt i internetit. Platforma eTwinning

5th - 12th Grade

15 Qs

SAP - CD a CSS

SAP - CD a CSS

1st - 10th Grade

11 Qs

Identidad Corporativa

Identidad Corporativa

10th Grade

15 Qs

quiz sistem lkomputer

quiz sistem lkomputer

10th Grade

15 Qs

Python List Operations

Python List Operations

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Thomas Martinez

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a list created?

a = 3, 5

a = [3, 5]

a = {3, 5}

a = list

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which python code means; assign 25 to the variable x2?

25 = x2

x2 = 25

x2, 25

25, x2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a = [2, 5, 8, 1]

print("a[2]")

What is the output above?

5

8

a[2]

2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

list1 = ["hello", "hey", "hi"]

print(list1)

How many items will be printed?

1

2

3

0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

filename="example.txt"

with open(filename, "w") as myfile:

myfile.write("Pershendetje")

What happens here?

a file called 'example' is being read

a file called 'example' is created and some text is saved in it.

The text in the 'example' file is assigned to a variable

a variable called filename is created and it's value is printed on a file

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Write the code how to print the number of items of a list called 'mylist'?

7.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

What do you think about the difficulty level of Python?

Very difficult

A little difficult

Average

Not difficult

Easy

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?