Lists review (Python)

Lists review (Python)

University

10 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

University

10 Qs

Python List

Python List

University

10 Qs

Python Round 3

Python Round 3

University

11 Qs

Python Programming Intermediate-1

Python Programming Intermediate-1

University

15 Qs

Functions and Modules

Functions and Modules

University

10 Qs

HCI 584 Python quiz

HCI 584 Python quiz

University

15 Qs

Python Lists and Tuples

Python Lists and Tuples

University

11 Qs

Python Quiz 2.0

Python Quiz 2.0

University

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