
Quiz de Python: Fundamentos e Controle
Quiz
•
Specialty
•
11th Grade
•
Practice Problem
•
Medium
Elaine I Moreira
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código Python? ```python x = 10 if x > 5: print("Maior que 5") else: print("Menor ou igual a 5") ```
Menor ou igual a 5
Maior que 5
Nenhuma das anteriores
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a função do comando `break` em um loop `for` ou `while`?
Continua a próxima iteração do loop
Interrompe a execução do loop
Reinicia o loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código Python? ```python for i in range(3): if i == 1: continue print(i) ```
0 1 2
0 2
1 2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a função do método `random.randint(a, b)` em Python?
Retorna um número inteiro aleatório entre 0 e 1
Retorna um número inteiro aleatório entre a e b, inclusive
Retorna um número decimal aleatório entre a e b
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código Python? ```python x = "Python" print(f"Aprendendo {x}") ```
Aprendendo Python
Aprendendo {x}
Aprendendo
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código Python? ```python def soma(a, b): return a + b resultado = soma(3, 4) print(resultado) ```
7
12
34
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código Python? ```python x = 5 while x > 0: print(x) x -= 1 ```
5 4 3 2 1
5 4 3 2 1 0
4 3 2 1
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
21 questions
Matériais de aviação 3.1
Quiz
•
9th - 12th Grade
21 questions
Simulado de Radiologia
Quiz
•
9th - 12th Grade
24 questions
Job Interview
Quiz
•
9th - 12th Grade
17 questions
Strojevi plošnog tiska (offset)
Quiz
•
9th - 12th Grade
20 questions
EAC-Eletronica-M1-HST
Quiz
•
10th Grade - Professi...
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
