Quiz de Python
Quiz
•
Other
•
12th Grade
•
Practice Problem
•
Hard
SILVIO HENRIQUES PEREIRA
Used 3+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Qual operador é usado para atribuição em Python?
=
==
:=
=<
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()
==
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Parcial Metodología de la Investigación
Quiz
•
12th Grade
10 questions
Pangngalan- Uri, Kasarian at kailanan
Quiz
•
1st - 12th Grade
11 questions
Gestión de Continuidad
Quiz
•
1st - 12th Grade
11 questions
Quiz Cultura Digital
Quiz
•
2nd Grade - University
10 questions
GESTION DE RESIDUOS
Quiz
•
1st - 12th Grade
11 questions
DIT ME MAY
Quiz
•
12th Grade
10 questions
Photoshop
Quiz
•
12th Grade
10 questions
Distribución Binomial
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
11 questions
Exponent Quotient Rules A1 U7
Quiz
•
9th - 12th Grade
