Lists review (Python)

Lists review (Python)

University

10 Qs

quiz-placeholder

Similar activities

Quiz 6

Quiz 6

University

10 Qs

Python Quiz Ver- 1.3

Python Quiz Ver- 1.3

University

15 Qs

Python list starter

Python list starter

10th Grade - University

12 Qs

Python Dictionaries

Python Dictionaries

University

10 Qs

BUG BLUSTERS

BUG BLUSTERS

University

15 Qs

Computational Thinking in Python[Quiz 2]

Computational Thinking in Python[Quiz 2]

University

15 Qs

Fruits and veggies

Fruits and veggies

KG - University

15 Qs

Lists In Python_1

Lists In Python_1

9th Grade - University

15 Qs

Lists review (Python)

Lists review (Python)

Assessment

Quiz

Computers

University

Medium

Created by

ALBERTO HILARIO

Used 13+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this code

8

13

It gives an error

6

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What line of code will generate an error?

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of this code?

5

6

7

8

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the result of this code?

1

2

3

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these examples show the correct way to write a list?

fruit = apple, banana, pear, cherry

fruit=['apple','banana','pear','cherry']

fruit = ('apple', 'banana', 'pear', 'cherry')

fruit=['apple'+'banana'+'pear'+'cherry']

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of variables does this list contain?

OneD = ['Niall','Zayn','Liam','Harry','Louis']

Integer

Float

String

Boolean

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands will print all the items of this list:

fruits = ["apple", "banana", "pear", "strawberry"]

print(fruit)

print(fruits)

print("fruits")

print[fruits]

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?