Search Header Logo

4to Examen Teorico de Python

Authored by Carlos Alva

Computers

University

Used 2+ times

4to Examen Teorico de Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál de los siguientes módulos se utiliza para manejar archivos y carpetas en Python?

socket

os

json

csv

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué función del módulo shutil se utiliza para copiar un archivo?

shutil.copy

shutil.rmtree

shutil.move

shutil.remove

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué hace la función datetime.datetime.now()?

Crea un nuevo objeto de fecha

Obtiene la fecha y hora actual

Convierte una cadena en fecha

Formatea la fecha

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál es la función del módulo time que pausa la ejecución del programa?

time.time

time.pause

time.sleep

time.localtime

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué hace la función random.randint(a, b)?

Devuelve un número decimal aleatorio

Selecciona un elemento aleatorio de una lista

Genera un número entero aleatorio entre a y b

Mezcla los elementos de una lista

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué módulo se utiliza para trabajar con expresiones regulares en Python?

json

re

math

datetime

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué función del módulo json convierte un diccionario en JSON?

json.convert

json.loads

json.dumps

json.to_json

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?