
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
15 questions
Explorando o Solo e suas Características
Quiz
•
6th Grade - University
11 questions
Matéria, Separação de misturas e Materiais sintéticos
Quiz
•
10th Grade
13 questions
Compostos orgânicos e inorgânicos_1º ano
Quiz
•
10th Grade
15 questions
SISTEMA DIGESTIU
Quiz
•
1st - 12th Grade
11 questions
Reações Químicas
Quiz
•
6th - 12th Grade
15 questions
Explorando a Formação do Solo
Quiz
•
6th Grade - University
10 questions
Rochas magmáticas
Quiz
•
10th Grade
10 questions
8º ano - SE LIGA - 1º TRIM - Sist digestório
Quiz
•
8th Grade - University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Science
10 questions
Exploring the Evolution of the Peppered Moth
Interactive video
•
6th - 10th Grade
35 questions
DNA Structure and Replication
Quiz
•
10th Grade
10 questions
Exploring Trophic Levels and Food Pyramids
Interactive video
•
6th - 10th Grade
10 questions
Symbiotic Relationships
Lesson
•
9th - 12th Grade
17 questions
Sex-Linked, Co and Incomplete Dominance
Quiz
•
9th - 12th Grade
20 questions
Biology - Intro to Genetics
Quiz
•
10th Grade
10 questions
Exploring Earth's Spheres and Their Interactions
Interactive video
•
6th - 10th Grade
25 questions
Types of Chemical Reactions and Balancing Equations
Quiz
•
10th Grade