Python - Revisão P2

Python - Revisão P2

University

15 Qs

quiz-placeholder

Similar activities

Python Loop

Python Loop

University

15 Qs

Comandos SQL

Comandos SQL

University

10 Qs

Revisão - Processos de Desenvolvimento de Software

Revisão - Processos de Desenvolvimento de Software

University

20 Qs

IntroductionDatabases

IntroductionDatabases

University

20 Qs

[Quiz] Python Function

[Quiz] Python Function

University

12 Qs

Keterampilan Informatika dan Komputer

Keterampilan Informatika dan Komputer

11th Grade - University

18 Qs

ESM - Cap. 2 - Processos - 10 questões

ESM - Cap. 2 - Processos - 10 questões

University

10 Qs

Lista de Exercícios – Vetores em Java - Parte I

Lista de Exercícios – Vetores em Java - Parte I

University

15 Qs

Python - Revisão P2

Python - Revisão P2

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Easy

Created by

CRISTINA CO

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...

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

Access all questions and much more by creating a free account

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?