Qual das seguintes opções é uma estrutura de repetição em JavaScript?
3TDS - Programação Backend - Aula 13

Quiz
•
Information Technology (IT)
•
12th Grade
•
Medium
JOAO MONTEIRO
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if-else
switch
for
try-catch
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Considere o seguinte código em JavaScript: ```javascript for (let i = 0; i < 5; i++) { console.log(i); } ``` Quantas vezes o laço `for` será executado?
4 vezes
5 vezes
6 vezes
1 vez
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a diferença principal entre os laços `while` e `do-while` em JavaScript?
`while` executa pelo menos uma vez, `do-while` pode não executar
`do-while` executa pelo menos uma vez, `while` pode não executar
Ambos sempre executam pelo menos uma vez
Não há diferença
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que acontece quando a instrução `break` é usada dentro de um laço de repetição?
O laço é pausado temporariamente
O laço é encerrado imediatamente
O laço continua para a próxima iteração
O laço é reiniciado
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Considere o seguinte código em JavaScript: ```javascript for (let i = 0; i < 5; i++) { if (i === 2) { continue; } console.log(i); } ``` Quais números serão impressos no console?
0, 1, 2, 3, 4
0, 1, 3, 4
0, 1, 2, 4
1, 2, 3, 4
Similar Resources on Quizizz
5 questions
3TDS - Programação Backend - Aula 15

Quiz
•
12th Grade
10 questions
Quiz aula 6

Quiz
•
9th - 12th Grade
10 questions
Quiz aula 7

Quiz
•
9th - 12th Grade
10 questions
2º Quiz de Login em HTML e CSS

Quiz
•
12th Grade
10 questions
Aula 4

Quiz
•
9th - 12th Grade
5 questions
3TDS - Programação Backend - Aula 06

Quiz
•
12th Grade
10 questions
Quiz de Programação em Scratch

Quiz
•
12th Grade
6 questions
Quizizz 03 Javascript intro parte III

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University