
Python Lists Quiz for Students
Authored by Marcelo Carlos
Information Technology (IT)
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das alternativas a seguir cria uma lista vazia em Python?
lista = ()
lista = []
lista = {}
lista = ""
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? numbers = [1, 2, 3] numbers.append(4) print(numbers)
[1, 2, 3]
[1, 2, 3, 4]
[4, 1, 2, 3]
[1, 2, 3, [4]]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual método remove a primeira ocorrência de um valor especificado de uma lista?
pop()
remove()
delete()
discard()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o resultado do seguinte código? fruits = ['apple', 'banana', 'cherry'] print(fruits[1])
'apple'
'banana'
'cherry'
'fruits[1]'
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das seguintes instruções irá criar uma lista com 5 zeros?
[0, 0, 0, 0, 0]
[0]*5
list(0, 0, 0, 0, 0)
Tanto A quanto B
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que o seguinte código imprime? numbers = [10, 20, 30, 40, 50] print(numbers[1:4])
[10, 20, 30, 40]
[20, 30, 40]
[20, 30, 40, 50]
[30, 40, 50]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual método você usaria para adicionar todos os elementos de uma lista a outra?
append()
extend()
insert()
add()
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?