Search Header Logo

Tarea 4 - Progra - 4Div

Authored by Julio Arriola

Computers

10th Grade

Used 3+ times

Tarea 4 - Progra - 4Div
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué función se utiliza para capturar la entrada del usuario en Python?

input()

read()

print()

scan()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué tipo de dato devuelve siempre la función input()?

int

float

str

bool

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué sucede si intentamos sumar dos strings que parecen números, como '5' y '5'?

Devuelve 5

Genera un error

Devuelve 55

Devuelve 10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál es la función correcta para convertir un string a un entero en Python?

bool()

int()

float()

str()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué error se genera si intentamos convertir un string no numérico a un entero?

TypeError

ValueError

KeyError

IndexError

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué bloque se utiliza para manejar errores en Python?

try-finally

catch-except

try-except

try-catch

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué tipo de error se debe manejar al intentar convertir un string a un número?

AttributeError

SyntaxError

ValueError

TypeError

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?