
Quiz de Python: Decisão e Repetição

Quiz
•
Computers
•
Professional Development
•
Hard
Felipe Porcino
Used 1+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das alternativas abaixo representa corretamente uma estrutura condicional em Python?
if x == 10 then print("Dez")
if x == 10: print("Dez")
if (x == 10) { print("Dez") }
if x = 10: print("Dez")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```python x = 5 if x > 3: print("Maior que 3") else: print("Menor ou igual a 3") ```
Menor ou igual a 3
Maior que 3
5
Nenhuma saída
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das opções abaixo representa corretamente um laço de repetição usando while em Python?
while (x < 10) { x += 1 }
while x < 10: x += 1
while x < 10 then x += 1
while x < 10 do x += 1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que acontece se a condição do while nunca for falsa?
O laço executa apenas uma vez
O laço nunca executa
O laço executa infinitamente
O programa é encerrado imediatamente
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
0
2
3
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das alternativas abaixo é usada para validar a entrada do usuário em Python?
if input == int
input("Digite um número: ")
int(input("Digite um número: "))
validate(input)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que o seguinte código imprime? ```python contador = 1 while contador <= 3: print(contador) contador += 1 ```
1 2 3
0 1 2
1 2 3 4
2 3 4
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
Python

Quiz
•
Professional Development
25 questions
Printer Types and Technologies

Quiz
•
Professional Development
30 questions
Blind Coding Round 1

Quiz
•
Professional Development
30 questions
Excel Certification Practice test

Quiz
•
Professional Development
25 questions
C & Python

Quiz
•
Professional Development
25 questions
Java Basics

Quiz
•
Professional Development
30 questions
Kotlin Quiz - Find the Output

Quiz
•
Professional Development
27 questions
EDA Quiz 1

Quiz
•
Professional Development
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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
8 questions
Understanding Government: Limited and Unlimited

Quiz
•
Professional Development
20 questions
tape measure

Quiz
•
Professional Development
24 questions
Street Signs

Quiz
•
9th Grade - Professio...