
Listas e Funções
Authored by Higor Ornelas
Information Technology (IT)
10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual comando adiciona um novo elemento ao final de uma lista em Python?
list.add()
list.append()
list.push()
list.extend()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O método remove() em uma lista:
Remove o último elemento.
Remove o elemento em uma posição específica.
Remove o primeiro elemento com o valor informado.
Esvazia toda a lista.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O método pop() em uma lista:
Remove o primeiro elemento.
Remove e retorna o último elemento por padrão.
Adiciona um item ao final da lista.
Duplica a lista.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como acessar o último elemento de uma lista numeros?
numeros[1]
numeros[-1]
numeros[len(numeros)]
numeros[0]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual destas opções cria uma lista vazia?
lista = ()
lista = {}
lista = []
lista = None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dado lista = [1, 2, 3], o que faz lista.extend([4, 5])?
Cria uma nova lista.
Adiciona [4,5] como um único elemento.
Adiciona os elementos 4 e 5 ao final da lista.
Substitui os elementos existentes.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual comando exibe o tamanho de uma lista dados?
tamanho(dados)
count(dados)
len(dados)
dados.size()
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?