Quiz de Funções em p5.js
Quiz
•
Computers
•
10th Grade
•
Medium
JOAO MONTEIRO
Used 1+ times
FREE Resource
Enhance your content
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 */ }`
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
WEB AUTHORING: QUIZ 4
Quiz
•
9th - 12th Grade
9 questions
Test Excel
Quiz
•
10th - 12th Grade
15 questions
Polecenia sieciowe
Quiz
•
1st - 12th Grade
14 questions
SQL 3
Quiz
•
11th Grade
10 questions
North and south bridge
Quiz
•
9th - 10th Grade
10 questions
แบบทดสอบ
Quiz
•
9th - 12th Grade
15 questions
TEST DE PENSAMIENTO LOGICO
Quiz
•
10th Grade
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade