
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
Create a free account and access millions of resources
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
17 questions
IC3 GS6 Domain 4 Assessment
Quiz
•
6th - 12th Grade
15 questions
Unit 1- Production Agriculture / Agribusiness
Quiz
•
10th - 12th Grade
20 questions
ESPECIALIDADE DE COMPUTAÇÃO 3
Quiz
•
1st Grade - Professio...
20 questions
especialidade de química
Quiz
•
1st Grade - Professio...
20 questions
frameworks grupo 1
Quiz
•
9th - 12th Grade
16 questions
Health Science II Unit 8 Review
Quiz
•
9th - 12th Grade
17 questions
Área e volume de prisma
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
