Search Header Logo

Preguntas de Programación en Python

Authored by Edwin Avila

Information Technology (IT)

Professional Development

Used 1+ times

Preguntas de Programación en Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Si declaras la variable precio = 99.95, ¿qué tipo de dato es precio?

int (Entero)

string (Cadena de texto)

float (Flotante / Decimal)

boolean (Booleano)

2.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

¿Cuál es el resultado de la operación 5 + 3 * 2 en Python?

16

11

13

Error

3.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

¿Qué valor devuelve la expresión 10 % 3?

3.33

1

3

0

4.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

¿Cuál de estas opciones crea una lista vacía llamada compras?

compras = {}

compras = ()

compras = []

compras = ''

5.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

En el string texto = "Hola", ¿cómo accedes a la letra 'o'?

texto[0]

texto[1]

texto(1)

texto.get('o')

6.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

¿Qué método usarías para convertir el string " Día soleado " en "Día soleado"?

.cut()

.clean()

.split()

.strip()

7.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Tienes la lista frutas = ["manzana", "banana"]. ¿Qué código añade "cereza" al final de la lista?

frutas.add("cereza")

frutas.push("cereza")

frutas.append("cereza")

frutas.insert(1, "cereza")

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?