Search Header Logo

Python - for e while

Authored by Neymar Dellareti

Information Technology (IT)

1st Grade

Used 3+ times

Python - for e while
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

O que será impresso pelo seguinte código?

0, 1, 2, 3

0, 1, 2

1, 2, 3

0

2.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Qual palavra-chave é usada para criar um loop que continua enquanto uma condição for verdadeira?

for

else

if

while

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Para parar um loop while imediatamente, qual instrução você usaria?

break

stop

continue

pass

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Qual é a saída deste código?

5, 4, 3

5, 4, 3, 2, 1

5, 4

3, 2, 1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Considere o código abaixo. Qual número NÃO será impresso?

2

3

1

4

6.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Qual palavra-chave é usada para iterar sobre uma sequência (como uma lista, tupla, string ou range)?

while

for

if

else

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

O que o seguinte código irá imprimir?

Python

P, y, t, h, o, n (na mesma linha)

Cada letra em uma nova linha

Um erro

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?