O que a função `setup()` faz no código fornecido?

Questões sobre Funções em Programação

Quiz
•
Information Technology (IT)
•
9th Grade
•
Hard
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Desenha formas na tela.
Prepara o ambiente de execução.
Define a cor de fundo.
Cria um retângulo.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o propósito da função `createCanvas(400, 400);` dentro da função `setup()`?
Definir a cor de fundo.
Criar um retângulo.
Criar uma tela de 400x400 pixels.
Preencher o retângulo com cor.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que a função `draw()` faz no código?
Prepara o ambiente de execução.
Define a cor de fundo.
Desenha continuamente na tela.
Cria a tela.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a cor de fundo definida na função `draw()`?
Azul
Verde
Vermelho
Amarelo
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a posição inicial do retângulo criado pela função `rect(0, 0, 100, 150);`?
(100, 150)
(0, 0)
(50, 75)
(150, 100)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a largura do retângulo criado pela função `rect(0, 0, 100, 150);`?
150
50
100
200
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a altura do retângulo criado pela função `rect(0, 0, 100, 150);`?
100
150
200
50
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Matriz de LED

Quiz
•
9th Grade
10 questions
Aula 5

Quiz
•
9th - 12th Grade
15 questions
Desenhando com o Mouse

Quiz
•
9th Grade
10 questions
Quiz aula 8

Quiz
•
9th - 12th Grade
15 questions
Para Prova Av2 3 trimestre 9 anoDesenhando com o Mouse

Quiz
•
9th Grade
15 questions
Quiz sobre Hardware e Software

Quiz
•
2nd Grade - University
14 questions
Recursão com palavras

Quiz
•
9th Grade
10 questions
Quiz sobre Funções de Jogo de Futebol

Quiz
•
9th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade