Quiz de Python: Fundamentos e Controle

Quiz de Python: Fundamentos e Controle

11th Grade

20 Qs

quiz-placeholder

Similar activities

GRADE 11 - ALL ABOUT JAVA

GRADE 11 - ALL ABOUT JAVA

11th Grade

20 Qs

Reptile, Amphibian and Other Breed Quiz

Reptile, Amphibian and Other Breed Quiz

7th - 11th Grade

18 Qs

ESPECIALIDADE DE COMPUTAÇÃO 1

ESPECIALIDADE DE COMPUTAÇÃO 1

KG - Professional Development

15 Qs

Evaluación Gral - Prog

Evaluación Gral - Prog

11th Grade

15 Qs

Photoshop Certification Vocabulary Part 1

Photoshop Certification Vocabulary Part 1

11th Grade - University

20 Qs

Graphic Editing

Graphic Editing

9th Grade - University

20 Qs

Inteligencia artificial

Inteligencia artificial

1st Grade - Professional Development

15 Qs

Networking1

Networking1

11th Grade

15 Qs

Quiz de Python: Fundamentos e Controle

Quiz de Python: Fundamentos e Controle

Assessment

Quiz

Specialty

11th Grade

Medium

Created by

Elaine I Moreira

Used 1+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?