Python - Revisão P2

Python - Revisão P2

University

15 Qs

quiz-placeholder

Similar activities

Conhecimento geral - Computação (EC IV)

Conhecimento geral - Computação (EC IV)

University

10 Qs

Avaliação Diagnóstica 01 Business Intelligence

Avaliação Diagnóstica 01 Business Intelligence

University

20 Qs

2F-1 | Python Quiz | 14/10/2024

2F-1 | Python Quiz | 14/10/2024

University

20 Qs

TEST 5

TEST 5

University

12 Qs

Python

Python

University

20 Qs

Fundamentos de Programación en Python

Fundamentos de Programación en Python

6th Grade - University

10 Qs

Manipulação de Arquivos em Python

Manipulação de Arquivos em Python

University

10 Qs

Quiz sobre Sensores e Automação

Quiz sobre Sensores e Automação

11th Grade - University

20 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?