Search Header Logo

Python Programming Basics

Authored by Jose Ortega

Computers

10th Grade

Used 2+ times

Python Programming Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo se declara una matriz en Python utilizando listas anidadas?

matriz = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]

matriz = ((1, 2, 3), (4, 5, 6), (7, 8, 9))

matriz = {1, 2, 3; 4, 5, 6; 7, 8, 9}

Ejemplo: matriz = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál es la función en Python para encontrar la longitud de una lista?

len()

length()

size()

count()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué es el concepto de ámbito de una variable en Python?

El ámbito de una variable en Python se refiere a la cantidad de veces que se puede modificar la variable

El ámbito de una variable en Python se refiere a la posición de la variable en la memoria

El ámbito de una variable en Python se refiere a la región del código donde la variable es accesible.

El ámbito de una variable en Python se refiere al tamaño de la variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál es la forma correcta de llamar a una función en Python?

call nombre_funcion(parametros)

run nombre_funcion(parametros)

execute nombre_funcion(parametros)

nombre_funcion(parametros)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo se accede al tercer elemento de una lista en Python?

lista[2]

lista{2}

lista[3]

lista(2)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué sucede si intentas modificar una tupla existente en Python?

No sucederá nada al intentar modificar la tupla

La tupla se convertirá automáticamente en una lista

Python arrojará un error al intentar modificar una tupla existente.

Python permitirá modificar la tupla sin problemas

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué método se utiliza en Python para eliminar un elemento específico de una lista?

remove()

delete()

discard()

pop()

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?