Python Lists and Sets

Python Lists and Sets

9th Grade

20 Qs

quiz-placeholder

Similar activities

Design your website

Design your website

7th - 12th Grade

20 Qs

Artificial Intelligence and SketchUp

Artificial Intelligence and SketchUp

8th - 10th Grade

20 Qs

CIA Mid-Term Review 1

CIA Mid-Term Review 1

9th - 10th Grade

17 Qs

Computational Thinking - Review

Computational Thinking - Review

7th - 9th Grade

15 Qs

CPA Rev 6

CPA Rev 6

9th - 10th Grade

20 Qs

flowol week 3

flowol week 3

9th - 12th Grade

17 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

Computer System

Computer System

9th - 11th Grade

21 Qs

Python Lists and Sets

Python Lists and Sets

Assessment

Quiz

Computers

9th Grade

Practice Problem

Hard

Created by

Pedro Arthur

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do código: lista = [10, 20, 30] print(lista[1])?

A) 10

B) 20

C) Erro: índice inexistente

D) 30

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual comando cria uma lista vazia em Python?

lista = list(0)

lista = []

lista = ""

lista = {}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a forma correta de adicionar o número 50 ao final da lista?

lista.append(50)

lista.add(50)

lista.push(50)

lista.insert(0, 50)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dado lista = [1, 2, 3], o que faz lista.insert(1, 10)?

Substitui o 2 por 10

Insere 10 na posição 1

Remove o índice 1

Adiciona 10 no final

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Em listas, a ordem dos elementos não importa

Verdadeiro

Falso

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída de: for i in range(3): print(i)?

0123

123

Erro de sintaxe

012

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dada a lista = [1, 2, 3], qual é a maneira correta de imprimir todos os elementos usando for?

for i in range(lista): print(i)

for i in lista: print(lista[i])

for i in len(lista): print(i)

for valor in lista: print(valor)

Create a free account and access millions of resources

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