Search Header Logo

FP2: 01 - MODULOS

Authored by Paul Beltrand

Computers

Professional Development

Used 3+ times

FP2: 01 - MODULOS
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

Necesito hacer uso de la función sin() que esta en la librería math.

como debo incorporar la librería math a mi programa?

include math

add math

import math

use math

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quieres invocar la función make_money() contenida en el módulo llamado mint. Tu código comienza con la siguiente línea:

import mint

¿Cuál es la forma adecuada de invocar a la función?

mint.make_money()

make_money()

mint/make_money()

make_money.mint()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Deseas invocar la función make_money() contenida en el módulo llamado mint. Tu código comienza con la siguiente línea:

from mint import make_money

¿Cuál es la forma adecuada de invocar a la función?

mint.make_money()

makemoney()

mint()

make_money()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Deseas invocar la función make_money() contenida en el módulo llamado mint. Tu código comienza con la siguiente línea:

from mint import *

¿Cuál es la forma adecuada de invocar a la función?

mint.make_money()

makemoney()

mint()

make_money()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Una función que devuelve una lista de todas las entidades disponibles en un módulo lleva por nombre:

list( )

dir( )

entities( )

content( )

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cuando se importa un módulo, su contenido:

puede ser ejecutado (explícitamente)

es ignorado

se ejecuta una vez (implícitamente)

se ejecuta tantas veces como se importe

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

La siguiente línea de código:

from a.b import c

causa la importación de:

la entidad b del módulo a del paquete c

la entidad a del módulo b del paquete c

la entidad c del módulo b del paquete a

la entidad c del módulo a del paquete b

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

Already have an account?