Search Header Logo

Introducción a Python - Clase 5

Authored by Enzo Zotti

Computers

University

Used 2+ times

Introducción a Python - Clase 5
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

20 sec • 1 pt

Para definir una función se utiliza la palabra reservada:

function

No utilizamos palabra reservada

def

void

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Las funciones si o si llevan parámetros:

Verdadero

Falso

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Para retornar un dato de una función utilizamos:

return

print

Las funciones no retornan nada

end

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Las variables dentro de una función son de ámbito local:

Verdadero

Falso

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Una función retorna por defecto el tipo de dato None:

Verdadero

Falso

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

¿Que sucede en este código?

La funcion saludar retorna ¡Hola Eliana!

La funcion imprime por pantalla ¡Hola nombre!

La funcion no hace nada porque no tiene return

La funcion imprime por pantalla ¡Hola Eliana!

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Para capturar y tratar un error en Python utilizamos el bloque:

try-catch

try-except


try-error

Ninguna es correcta

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?