
Quiz de JavaScript para Iniciantes

Quiz
•
Instructional Technology
•
10th Grade
•
Hard
ITALO FERREIRA
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a diferença entre `let` e `const` em JavaScript?
`let` permite reatribuição de valores, enquanto `const` não permite.
`const` permite reatribuição de valores, enquanto `let` não permite.
Ambos permitem reatribuição de valores.
Nenhum permite reatribuição de valores.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código JavaScript? ```javascript let x = 10; if (true) { let x = 20; } console.log(x); ```
10
20
undefined
Erro
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual método é usado para adicionar um evento de clique a um elemento no DOM?
`addEventListener`
`attachEvent`
`onClick`
`clickEvent`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que o seguinte código faz no contexto do DOM? ```javascript document.getElementById("meuElemento").innerHTML = "Olá, Mundo!"; ```
Altera o texto de um elemento com o id "meuElemento" para "Olá, Mundo!"
Adiciona um novo elemento com o texto "Olá, Mundo!"
Remove o elemento com o id "meuElemento"
Cria um novo documento HTML
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```javascript const y = 5; y = 10; console.log(y); ```
5
10
undefined
Erro
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a estrutura correta para uma condição `if` em JavaScript?
`if x > 5 then { }`
`if (x > 5) { }`
`if x > 5: { }`
`if x > 5 { }`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a diferença entre `var` e `let` em termos de escopo?
`var` tem escopo de bloco, enquanto `let` tem escopo de função.
`let` tem escopo de bloco, enquanto `var` tem escopo de função.
Ambos têm escopo de bloco.
Ambos têm escopo de função.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
JavaScript basics (vidcode, BR JSDJ Day 1)

Quiz
•
5th - 12th Grade
20 questions
Quiz sobre Cultura Digital e Tecnologia

Quiz
•
10th Grade - University
10 questions
RECUPERAÇÃO: HTML e CSS (5,0 P)

Quiz
•
10th Grade
15 questions
Robótica e Semáforos: Quiz Divertido

Quiz
•
3rd Grade - University
13 questions
Pensamento Computacional

Quiz
•
10th Grade
16 questions
M05 - Estruturas de Dados Python

Quiz
•
10th Grade - University
11 questions
Examen JavaScript

Quiz
•
10th Grade
15 questions
Revisão Programação Web - 2

Quiz
•
10th Grade - Professi...
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade
Discover more resources for Instructional Technology
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
ROAR Week 2025

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
20 questions
Bloom Day School Community Quiz

Quiz
•
10th Grade
12 questions
Macromolecules

Lesson
•
9th - 12th Grade
13 questions
Cell Phone Free Act

Quiz
•
9th - 12th Grade