Python - Revisão P2

Python - Revisão P2

University

15 Qs

quiz-placeholder

Similar activities

Marketing Digital -Exercício Aula 1

Marketing Digital -Exercício Aula 1

11th Grade - University

10 Qs

Examen Diagnostico: Inteligencia Artificial

Examen Diagnostico: Inteligencia Artificial

University

15 Qs

Quiz về Lập trình máy tính và Ngôn ngữ Python

Quiz về Lập trình máy tính và Ngôn ngữ Python

6th Grade - University

20 Qs

XI-TINKERCAD

XI-TINKERCAD

11th Grade - University

15 Qs

Aula 1 - Informática Básica

Aula 1 - Informática Básica

12th Grade - University

10 Qs

Quiz - Fundamentos JS

Quiz - Fundamentos JS

University

10 Qs

Week3 上周知识点回顾

Week3 上周知识点回顾

University

10 Qs

LONG QUIZ MIS

LONG QUIZ MIS

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?