
Funções

Quiz
•
Other
•
11th Grade
•
Medium
MARCELO DOS SANTOS ANTONIO
Used 1+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a sintaxe correta para definir uma função em JavaScript?
`function: minhaFuncao() {}`
`function minhaFuncao() {}`
`def minhaFuncao() {}`
`minhaFuncao function() {}`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você chama uma função chamada `minhaFuncao` em JavaScript?
`call minhaFuncao`
`minhaFuncao()`
`execute minhaFuncao`
`run minhaFuncao`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código JavaScript? ```javascript function soma(a, b) { return a + b; } console.log(soma(2, 3)); ```
`23`
`5`
`undefined`
`NaN`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a diferença entre uma função declarada e uma função expressa em JavaScript?
Funções declaradas não podem ser chamadas antes de sua definição.
Funções expressas não podem ser chamadas antes de sua definição.
Não há diferença.
Funções declaradas são anônimas.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que a palavra-chave `return` faz em uma função JavaScript?
Interrompe a execução da função e retorna um valor.
Declara uma variável local.
Chama outra função.
Define um parâmetro de função.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código JavaScript? ```javascript function multiplicar(a, b) { return a * b; } console.log(multiplicar(4, 5)); ```
`20`
`45`
`9`
`undefined`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você define uma função anônima em JavaScript?
`function() {}`
`() function {}`
`def () {}`
`function anony() {}`
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código JavaScript? ```javascript function saudacao(nome) { return "Olá, " + nome + "!"; } console.log(saudacao("Maria")); ```
`Olá, Maria!`
`Olá, nome!`
`Olá, undefined!`
`Olá, !`
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que acontece se uma função não tiver uma instrução `return`?
A função retorna `null`.
A função retorna `undefined`.
A função retorna `0`.
A função gera um erro.
Similar Resources on Wayground
12 questions
Verbos Regulares

Quiz
•
1st - 12th Grade
10 questions
Tarefa semana n° 2

Quiz
•
11th Grade
9 questions
Vamos repassar! - Quinta Classe

Quiz
•
1st - 12th Grade
10 questions
Quiz 1 e 2A de Conhecimentos Diversos

Quiz
•
10th Grade - University
10 questions
Minecraft - Common Sense

Quiz
•
KG - Professional Dev...
10 questions
Fake news

Quiz
•
5th - 12th Grade
10 questions
Introdução a Administração

Quiz
•
11th Grade
13 questions
Código de Conduta - Knewin

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
16 questions
Metric Conversions

Quiz
•
11th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade