Qual operador é usado para atribuição em Python?
Quiz de Python

Quiz
•
Other
•
12th Grade
•
Hard
SILVIO HENRIQUES PEREIRA
Used 3+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
=
==
:=
=<
2.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
2. Qual símbolo é usado para comentários de linha em Python?
//
#
/*
--
3.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Qual função é usada para imprimir algo no console em Python?
write()
display()
echo()
print()
4.
MULTIPLE SELECT QUESTION
1 min • 10 pts
Qual estrutura de controle é usada para executar um bloco de código repetidamente em Python?
if
for
while
switch
5.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Temos o seguinte código:
1 3 5 7 9
1 2 3 4 6 7 8 9
1 3 7 9 11
1 3 7 9
6.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Veja a declaração das 4 variáveis:
dia_ini = 24
dia_fim = 28
mes = "fevereiro"
ano = 2017
Pedro precisa criar a seguinte string:
"Em 2017 o Carnaval acontece em fevereiro do dia 24 até o dia 28"
Qual é a formatação correta para produzir a string acima?
"Em [ ] o Carnaval acontece em [ ] do dia [ ] até o dia [ ]".format(ano, mes, dia_ini, dia_fim)
"Em { } o Carnaval acontece em { } do dia { } até o dia { }"
"Em { } o Carnaval acontece em { } do dia { } até o dia { }".format(ano, mes, dia_ini, dia_fim)
"Em {ano} o Carnaval acontece em {mes} do dia {dia_ini} até o dia {dia_fim}".format()
Answer explanation
Dentro da string, devemos utilizar as chaves ({}) para definir onde o valor da variável deve ser inserido. E logo após a definição da string, chamamos a função format, que recebe as variáveis/parâmetros na ordem de inserção:
"Em {} o Carnaval acontece em {} do dia {} até o dia {}".format(ano, mes, dia_ini, dia_fim)
7.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Qual operador é usado para verificar a igualdade entre dois valores em Python?
=
===
equals()
==
8.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Temos a seguinte variável, que representa o preço de um produto:
int
double
float
decimal
Similar Resources on Quizizz
10 questions
Funções da Linguagem

Quiz
•
1st - 12th Grade
12 questions
Código de Ética dos profissionais de Enfermagem

Quiz
•
1st - 12th Grade
10 questions
Funcionamento do Computador

Quiz
•
9th - 12th Grade
10 questions
Quiz do Cometa Nordestino - Missão Vila Flor

Quiz
•
9th - 12th Grade
10 questions
AVALIAÇÃO ED. FINANCEIRA

Quiz
•
12th Grade
8 questions
Experimento de Convecção Térmica

Quiz
•
1st Grade - University
10 questions
Quiz sobre Debate Regrado

Quiz
•
12th Grade
10 questions
Avaliação de libras

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Other
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University