
JavaScript Functions Quiz for Students
Quiz
•
Science
•
10th Grade
•
Practice Problem
•
Easy
GISLAINE CRISTINA DE CARVALHO PEREIRA
Used 2+ times
FREE Resource
Enhance your content in a minute
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()`
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
12 questions
AV3 - GAME INTERDISCIPLINAR - 1ª SÉRIE - RP
Quiz
•
10th Grade
15 questions
Citologia e membrana
Quiz
•
6th - 12th Grade
11 questions
Quiz-Key Points in Geosphere
Quiz
•
9th - 12th Grade
10 questions
Plant-Based Dye Presentation Quiz
Quiz
•
9th - 12th Grade
13 questions
Descobrindo a Ciência e a Natureza
Quiz
•
6th Grade - University
10 questions
Conhecendo as Vitaminas
Quiz
•
10th Grade - University
11 questions
Untitled Quiz
Quiz
•
7th Grade - University
10 questions
ROBÓTICA COM TINKERCAD
Quiz
•
5th Grade - Professio...
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Science
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
10 questions
Exploring Light and Waves Concepts
Interactive video
•
6th - 10th Grade
12 questions
Endothermic and Exothermic Reactions
Quiz
•
7th - 10th Grade
20 questions
Balanced and unbalanced forces
Quiz
•
10th Grade
10 questions
Exploring Thermal Energy and Temperature Concepts
Interactive video
•
6th - 10th Grade
10 questions
Exploring Kinetic and Potential Energy Concepts
Interactive video
•
6th - 10th Grade
32 questions
Explore Mixtures and Solutions
Quiz
•
9th - 12th Grade
