Search Header Logo

Programação em Python | Operadores

Authored by Walmes Zeviani

Mathematics

Professional Development

Programação em Python | Operadores
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é o resultado da expressão `10 + 5 * 2` em Python?

20

30

15

25

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual operador é usado para obter o resto da divisão entre dois números em Python?

/

//

%

**

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Para calcular a raiz quadrada de um número em Python, qual função do módulo `math` você usaria?

math.pow(x, 2)

math.root(x)

math.sqrt(x)

math.exp(x)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual a diferença entre os operadores `/` e `//` em Python?

Ambos realizam a mesma operação, a divisão.

`/` retorna um número de ponto flutuante, enquanto `//` retorna a parte inteira do resultado da divisão.

`/` retorna a parte inteira da divisão, enquanto `//` retorna um número de ponto flutuante.

`/` realiza a divisão, enquanto `//` calcula o resto da divisão.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual o resultado da expressão `2 ** 3` em Python?

5

6

8

9

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual função do módulo `math` você usaria para calcular o logaritmo na base 10 de um número em Python?

math.log(x)

math.log10(x)

math.log2(x)

math.ln(x)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

O que o operador `==` faz em Python?

Atribui um valor a uma variável.

Verifica se dois valores são iguais.

Verifica se dois valores são diferentes.

Compara a ordem de dois valores.

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?