
Compreendendo estruturas de dados Python
Authored by BRUNA KWIATKOVSKI
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Qual dos seguintes é um tipo de dado imutável em Python?
Lista
Tupla
Dicionário
Conjunto
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Qual será a saída do seguinte código? ```python x = 5 def foo(): x = 10 foo() print(x) ```
10
5
Erro
Nenhum
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Qual método é usado para converter uma string para todas as letras maiúsculas em Python?
str.upper()
str.capitalize()
str.title()
str.lower()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Qual é o resultado do seguinte código? ```python a = [1, 2, 3] b = a b.append(4) print(a) ```
[1, 2, 3]
[1, 2, 3, 4]
[4, 1, 2, 3]
Erro
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Qual das alternativas a seguir NÃO é uma forma válida de criar um dicionário em Python?
dict()
{}
dict([(1, 'a'), (2, 'b')])
dict(1='a', 2='b')
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code? ```python x = "123" y = int(x) print(type(y)) ```
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Qual das seguintes afirmações sobre o escopo de variáveis é VERDADEIRA em Python?
Variáveis definidas dentro de uma função são acessíveis fora da função.
Variáveis definidas fora de uma função são globais por padrão.
Variáveis definidas dentro de uma função têm escopo local.
Todas as variáveis em Python são globais.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?