BLSCM_Python2

BLSCM_Python2

University

11 Qs

quiz-placeholder

Similar activities

Day - 4

Day - 4

University

15 Qs

ASSESSMENT TASK

ASSESSMENT TASK

University

10 Qs

Orthodontic Removable Appliances

Orthodontic Removable Appliances

University - Professional Development

15 Qs

INTRODUCTION TO BLENDED LEARNING

INTRODUCTION TO BLENDED LEARNING

KG - University

13 Qs

PYTHON set4

PYTHON set4

University

10 Qs

Scratch Contest

Scratch Contest

KG - Professional Development

10 Qs

Formative Assessment

Formative Assessment

University

7 Qs

Hug SMEs Classroom - LINE SHOPPING Academy

Hug SMEs Classroom - LINE SHOPPING Academy

University - Professional Development

10 Qs

BLSCM_Python2

BLSCM_Python2

Assessment

Quiz

Other

University

Medium

Created by

Laura Calvet Liñan

Used 1+ times

FREE Resource

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

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?