Crie um array em Python com os números de 1 a 5.
Exercícios de Array no Python

Quiz
•
Computers
•
10th Grade
•
Medium

Ana Almeida
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
[2, 4, 6, 8, 10]
[1, 3, 5, 7, 9]
[1, 2, 3, 4, 5]
[5, 4, 3, 2, 1]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como aceder ao terceiro elemento de um array em Python?
array_name[2]
array_name.get(2)
array_name(2)
array_name[3]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o método em Python, que é utilizado para adicionar um elemento no final de um array?
push()
extend()
insert()
append()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como inverter a ordem dos elementos num array em Python?
array.sort().reverse()
array[::-1]
array.reverse()
array.sort(reverse=True)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explique a diferença entre append() e extend() em Python quando utilizados em arrays.
append() adiciona elementos no início do array, extend() adiciona no final
append() é mais eficiente que extend() na adição de múltiplos elementos
append() adiciona um único elemento, extend() adiciona múltiplos elementos
append() adiciona múltiplos elementos, extend() adiciona um único elemento
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como remover um elemento específico de um array em Python?
array.pop(elemento)
array.remove(elemento)
array.delete(elemento)
array.exclude(elemento)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a função do método pop() em Python quando utilizado em arrays?
Remove e retorna o último elemento do array
Adiciona um elemento no início do array
Cria uma cópia do array sem modificar o original
Inverte a ordem dos elementos no array
Create a free account and access millions of resources
Similar Resources on Quizizz
8 questions
Numpy Revision Test

Quiz
•
10th Grade
10 questions
Reconhecimento de voz

Quiz
•
10th - 12th Grade
10 questions
Understanding Arrays in Programming

Quiz
•
10th Grade
10 questions
Lógica Computacional - Comandando a entrada de dados

Quiz
•
10th Grade
6 questions
Programação e Algoritmos

Quiz
•
6th Grade - University
9 questions
Prova de P.C. 1º anos (HTML e CSS)

Quiz
•
10th Grade
15 questions
AV1\R1 3TEC_BE_Acesso a Propriedades em JavaScript 1 a 16

Quiz
•
1st Grade - University
10 questions
HTML, CSS e Javascript

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade