Quiz de Python: Fundamentos e Controle

Quiz de Python: Fundamentos e Controle

11th Grade

20 Qs

quiz-placeholder

Similar activities

Test Procedimiento Administrativo introducción

Test Procedimiento Administrativo introducción

1st Grade - Professional Development

17 Qs

Publisher Module 2 Quiz 3

Publisher Module 2 Quiz 3

9th - 12th Grade

20 Qs

ELECTRÓNICA GRADO 11

ELECTRÓNICA GRADO 11

10th - 11th Grade

17 Qs

Do you know the Dorman Library?

Do you know the Dorman Library?

10th - 12th Grade

20 Qs

EVALUACIÓN DE LEGISLACIÓN MERCANTIL, LABORAL Y ADUANERA

EVALUACIÓN DE LEGISLACIÓN MERCANTIL, LABORAL Y ADUANERA

11th Grade

20 Qs

Intro. to Financial Literac

Intro. to Financial Literac

11th - 12th Grade

18 Qs

PERGUNTAS BIBLÍCAS 01

PERGUNTAS BIBLÍCAS 01

1st Grade - University

15 Qs

Mensaje del Tercer Ángel - Parte 2

Mensaje del Tercer Ángel - Parte 2

1st - 12th Grade

17 Qs

Quiz de Python: Fundamentos e Controle

Quiz de Python: Fundamentos e Controle

Assessment

Quiz

Specialty

11th Grade

Practice Problem

Medium

Created by

Elaine I Moreira

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

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") else: print("Menor ou igual a 5") ```

Menor ou igual a 5

Maior que 5

Nenhuma das anteriores

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a função do comando `break` em um loop `for` ou `while`?

Continua a próxima iteração do loop

Interrompe a execução do loop

Reinicia o loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

0 1 2

0 2

1 2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a função do método `random.randint(a, b)` em Python?

Retorna um número inteiro aleatório entre 0 e 1

Retorna um número inteiro aleatório entre a e b, inclusive

Retorna um número decimal aleatório entre a e b

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código Python? ```python x = "Python" print(f"Aprendendo {x}") ```

Aprendendo Python

Aprendendo {x}

Aprendendo

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código Python? ```python def soma(a, b): return a + b resultado = soma(3, 4) print(resultado) ```

7

12

34

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código Python? ```python x = 5 while x > 0: print(x) x -= 1 ```

5 4 3 2 1

5 4 3 2 1 0

4 3 2 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?