Search Header Logo

Quiz sobre Estruturas Condicionais

Computers

10th Grade

Used 1+ times

Quiz sobre Estruturas Condicionais
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a estrutura básica de um comando condicional "if" em Python?

if condição: instrução

if (condição) { instrução }

if condição, então instrução

if condição; instrução

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

O que o seguinte código imprime? ```python x = 10 if x > 5: print("Maior que 5") else: print("Menor ou igual a 5") ```

Menor ou igual a 5

Maior que 5

10

Nada

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual palavra-chave é usada para adicionar uma condição extra entre o "if" e o "else" em Python?

elseif

elif

else if

elseif:

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual operador lógico representa "e" em Python?

&&

and

&

ou

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

O que será impresso pelo código abaixo? ```python a = 3 b = 7 if a > 2 and b < 10: print("Verdadeiro") else: print("Falso") ```

Verdadeiro

Falso

3

7

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True

False

5

2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual operador lógico representa "ou" em Python?

or

||

ou

|

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?