Search Header Logo

Funções principais do P5: setup e draw.

Authored by FABIANA DA SILVA VITORIO DE LIMA

Computers

1st Grade

Used 4+ times

 Funções principais do P5: setup e draw.
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

O que a função setup faz no P5?

A função setup desenha formas na tela.

A função setup é responsável pela interação do usuário.

A função setup controla a música de fundo.

A função setup no P5 configura o ambiente inicial do programa.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é o propósito da função draw no P5?

A função draw é utilizada para carregar imagens na tela.

A função draw é responsável por criar eventos de mouse.

O propósito da função draw no P5 é atualizar e desenhar a tela continuamente.

A função draw é usada apenas para inicializar variáveis.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você pode criar uma variável em P5?

Use 'let' ou 'var' seguido pelo nome da variável e um valor inicial.

Use 'const' without an initial value.

Create a variable by assigning a value directly to a name.

Declare a variable using 'define' and a value.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

O que acontece se você não usar a função draw?

A tela não será atualizada com novas informações.

A função draw é opcional e não afeta nada.

A tela será atualizada automaticamente.

As informações serão exibidas em uma nova janela.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você pode desenhar um círculo em P5?

Use a função circle(x, y, r) para desenhar um círculo em P5.

Use a função ellipse(x, y, d, d) para desenhar um círculo em P5.

Utilize a função roundShape(x, y, size) para criar um círculo em P5.

Desenhe um círculo usando a função drawCircle(x, y, diameter) em P5.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a função para mudar a cor de fundo em P5?

fillBackground()

background()

changeColor()

setBackground()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você pode usar variáveis para armazenar valores em P5?

Você pode usar variáveis em P5 declarando-as com 'let' ou 'var', como em 'let x = 10;'.

Você deve usar 'define' para criar variáveis em P5.

Você pode usar variáveis em P5 apenas com 'const'.

Variáveis em P5 não podem ser alteradas após a declaração.

Access all questions and much more by creating a free account

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?