O que é uma função em programação?

Quiz sobre Funções de Jogo de Futebol

Quiz
•
Information Technology (IT)
•
9th Grade
•
Medium
MARCIO PEREIRA
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Um tipo de variável
Um bloco de código que realiza uma tarefa específica
Um comentário no código
Um erro no código
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é o objetivo de criar uma função para movimentar a bola no jogo?
Para aumentar a dificuldade do jogo
Para criar gráficos melhores
Para diminuir o tamanho do jogo
Para facilitar a organização e reutilização do código
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como você definiria uma função que verifica se o goleiro defendeu a bola?
Uma função que compara as posições da bola e do goleiro
Uma função que reinicia o jogo
Uma função que muda a cor da bola
Uma função que aumenta a velocidade da bola
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Por que é importante usar funções em projetos como jogos?
Para aumentar o número de jogadores
Para dividir o programa em partes menores e facilitar a manutenção
Para reduzir o tempo de carregamento
Para melhorar os gráficos
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que a função `keyPressed()` faz no contexto do jogo?
Detecta quando uma tecla é pressionada
Reinicia o jogo
Aumenta a pontuação do jogador
Muda a cor do campo
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como adaptar o código da bola para usar as novas funções criadas?
Substituir o código direto de movimentação por chamadas às funções
Adicionar mais gráficos
Reduzir o tamanho da bola
Aumentar a velocidade do jogo
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como utilizar uma variável global para definir a velocidade da bola?
Definir a variável fora de qualquer função
Criar uma variável local dentro de uma função
Não é possível definir a velocidade da bola
Usar uma constante
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Quiz de Programação em Scratch

Quiz
•
9th Grade
10 questions
Criação de Websites - Conceitos

Quiz
•
9th Grade
11 questions
IC 13: Reconhecendo Símbolos na Internet

Quiz
•
9th Grade
8 questions
Quiz sobre P5.js e JavaScript

Quiz
•
1st Grade - University
11 questions
Quiz sobre o Pinheiro do Paraná

Quiz
•
9th Grade
15 questions
Avaliação 9A- 2º Bimestre - Soluções Digitais e Inovação Social

Quiz
•
9th Grade
10 questions
Recuperação Pensamento computacional 9º ano

Quiz
•
9th Grade
10 questions
Quiz de Programação e Lógica

Quiz
•
9th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade