

Flashcard de Programação em Python
Flashcard
•
Computers
•
2nd Grade
•
Practice Problem
•
Hard
Thiago Nasci
FREE Resource
Student preview

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Qual é a maneira correta de declarar uma variável em Python? Options: `var = 10`, `int var = 10`, `10 = var`, `variable: int = 10`
Back
`var = 10`
2.
FLASHCARD QUESTION
Front
Qual das seguintes opções é uma estrutura de controle em Python? `if`, `print`, `input`, `def`
Back
`if`
3.
FLASHCARD QUESTION
Front
Como você define uma função em Python?
Back
`def myFunction():`
4.
FLASHCARD QUESTION
Front
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")
```
Back
Maior que 3
5.
FLASHCARD QUESTION
Front
Qual das seguintes opções é um loop em Python? `for`, `while`, `do-while`, `A e B`
Back
`A e B`
6.
FLASHCARD QUESTION
Front
Como você lê a entrada do usuário em Python?
Back
`input()`
7.
FLASHCARD QUESTION
Front
Qual é a saída do seguinte código?
```python
for i in range(3):
print(i)
```
Back
0 1 2
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?