Flashcard de Programação em Python

Flashcard de Programação em Python

Assessment

Flashcard

Computers

2nd Grade

Hard

Created by

Thiago Nasci

FREE Resource

Student preview

quiz-placeholder

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

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?