BLSCM_Python2

BLSCM_Python2

University

11 Qs

quiz-placeholder

Similar activities

Pemilu

Pemilu

KG - University

10 Qs

Competencias Ciudadanas

Competencias Ciudadanas

University

10 Qs

Lost and Found

Lost and Found

University

10 Qs

Liga Santander

Liga Santander

KG - Professional Development

15 Qs

RH MAS level2

RH MAS level2

KG - Professional Development

10 Qs

YOU THINK YOU KNOW AH?

YOU THINK YOU KNOW AH?

University - Professional Development

11 Qs

Mrk - DaPembd

Mrk - DaPembd

University

15 Qs

Accounting 100

Accounting 100

University

13 Qs

BLSCM_Python2

BLSCM_Python2

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

Laura Calvet Liñan

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...

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the correct way to create a list in Python?
my_list =

(1, 2, 3)

{1, 2, 3}

[1, 2, 3]

<1, 2, 3>

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you modify the first element of a list
my_list = [10, 20, 30]
to 100?

my_list(0) = 100

my_list[1] = 100

my_list[0] = 100

my_list = [100]

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following correctly appends 50 to the list my_list = [10, 20, 30]?

my_list.append(50)

my_list.add(50)

my_list.insert(50)

my_list += [50]

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you remove the value 20 from the list my_list = [10, 20, 30]?

my_list.delete(20)

my_list.remove(20)

my_list.pop(20)

my_list.clear(20)

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does my_list[1:3] return for my_list = [10, 20, 30, 40]?

[20, 30, 40]

[30, 40]

[20, 30]

[10, 20]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the value associated with the key 'age' in the dictionary
person = {'name': 'Alice', 'age': 25}?

person['name']

person.get('age')

person.age

person['25']

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

x = 10

if x > 5:

print("Greater")

else:

print("Smaller")

Greater

Smaller

None

Error

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?