
3TDS - Programação Backend - Aula 10
Authored by JOAO MONTEIRO
Information Technology (IT)
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que é uma função anônima em JavaScript?
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
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
Python Variables Quiz
Quiz
•
12th Grade
8 questions
teste sobre cibersegurança
Quiz
•
9th - 12th Grade
11 questions
QUIZ - Search Engine Optimization (SEO)
Quiz
•
12th Grade
10 questions
Understanding Computer Hardware Basics
Quiz
•
12th Grade - University
10 questions
3TDS - Tecnologia e Ferramentas de Gestão - Recuperação 2
Quiz
•
12th Grade
10 questions
AP CK CyberSecurity Unit 4
Quiz
•
12th Grade
10 questions
Quiz aula 8
Quiz
•
9th - 12th Grade
10 questions
Aula 5
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
23 questions
TSI Math Vocabulary
Quiz
•
10th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
Predicting Products
Quiz
•
9th - 12th Grade
20 questions
Presidents Day challenge
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
20 questions
Banking
Quiz
•
9th - 12th Grade