Quiz de Python: Fundamentos e Práticas

Quiz de Python: Fundamentos e Práticas

University

10 Qs

quiz-placeholder

Similar activities

Test Perkenalan Prodi

Test Perkenalan Prodi

University

10 Qs

OVERVIEW DIES NATALIS FOMUNY 2025

OVERVIEW DIES NATALIS FOMUNY 2025

University

12 Qs

Análise de Custos

Análise de Custos

University

10 Qs

SICG - REVISÃO - PROVA 01

SICG - REVISÃO - PROVA 01

University

10 Qs

AMONG US

AMONG US

3rd Grade - Professional Development

10 Qs

Java Script Pro

Java Script Pro

3rd Grade - University

12 Qs

PKKMB 2023

PKKMB 2023

University

11 Qs

POSTGRE SERIES 2

POSTGRE SERIES 2

University

10 Qs

Quiz de Python: Fundamentos e Práticas

Quiz de Python: Fundamentos e Práticas

Assessment

Quiz

Other

University

Practice Problem

Easy

Created by

Álvaro Rios

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

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")`

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?