
Manipulação de Arrays em JavaScript
Authored by CLEYTON PINHEIRO
Information Technology (IT)
Professional Development
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o resultado do seguinte código em JavaScript? ```javascript let numeros = [1, 2, 3]; numeros.push(4); console.log(numeros); ```
[1, 2, 3]
[1, 2, 3, 4]
[4, 1, 2, 3]
[1, 2, 4]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O método `pop()` em JavaScript serve para:
Adicionar um elemento ao início do array
Remover o último elemento do array
Remover o primeiro elemento do array
Adicionar um elemento ao final do array
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dado o código abaixo, qual será o valor retornado por `console.log(removido)`? ```javascript let frutas = ['maçã', 'banana', 'laranja']; let removido = frutas.pop(); console.log(removido); ```
'maçã'
'banana'
'laranja'
undefined
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que faz o método `shift()` em um array?
Remove o último elemento do array
Adiciona um elemento ao início do array
Remove o primeiro elemento do array
Adiciona um elemento ao final do array
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual será o resultado do seguinte código? ```javascript let cores = ['azul', 'verde', 'amarelo']; let cor = cores.shift(); console.log(cores); ```
['azul', 'verde', 'amarelo']
['verde', 'amarelo']
['azul', 'amarelo']
['azul', 'verde']
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O método `unshift()` em JavaScript é utilizado para:
Adicionar um elemento ao início do array
Remover o último elemento do array
Adicionar um elemento ao final do array
Remover o primeiro elemento do array
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual será o resultado do seguinte código? ```javascript let numeros = [2, 3, 4]; numeros.unshift(1); console.log(numeros); ```
[2, 3, 4, 1]
[1, 2, 3, 4]
[2, 3, 4]
[4, 3, 2, 1]
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
10 questions
Hactober Cyber Circuit
Quiz
•
Professional Development
17 questions
Política de Segurança
Quiz
•
Professional Development
20 questions
HTML, CSS, Terminal & JavaScript
Quiz
•
Professional Development
16 questions
Blocuri de programare Lego
Quiz
•
Professional Development
10 questions
Acessibilidade na WEB
Quiz
•
Professional Development
16 questions
Funções PPDM Aula 4
Quiz
•
Professional Development
17 questions
Quiz Polimorfismo
Quiz
•
Professional Development
13 questions
EXPLORADOR DE ARCHIVOS
Quiz
•
Professional Development
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
Discover more resources for Information Technology (IT)
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...