Python - Revisão P2

Python - Revisão P2

University

15 Qs

quiz-placeholder

Similar activities

1ª atividade avaliativa 3ºtri / HTML e CSS

1ª atividade avaliativa 3ºtri / HTML e CSS

11th Grade - University

14 Qs

Fundamentos de Python - Quiz 01

Fundamentos de Python - Quiz 01

University

10 Qs

Aula07 - Matrizes

Aula07 - Matrizes

University

12 Qs

Conhecimentos sobre o App Inventor

Conhecimentos sobre o App Inventor

9th Grade - University

10 Qs

Revisão - Dev Web

Revisão - Dev Web

University

18 Qs

Explorando Jogos Digitais e Criatividade

Explorando Jogos Digitais e Criatividade

9th Grade - University

13 Qs

Fundamentos de Programação em C/C++

Fundamentos de Programação em C/C++

University

20 Qs

Quiz Diagnóstico - RA e RV para JD

Quiz Diagnóstico - RA e RV para JD

University

15 Qs

Python - Revisão P2

Python - Revisão P2

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

CRISTINA CO

Used 1+ times

FREE Resource

15 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 correta para calcular o comprimento de uma lista em Python?

length(lista)

count(lista)

len(lista)

size(lista)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

0 1 2

1 2 3

0 1 2 3

1 2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a sintaxe correta para definir uma função em Python?

def nome_funcao():

function nome_funcao():

func nome_funcao():

define nome_funcao():

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a saída do seguinte código Python? ```python lista = [1, 2, 3, 4] print(lista[2]) ```

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a função usada para ler a entrada do usuário em Python 3?

input()

read()

scan()

get()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

0 1 2

1 2 3

0 1 2 3

1 2

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?