Quiz de Python: Fundamentos e Controle

Quiz de Python: Fundamentos e Controle

11th Grade

20 Qs

quiz-placeholder

Similar activities

Marketing - Chapter 19 - Advertising Media

Marketing - Chapter 19 - Advertising Media

10th - 12th Grade

20 Qs

Chapter 20 - Advertising Media & its Purpose - Notes #1 ONLY SET

Chapter 20 - Advertising Media & its Purpose - Notes #1 ONLY SET

10th - 12th Grade

18 Qs

Conhecimentos Gerais ( E.C.)

Conhecimentos Gerais ( E.C.)

11th Grade

21 Qs

Atletica Venturi

Atletica Venturi

1st Grade - Professional Development

17 Qs

CONHECIMENTOS GERAIS 09

CONHECIMENTOS GERAIS 09

1st Grade - University

15 Qs

EXCEL CORE LESSON 1 & 2 TEST (Part 2)

EXCEL CORE LESSON 1 & 2 TEST (Part 2)

9th - 12th Grade

20 Qs

Conceptes estadística

Conceptes estadística

KG - University

23 Qs

PYTHON test 1

PYTHON test 1

9th - 11th Grade

25 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

Create a free account and access millions of resources

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?

Discover more resources for Specialty