Python - Revisão P2

Python - Revisão P2

University

15 Qs

quiz-placeholder

Similar activities

sistem komputer kelas 9

sistem komputer kelas 9

9th Grade - University

20 Qs

Структуры в С++

Структуры в С++

University

12 Qs

Contadores y Acumuladores

Contadores y Acumuladores

University

10 Qs

Uso contadores y acumuladores

Uso contadores y acumuladores

University

10 Qs

Big Data бойынша тест

Big Data бойынша тест

University

20 Qs

Bài 3: Phần mềm  nguồn mở và phần mềm chạy trên internet

Bài 3: Phần mềm nguồn mở và phần mềm chạy trên internet

12th Grade - University

10 Qs

Kiểm tra kiến thức về SQL

Kiểm tra kiến thức về SQL

11th Grade - University

15 Qs

QUIZ Oficina de introdução a BD

QUIZ Oficina de introdução a BD

University

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