Exercícios de Array no Python
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Ana Almeida
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Crie um array em Python com os números de 1 a 5.
[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
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
14 questions
Bài 29. Nhận biết lỗi chương trình
Quiz
•
9th - 12th Grade
10 questions
Câu hỏi trắc nghiệm Tin Học 10 - Bài 10
Quiz
•
10th Grade
10 questions
Avaliação 1T - JavaScript
Quiz
•
9th - 12th Grade
15 questions
AV1/R1 2TEC_PM_1 A 11_História e Reconhecimento da UX
Quiz
•
1st Grade - University
15 questions
Информатика
Quiz
•
9th - 11th Grade
10 questions
Python Condition Controlled Iteration
Quiz
•
10th Grade
14 questions
ÔN TINHK1, K4
Quiz
•
10th Grade
10 questions
Bài tập Tin học lớp 4
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
