Quiz de Python: Fundamentos e Práticas

Quiz de Python: Fundamentos e Práticas

University

10 Qs

quiz-placeholder

Similar activities

Data Analytics Quiz -3

Data Analytics Quiz -3

University

10 Qs

Diksi

Diksi

University

11 Qs

Unidade 5

Unidade 5

University

10 Qs

FXEC : PCL APP LAB : Python for Data Science Day 1 Quiz

FXEC : PCL APP LAB : Python for Data Science Day 1 Quiz

University

10 Qs

Quiz sobre SGBD e Django

Quiz sobre SGBD e Django

6th Grade - University

10 Qs

Batch -1 |28-11-24 | Day -4 Data Analytics Workshop Quiz

Batch -1 |28-11-24 | Day -4 Data Analytics Workshop Quiz

University

10 Qs

Quiz de Programação em Python

Quiz de Programação em Python

University

15 Qs

Lección 1

Lección 1

University

10 Qs

Quiz de Python: Fundamentos e Práticas

Quiz de Python: Fundamentos e Práticas

Assessment

Quiz

Other

University

Easy

Created by

Álvaro Rios

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a maneira correta de declarar uma variável em Python?

`var x = 10`

`x = 10`

`int x = 10`

`x := 10`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes opções é uma estrutura de decisão em Python?

`for`

`while`

`if`

`def`

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Qual é a saída do seguinte código Python? ```python x = 5 if x > 3: print("Maior que 3") else: print("Menor ou igual a 3") ```

`Menor ou igual a 3`

`Maior que 3`

`Erro de sintaxe`

`Nenhuma saída`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes opções é uma estrutura de repetição em Python?

`if`

`elif`

`for`

`def`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você pode incluir uma variável dentro de uma string usando f-string?

`f"{variavel}"`

`"%s" % variavel`

`str(variavel)`

`variavel + ""`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes opções é uma coleção em Python?

`int`

`list`

`float`

`bool`

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Qual é a função correta para abrir um arquivo em modo de leitura em Python?

`open("arquivo.txt", "w")`

`open("arquivo.txt", "r")`

`open("arquivo.txt", "a")`

`open("arquivo.txt", "x")`

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?