Search Header Logo

Manipução de arrays e listas em Python

Authored by CLEYTON PINHEIRO

Computers

Vocational training

Used 2+ times

Manipução de arrays e listas em Python
AI

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

30 sec • 1 pt

Qual dos seguintes é um tipo de dado primitivo em Python?

array

float

struct

tuple

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual comando cria uma lista vazia em Python?

lista = ()

lista = []

lista = {}

lista = array()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dado o código abaixo, qual será a saída? ```python lista = [1, 2, 3] print(lista[1]) ```

1

2

3

Erro

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual método é utilizado para adicionar um elemento ao final de uma lista em Python?

add()

append()

insert()

push()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual das opções abaixo remove o primeiro elemento de uma lista chamada `dados`?

dados.remove(0)

dados.pop(0)

dados.delete(0)

dados.erase(0)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como acessar o elemento 'b' na lista aninhada abaixo? ```python lista = [[1, 2], ['a', 'b']] ```

lista[1][1]

lista[0][1]

lista[1][0]

lista[2][1]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual função retorna o número de elementos de uma lista chamada `itens`?

count(itens)

len(itens)

size(itens)

length(itens)

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?