
JavaScript Functions Quiz for Students
Quiz
•
Science
•
10th Grade
•
Practice Problem
•
Easy
GISLAINE CRISTINA DE CARVALHO PEREIRA
Used 3+ 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()`
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
Quiz Imunidade Ciências da Natureza Matutino
Quiz
•
10th Grade
15 questions
Quiz sobre Moluscos
Quiz
•
7th Grade - University
10 questions
EVOLUÇÃO
Quiz
•
9th - 12th Grade
10 questions
HIDROSFERA
Quiz
•
1st - 10th Grade
12 questions
Potencia Mecànica
Quiz
•
10th Grade
10 questions
Coleta Seletiva
Quiz
•
KG - Professional Dev...
10 questions
Introdução a Química
Quiz
•
9th - 10th Grade
9 questions
Escala de pH
Quiz
•
9th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Science
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade
14 questions
Natural Selection and Adaptation
Lesson
•
9th - 12th Grade
10 questions
Exploring the Ring of Fire: Volcanoes and Earthquakes
Interactive video
•
6th - 10th Grade
38 questions
Water Cycle and Groundwater
Quiz
•
9th - 12th Grade
10 questions
Exploring Spring and Neap Tides
Interactive video
•
6th - 10th Grade
12 questions
Cell Organelles and Their Functions
Lesson
•
9th - 12th Grade
22 questions
Earth's Spheres and Interactions Quiz Reveiw
Quiz
•
8th - 10th Grade
16 questions
Air Masses & Fronts
Lesson
•
8th - 10th Grade
