
JavaScript Functions Quiz for Students
Authored by GISLAINE CRISTINA DE CARVALHO PEREIRA
Science
10th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o propósito da função `setup()` em JavaScript ao usar a biblioteca p5.js?
Criar um loop que executa continuamente o código dentro dele.
Inicializar variáveis e definir propriedades iniciais do ambiente.
Desenhar formas no canvas.
Parar o loop de desenho.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual função é usada para executar repetidamente o código dentro dela na biblioteca p5.js?
`setup()`
`draw()`
`createCanvas()`
`noLoop()`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que a função `createCanvas()` faz na biblioteca p5.js do JavaScript?
Define a cor de fundo do canvas.
Cria um canvas de desenho na página web.
Preenche formas com cor.
Interrompe o loop de desenho.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
No p5.js, qual função é usada para definir a cor usada para preencher formas?
`background()`
`fill()`
`random()`
`int()`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o papel da função `background()` no p5.js?
Definir a cor usada para preencher formas.
Criar uma tela de desenho.
Definir a cor usada para o fundo da tela.
Gerar números aleatórios.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual função no p5.js é usada para gerar números aleatórios?
`random()`
`int()`
`fill()`
`noLoop()`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você pode converter um número de ponto flutuante para um inteiro em p5.js?
Usando `random()`
Usando `int()`
Usando `fill()`
Usando `background()`
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
Física - 1ª série - 09/19
Quiz
•
10th Grade
8 questions
Lesson 3: Reading Graphs (ACT Science Mastery)
Quiz
•
9th - 12th Grade
12 questions
Aula Diagnóstica - Ciências da Natureza
Quiz
•
9th - 12th Grade
10 questions
Quiz sobre Células
Quiz
•
7th Grade - University
15 questions
Avaliação do 7 ano, Recuperação, Marcó de 2025untitled
Quiz
•
7th Grade - University
12 questions
Round 2nd - funções inorgânicas
Quiz
•
9th - 12th Grade
11 questions
Quiz-Key Points in Watershed & Wetland
Quiz
•
10th Grade
15 questions
Misturas, densidade e miscibilidade
Quiz
•
6th Grade - University
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 Science
10 questions
Exploring Weathering, Erosion, and Deposition Processes
Interactive video
•
6th - 10th Grade
14 questions
Natural Selection and Adaptation
Lesson
•
9th - 12th Grade
10 questions
Exploring Water Pollution and Conservation
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Human Respiratory System
Interactive video
•
6th - 10th Grade
30 questions
Unit 2C Progress Check (Biosphere 3)
Quiz
•
9th - 12th Grade
14 questions
Genetics Practice (Mendelian & Non-mendelian)
Quiz
•
10th Grade
10 questions
Exploring Light and Waves Concepts
Interactive video
•
6th - 10th Grade
35 questions
DNA Structure and Replication
Quiz
•
10th Grade