Lists review (Python)

Lists review (Python)

University

10 Qs

quiz-placeholder

Similar activities

6-文件操作

6-文件操作

University

10 Qs

Listen in Python

Listen in Python

University

10 Qs

Chap 1: What is a program made of?

Chap 1: What is a program made of?

University

13 Qs

ITESA Roadmap Event 12-09-24

ITESA Roadmap Event 12-09-24

University

10 Qs

DSA - Intro

DSA - Intro

University

10 Qs

DAA quiz2

DAA quiz2

University

15 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Topic 4-2: Multiple if-else and switch-case

Topic 4-2: Multiple if-else and switch-case

University

10 Qs

Lists review (Python)

Lists review (Python)

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

ALBERTO HILARIO

Used 14+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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]

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers