
Quiz de Funções em p5.js
Authored by JOAO MONTEIRO
Computers
10th Grade
Used 1+ 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 é a principal função do bloco `setup()` em um projeto p5.js?
Desenhar formas geométricas continuamente na tela.
Configurar o ambiente inicial, como tamanho da tela e variáveis.
Detectar interações do teclado.
Repetir comandos indefinidamente.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que a função `draw()` faz em um sketch p5.js?
Executa comandos apenas uma vez no início.
Desenha formas geométricas apenas quando o usuário clica.
Executa comandos continuamente, criando animações.
Salva o desenho em um arquivo.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual comando é utilizado para desenhar um círculo em p5.js?
`rect(x, y, w, h)`
`ellipse(x, y, w, h)`
`line(x1, y1, x2, y2)`
`triangle(x1, y1, x2, y2, x3, y3)`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
`rect(50, 50, 100, 100)`
`ellipse(50, 50, 100, 100)`
`rect(100, 100, 50, 50)`
`triangle(50, 50, 100, 100, 150, 150)`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das alternativas abaixo representa corretamente uma estrutura de repetição FOR em JavaScript?
`for (let i = 0; i < 10; i++) { /* comandos */ }`
`if (i < 10) { /* comandos */ }`
`while (i < 10) { /* comandos */ }`
`repeat (i = 0; i < 10; i++) { /* comandos */ }`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
`if x > 100 { /* comandos */ }`
`if (x > 100) { /* comandos */ }`
`if x = 100 { /* comandos */ }`
`if (x < 100) { /* comandos */ }`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você pode detectar se a tecla "espaço" foi pressionada em p5.js?
`if (key == ' ') { /* comandos */ }`
`if (mousePressed) { /* comandos */ }`
`if (keyCode == ENTER) { /* comandos */ }`
`if (key == 'a') { /* comandos */ }`
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
REVIEW WEB SERVER ASJ XI TKJ
Quiz
•
11th Grade
10 questions
DNS dan Web server
Quiz
•
11th Grade
8 questions
*Вам пришло сообщение (правда-ложь)
Quiz
•
University
10 questions
AMS - Aula 03
Quiz
•
University
10 questions
SHORTCUT PADA KEYBOARD
Quiz
•
10th - 12th Grade
10 questions
Entorno Financiero Digital 2do test
Quiz
•
University
10 questions
Control y Robótica
Quiz
•
12th Grade
10 questions
Informática 1bgu Prueba#2
Quiz
•
11th Grade
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