Search Header Logo

Quiz de Estruturas de Dados em Python

Authored by Jhoni Schulz

Information Technology (IT)

University

Used 1+ times

Quiz de Estruturas de Dados em Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das seguintes opções cria corretamente uma lista em Python?

lista = [1, 2, 3]

lista = (1, 2, 3)

lista = {1, 2, 3}

lista = '1, 2, 3'

lista = 1, 2, 3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como adicionar o valor 4 ao final de uma lista chamada 'numeros'?

numeros.append(4)

numeros.add(4)

numeros.insert(4)

numeros += 4

numeros.push(4)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual método remove e retorna o último item de uma lista?

lista.pop()

lista.remove()

lista.delete()

lista.cut()

lista.clear()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a principal característica das tuplas em Python?

São imutáveis

São desordenadas

Permitem apenas um tipo de dado

Não podem ser acessadas por índice

São mais rápidas que listas

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como criar uma tupla com um único elemento?

tupla = (1,)

tupla = (1)

tupla = [1]

tupla = {1}

tupla = 1,

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual operação NÃO pode ser realizada com tuplas?

tupla.append(1)

tupla.count(1)

tupla.index(1)

len(tupla)

tupla[0]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como acessar o valor associado à chave 'nome' em um dicionário chamado 'pessoa'?

pessoa['nome']

pessoa.nome

pessoa.get('nome')

pessoa('nome')

pessoa{'nome'}

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?