O que é uma função anônima em JavaScript?
3TDS - Programação Backend - Aula 10

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
JOAO MONTEIRO
Used 1+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Uma função que não possui um nome.
Uma função que é chamada automaticamente.
Uma função que é usada apenas uma vez.
Uma função que retorna sempre o mesmo valor.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a diferença entre parâmetros e argumentos em funções JavaScript?
Parâmetros são valores passados para a função, enquanto argumentos são variáveis dentro da função.
Parâmetros são variáveis definidas na declaração da função, enquanto argumentos são os valores passados para a função quando ela é chamada.
Parâmetros e argumentos são a mesma coisa.
Parâmetros são usados apenas em funções anônimas.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o escopo de uma função em JavaScript?
O escopo de uma função é global, podendo acessar todas as variáveis do programa.
O escopo de uma função é local, podendo acessar apenas variáveis definidas dentro dela.
O escopo de uma função é limitado apenas a variáveis passadas como argumentos.
O escopo de uma função é indefinido até que a função seja chamada.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que caracteriza uma função de ordem superior em JavaScript?
Uma função que retorna sempre o mesmo valor.
Uma função que aceita outras funções como argumentos ou retorna uma função.
Uma função que é chamada automaticamente.
Uma função que não possui um nome.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das opções abaixo é um exemplo de função anônima?
`function exemplo() { return 1; }`
`const exemplo = function() { return 1; };`
`function exemplo() { return function() { return 1; }; }`
`const exemplo = () => { return 1; };`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Considere a função abaixo. Qual será o valor de `x` após a execução? ```javascript let x = 10; function alterarX() { let x = 5; } alterarX(); ```
5
10
15
Indefinido
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```javascript function soma(a, b) { return a + b; } console.log(soma(2, 3)); ```
23
5
6
2
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das opções abaixo é um exemplo de função de ordem superior?
`function exemplo() { return 1; }`
`function exemplo(callback) { return callback(); }`
`function exemplo() { return function() { return 1; }; }`
`function exemplo() { return 1 + 1; }`
Similar Resources on Quizizz
6 questions
Javascript Intro Parte I

Quiz
•
12th Grade
10 questions
3TDS - Programação Backend - 1002

Quiz
•
12th Grade
10 questions
HTML

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

Quiz
•
12th Grade
7 questions
3TDS - Programação Mobile - Aula 08

Quiz
•
12th Grade
10 questions
2TDS - Banco de Dados - Recuperação 2

Quiz
•
12th Grade
8 questions
Javascript Intro Parte II

Quiz
•
12th Grade
5 questions
3TDS - Programação Mobile - Aula 02

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