
Quiz sobre Condicionais e Repetições

Quiz
•
Computers
•
10th Grade
•
Easy
Used 1+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das alternativas abaixo representa corretamente a estrutura básica de um laço while em Python?
`while (condição) { ... }`
`while condição: ...`
`enquanto condição faça ...`
`loop enquanto condição ...`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que acontece se a condição do laço while nunca for falsa?
O laço executa apenas uma vez.
O laço nunca executa.
O laço executa infinitamente.
O laço executa duas vezes.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Considere o seguinte código: ```python x = 0 while x < 3: x += 1 print(x) ``` Qual será o valor impresso?
0
2
3
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das opções abaixo representa uma condição aninhada dentro de um laço while?
`if x > 0:`
`while x > 0: if y < 5: ...`
`for i in range(5):`
`print(x)`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O que o seguinte código faz? ```python n = 5 while n > 0: if n % 2 == 0: print(n) n -= 1 ```
Imprime todos os números de 1 a 5.
Imprime apenas os números ímpares de 5 a 1.
Imprime apenas os números pares de 5 a 1.
Não imprime nada.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual é a saída do seguinte código? ```python x = 1 while x < 4: if x == 2: print("Dois") x += 1 ```
Dois
1 2 3
2
Dois Dois Dois
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual das alternativas abaixo representa corretamente uma estrutura de repetição com condição aninhada?
`while x > 0: print(x)`
`while x > 0: if x % 2 == 0: print(x)`
`if x > 0: while x < 10: print(x)`
`print(x)`
Create a free account and access millions of resources
Similar Resources on Wayground
34 questions
Python Seviye 1

Quiz
•
5th - 12th Grade
33 questions
Quiz For y While Python

Quiz
•
10th Grade
30 questions
Python Beginner

Quiz
•
6th - 12th Grade
30 questions
Python Basics: Variables and Syntax

Quiz
•
10th Grade
30 questions
Python 4 topic (циклы)

Quiz
•
6th - 12th Grade
27 questions
Python Loops

Quiz
•
9th - 12th Grade
28 questions
BÀI KIỂM TRA

Quiz
•
10th Grade
25 questions
Quiz Analisis Data

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade