
Quiz sobre Condicionais e Repetições
Computers
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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)`
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
25 questions
SIMULASI DIGITAL
Quiz
•
10th Grade
25 questions
App Inventor
Quiz
•
10th Grade
26 questions
Operating Systems
Quiz
•
9th - 12th Grade
25 questions
2.3 Robust Programs
Quiz
•
9th - 11th Grade
25 questions
e safety and security
Quiz
•
10th Grade
25 questions
Computer Application TQ1
Quiz
•
1st Grade - University
25 questions
PAT ROBOTIC Elektronika Dasar 2019-2020
Quiz
•
KG - Professional Dev...
28 questions
Data Representation 1
Quiz
•
10th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade