
Quiz de Python: Fundamentos e Controle

Quiz
•
Specialty
•
11th Grade
•
Medium
Elaine I Moreira
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
20 questions
GRADE 11 - ALL ABOUT JAVA

Quiz
•
11th Grade
18 questions
Reptile, Amphibian and Other Breed Quiz

Quiz
•
7th - 11th Grade
15 questions
ESPECIALIDADE DE COMPUTAÇÃO 1

Quiz
•
KG - Professional Dev...
15 questions
Evaluación Gral - Prog

Quiz
•
11th Grade
20 questions
Photoshop Certification Vocabulary Part 1

Quiz
•
11th Grade - University
15 questions
Inteligencia artificial

Quiz
•
1st Grade - Professio...
15 questions
Networking1

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade