Quiz de Funções em p5.js

Quiz de Funções em p5.js

10th Grade

10 Qs

quiz-placeholder

Similar activities

Câu hỏi trắc nghiệm Tin Học 10 - Bài 10

Câu hỏi trắc nghiệm Tin Học 10 - Bài 10

10th Grade

10 Qs

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

Porcentajes

Porcentajes

University

12 Qs

Ôn lại kiến thức  Lớp 3 T13

Ôn lại kiến thức Lớp 3 T13

1st - 10th Grade

10 Qs

ADVACOMT-Quiz No.1 (final term)

ADVACOMT-Quiz No.1 (final term)

University

15 Qs

Directorios y Carpetas

Directorios y Carpetas

12th Grade

10 Qs

TEST DE PENSAMIENTO LOGICO

TEST DE PENSAMIENTO LOGICO

10th Grade

15 Qs

Test Excel

Test Excel

10th - 12th Grade

9 Qs

Quiz de Funções em p5.js

Quiz de Funções em p5.js

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

JOAO MONTEIRO

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?