Lists review (Python)

Lists review (Python)

University

10 Qs

quiz-placeholder

Similar activities

Python lists

Python lists

9th Grade - Professional Development

7 Qs

python_basics

python_basics

University

10 Qs

Python Sets

Python Sets

University

10 Qs

CSC305: TOPIC 7

CSC305: TOPIC 7

University

15 Qs

basic programming quiz

basic programming quiz

University

10 Qs

Python Quiz - 1

Python Quiz - 1

University

10 Qs

Dictionary Python

Dictionary Python

University

15 Qs

Lists in python

Lists in python

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?