Search Header Logo

Python Avanzado - Semana 1

Authored by Nancy Segura

Computers

Professional Development

Used 1+ times

Python Avanzado - Semana 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál de las siguientes funciones se utiliza para unir partes de una ruta en os.path?

joinpath()

concat()

os.join()

os.path.join()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué función se utiliza para obtener el nombre del archivo de una ruta completa?

getfile()

basename()

file()

os.basename()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál de las siguientes opciones se utiliza para comprobar si una ruta existe?

os.path.exists()

checkpath()

fileexists()

validatepath()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo se obtiene el directorio padre de una ruta utilizando os.path?

parentdir()

getparent()

os.parent()

os.path.dirname()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál de las siguientes funciones se utiliza para copiar un archivo?

shutil.copy()

copyfile()

filecopy()

shutil.cpfile()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué función se utiliza para copiar un directorio completo junto con su contenido?

shutil.copydir()

copytree()

copydir()

shutil.cpdirectory()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál de las siguientes opciones se utiliza para eliminar un archivo con shutil?

deletefile()

shutil.remove()

removefile()

shutil.delete()

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?