GEOM 73 - Python Quiz 9

Descripción

Geography Test sobre GEOM 73 - Python Quiz 9, creado por Maggie Samson el 14/04/2019.
Maggie Samson
Test por Maggie Samson, actualizado hace más de 1 año
Maggie Samson
Creado por Maggie Samson hace alrededor de 5 años
39
1

Resumen del Recurso

Pregunta 1

Pregunta
FTP stands for:
Respuesta
  • File Transfer Protocol
  • File Translation Protocol
  • File Translation Procedure
  • File Transfer Procedure

Pregunta 2

Pregunta
Which method of the ftp class of the ftplib module uses ASCII mode to transfer files?
Respuesta
  • retrtxt()
  • retrbinary()
  • retrascii()
  • retrlines()

Pregunta 3

Pregunta
When can you use urllib instead of ftplib to read and transfer files from an FTP server?
Respuesta
  • 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

Pregunta 4

Pregunta
How do you set the current directory using ftplib on an FTP server so you can navigate to the files you need?
Respuesta
  • ftp.cwd(pathname)
  • ftp.path(pathname)
  • ftp.dir(pathname)
  • ftp.setdir(pathname)

Pregunta 5

Pregunta
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?
Respuesta
  • 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")

Pregunta 6

Pregunta
Which compression method is the default employed by the zipfile module in Python?
Respuesta
  • ZIP_STORED
  • TAR
  • GZIP
  • ZIP_COMPRESSED
  • ZIP_DEFLATED

Pregunta 7

Pregunta
How would you extract all files in a ZIP file to the current working directory using the zipfile module in Python?
Respuesta
  • ZipFile.openall()
  • ZipFile.extractall()
  • ZipFile.unzip()
  • ZipFile.extract("*")

Pregunta 8

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

Pregunta 9

Pregunta
Which of the following module or libraries are used to work with XML data in Python? (check all that apply)
Respuesta
  • xml.sax
  • xmlopen
  • xmlparser
  • xml.dom
  • xmllib
  • xml.etree.ElementTree

Pregunta 10

Pregunta
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?
Respuesta
  • ElementTree
  • AlphabetSoup
  • BeautifulSoup
  • XMLfix
  • parseXML
Mostrar resumen completo Ocultar resumen completo

Similar

Geography Quiz
PatrickNoonan
Geography Coastal Zones Flashcards
Zakiya Tabassum
Using GoConqr to study geography
Sarah Egan
All the Countries of the World and their Capital Cities
PatrickNoonan
Tectonic Hazards flashcards
katiehumphrey
Volcanoes
1jdjdjd1
River Processes and Landforms
1jdjdjd1
GCSE Geography - Causes of Climate Change
Beth Coiley
The Rock Cycle
eimearkelly3
Plate Tectonics
eimearkelly3
Characteristics and Climate of a hot desert
Adam Collinge