Search Header Logo

Listas - Python

Authored by Suei Chong

Computers

University

Used 11+ times

Listas - Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo se define una lista vacía en Python?

lista = [ ]

lista = { }

lista = ( )

[ ]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál es la salida de len([1, 2, 3])?

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo accedes al primer elemento de la lista numeros= [5, 10, 15, 20] ?

numeros[5]

numeros[-1]

numeros[0]

numeros[1]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué método se usa para agregar un elemento al final de una lista?

insert

add

append

extend

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál es la salida de lista[1:3] si lista = [0, 1, 2, 3, 4]?

[0, 1]

[1, 2]

[2, 3]

[1, 2, 3]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo se concatenan o unen

lista1 = [1, 2] y lista2 = [3, 4] ?

lista1 & lista2

[1,2]+[2,3]

lista3=lista1+lista2

lista=lista1&lista2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué operación devuelve el número de veces que aparece el número 2 en lista = [1, 2, 2, 3] ?

lista.sum(2)

lista.count(2)

lista.index(2)

lista.find(2)

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?

Discover more resources for Computers