
Python Lists and Sets
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Pedro Arthur
Used 3+ times
FREE Resource
Enhance your content in a minute
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)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
PTS KELAS 9
Quiz
•
9th - 12th Grade
16 questions
Input Device
Quiz
•
9th - 10th Grade
16 questions
Conditions
Quiz
•
8th - 10th Grade
16 questions
Microcontrolere Noțiuni generale. Structura internă
Quiz
•
KG - 12th Grade
20 questions
Uso del Aula VIrtual
Quiz
•
1st Grade - University
17 questions
Ergonomics and Keyboard
Quiz
•
9th Grade
20 questions
MS EXCEL
Quiz
•
8th - 10th Grade
20 questions
BÀI KTTX SỐ 2
Quiz
•
9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
