Funções em JavaScript
Quiz
•
Instructional Technology
•
12th Grade
•
Practice Problem
•
Hard
Ryan Castro
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a sintaxe correta para declarar uma função em JavaScript?
`function myFunction { }`
`function myFunction() { }`
`myFunction() function { }`
`function: myFunction() { }`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que está errado na seguinte declaração de função? ```javascript function myFunction( { console.log("Hello, World!"); } ```
Falta o nome da função
Falta o parêntese de fechamento `)`
Falta a chave de abertura `{`
Falta o ponto e vírgula `;` após `console.log`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o erro lógico na seguinte função? ```javascript function add(a, b) { return a - b; } ```
A função não retorna nada
A função está subtraindo ao invés de somar
A função não tem parâmetros
A função não está definida corretamente
4.
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 nova variável
Chama outra função
Define um loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o resultado da seguinte função? ```javascript function multiply(x, y) { return x * y; } console.log(multiply(3, 4)); ```
7
12
34
0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o erro de sintaxe na seguinte função? ```javascript function greet(name) { console.log("Hello, " + name); ```
Falta o parêntese de fechamento `)`
Falta a chave de fechamento `}`
Falta o ponto e vírgula `;` após `console.log`
Falta o nome da função
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o resultado da seguinte função se `x = 5` e `y = 10`? ```javascript function sum(x, y) { return x + y; } console.log(sum(x, y)); ```
15
50
510
5
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
14 questions
Electrical Safety Quizziz
Quiz
•
12th Grade
18 questions
Programming in C language
Quiz
•
12th Grade - University
10 questions
1ª Questionário Avaliativo - 1º Trimestre P.C 8ª A - J.A
Quiz
•
8th Grade - University
20 questions
VB.NET + SQL
Quiz
•
12th Grade
10 questions
VOCACIONES Y POTENCIALIDADES DE LA REGION
Quiz
•
1st - 12th Grade
10 questions
kiem tra hoc ky
Quiz
•
11th - 12th Grade
10 questions
Exploración Grado 10
Quiz
•
10th Grade - University
14 questions
Google Education - Noções Básicas Google Drive
Quiz
•
4th Grade - Professio...
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Instructional Technology
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
