Lists review (Python)

Lists review (Python)

University

10 Qs

quiz-placeholder

Similar activities

Python End of Topic Quiz

Python End of Topic Quiz

8th Grade - University

15 Qs

Python Basics

Python Basics

University

10 Qs

Python Programming

Python Programming

5th Grade - University

15 Qs

Python3

Python3

4th Grade - University

10 Qs

Python List

Python List

University

10 Qs

J277 - 2.2 - Random Number Generation

J277 - 2.2 - Random Number Generation

10th Grade - University

8 Qs

Python Basics

Python Basics

University

15 Qs

Python Dictionaries

Python Dictionaries

University

10 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?