Maggie Samson
Test por , creado hace más de 1 año

Geography Test sobre GEOM 73 - Python Quiz 9, creado por Maggie Samson el 14/04/2019.

39
1
0
Maggie Samson
Creado por Maggie Samson hace alrededor de 5 años
Cerrar

GEOM 73 - Python Quiz 9

Pregunta 1 de 10

1

FTP stands for:

Selecciona una de las siguientes respuestas posibles:

  • File Transfer Protocol

  • File Translation Protocol

  • File Translation Procedure

  • File Transfer Procedure

Explicación

Pregunta 2 de 10

1

Which method of the ftp class of the ftplib module uses ASCII mode to transfer files?

Selecciona una de las siguientes respuestas posibles:

  • retrtxt()

  • retrbinary()

  • retrascii()

  • retrlines()

Explicación

Pregunta 3 de 10

1

When can you use urllib instead of ftplib to read and transfer files from an FTP server?

Selecciona una de las siguientes respuestas posibles:

  • anonymous FTP servers with a web interface

  • password protected FTP servers without a web interface

  • password protected FTP servers with a web interface

  • anonymous FTP servers without a web interface

Explicación

Pregunta 4 de 10

1

How do you set the current directory using ftplib on an FTP server so you can navigate to the files you need?

Selecciona una de las siguientes respuestas posibles:

  • ftp.cwd(pathname)

  • ftp.path(pathname)

  • ftp.dir(pathname)

  • ftp.setdir(pathname)

Explicación

Pregunta 5 de 10

1

When working with a ZIP file in Python using the zipfile module, how do you determine which files are present in the ZIP file without extracting them?

Selecciona una de las siguientes respuestas posibles:

  • open the file using something like zipfile.ZipFile("example.zip", "r"), then use the namelist method

  • open the file using something like zipfile.ZipFile("example.zip", "r"), then use the ziplist method

  • open the file using something like zipfile.ZipFile("example.zip", "r"), then use the read method

  • create a list of the files using something like zipfile.ListFiles("example.zip")

Explicación

Pregunta 6 de 10

1

Which compression method is the default employed by the zipfile module in Python?

Selecciona una de las siguientes respuestas posibles:

  • ZIP_STORED

  • TAR

  • GZIP

  • ZIP_COMPRESSED

  • ZIP_DEFLATED

Explicación

Pregunta 7 de 10

1

How would you extract all files in a ZIP file to the current working directory using the zipfile module in Python?

Selecciona una de las siguientes respuestas posibles:

  • ZipFile.openall()

  • ZipFile.extractall()

  • ZipFile.unzip()

  • ZipFile.extract("*")

Explicación

Pregunta 8 de 10

1

You should never use XML to store geospatial data since it is text-based and will therefore render your geospatial data useless.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 9 de 10

1

Which of the following module or libraries are used to work with XML data in Python? (check all that apply)

Selecciona una o más de las siguientes respuestas posibles:

  • xml.sax

  • xmlopen

  • xmlparser

  • xml.dom

  • xmllib

  • xml.etree.ElementTree

Explicación

Pregunta 10 de 10

1

XML files are notorious for missing or incorrect tags. Which module/library would you use in Python to parse XML files that contain tag errors?

Selecciona una de las siguientes respuestas posibles:

  • ElementTree

  • AlphabetSoup

  • BeautifulSoup

  • XMLfix

  • parseXML

Explicación