Search Header Logo

Python Quiz 15a30

Authored by Douglas Carvalho

Information Technology (IT)

10th Grade

Used 1+ times

Python Quiz 15a30
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

True

False

None

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual operador lógico é usado para inverter o valor de uma expressão booleana em Python?

and

or

not

xor

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True

False

None

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código Python? ```python if 10 > 5: print("Maior") else: print("Menor") ```

Maior

Menor

Error

Nenhuma das anteriores

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código Python? ```python x = 10 if x > 5: print("Maior que 5") elif x == 5: print("Igual a 5") else: print("Menor que 5") ```

Maior que 5

Igual a 5

Menor que 5

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código Python? ```python x = 3 if x > 5: print("Maior que 5") else: if x == 3: print("Igual a 3") else: print("Menor que 5") ```

Maior que 5

Igual a 3

Menor que 5

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código Python? ```python def fatorial(n): if n == 0: return 1 else: return n * fatorial(n-1) print(fatorial(4)) ```

24

12

4

1

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?