Search Header Logo

Quiz de Programação em Python

Authored by Joao Aires

Computers

2nd Grade

Quiz de Programação em Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a maneira correta de declarar uma variável em Python?

`var = 10`

`int var = 10`

`10 = var`

`variable: int = 10`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes opções é uma estrutura de controle em Python?

`if`

`print`

`input`

`def`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você define uma função em Python?

`function myFunction():`

`def myFunction():`

`create myFunction():`

`define myFunction():`

4.

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`

`Erro`

`Nenhuma das anteriores`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes opções é um loop em Python?

`for`

`while`

`do-while`

`A e B`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você lê a entrada do usuário em Python?

`input()`

`read()`

`scan()`

`get()`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código? ```python for i in range(3): print(i) ```

`0 1 2`

`1 2 3`

`0 1 2 3`

`1 2`

Access all questions and much more by creating a free account

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

Already have an account?