point
Which of the following Python data structures is most similar to the value returned in this line of Python:
socket
regular expression
dictionary
file handle
list
point
In this Python code, which line actually reads the data?
mysock.recv()
socket.socket()
mysock.close()
mysock.connect()
mysock.send()
point
Which of the following regular expressions would extract the URL from this line of HTML:
href="(.+)"
href=".+"
http://.*
<.*>
point
In this Python code, which line is most like the open() call to read a file:
mysock.connect()
import socket
mysock.recv()
mysock.send()
socket.socket()
point
Which HTTP header tells the browser the kind of document that is being returned?
HTML-Document:
Content-Type:
Document-Type:
ETag:
Metadata:
point
What should you check before scraping a web site?
That the web site returns HTML for all pages
That the web site supports the HTTP GET command
That the web site allows scraping
That the web site only has links within the same site
point
What is the purpose of the BeautifulSoup Python library?
It builds word clouds from web pages
It allows a web site to choose an attractive skin
It optimizes files that are retrieved many times
It animates web operations to make them more attractive
It repairs and parses HTML to make it easier for a program to understand
point
What ends up in the "x" variable in the following code:
A list of all the anchor tags (<a..) in the HTML from the URL
True if there were any anchor tags in the HTML from the URL
All of the externally linked CSS files in the HTML from the URL
All of the paragraphs of the HTML from the URL
point
What is the most common Unicode encoding when moving data between systems?
UTF-32
UTF-64
UTF-16
UTF-128
UTF-8
point
What is the decimal (Base-10) numeric value for the upper case letter "G" in the ASCII character set?
71
7
103
25073
14
point
What word does the following sequence of numbers represent in ASCII:
108, 105, 110, 101
lost
tree
ping
line
func
point
How are strings stored internally in Python 3?
Byte Code
UTF-8
ASCII
EBCDIC
Unicode
point
When reading data across the network (i.e. from a URL) in Python 3, what method must be used to convert it to the internal format used by strings?
decode()
upper()
find()
trim()
encode()
point
Which of the following Python data structures is most similar to the value returned in this line of Python:
socket
regular expression
dictionary
file handle
list
point
In this Python code, which line actually reads the data?
mysock.recv()
socket.socket()
mysock.close()
mysock.connect()
mysock.send()
point
Which of the following regular expressions would extract the URL from this line of HTML:
href="(.+)"
href=".+"
http://.*
<.*>
point
In this Python code, which line is most like the open() call to read a file:
mysock.connect()
import socket
mysock.recv()
mysock.send()
socket.socket()
point
Which HTTP header tells the browser the kind of document that is being returned?
HTML-Document:
Content-Type:
Document-Type:
ETag:
Metadata:
point
What should you check before scraping a web site?
That the web site returns HTML for all pages
That the web site supports the HTTP GET command
That the web site allows scraping
That the web site only has links within the same site
point
What is the purpose of the BeautifulSoup Python library?
It builds word clouds from web pages
It allows a web site to choose an attractive skin
It optimizes files that are retrieved many times
It animates web operations to make them more attractive
It repairs and parses HTML to make it easier for a program to understand
point
What ends up in the "x" variable in the following code:
A list of all the anchor tags (<a..) in the HTML from the URL
True if there were any anchor tags in the HTML from the URL
All of the externally linked CSS files in the HTML from the URL
All of the paragraphs of the HTML from the URL
point
What is the most common Unicode encoding when moving data between systems?
UTF-32
UTF-64
UTF-16
UTF-128
UTF-8
point
What is the decimal (Base-10) numeric value for the upper case letter "G" in the ASCII character set?
71
7
103
25073
14
point
What word does the following sequence of numbers represent in ASCII:
108, 105, 110, 101
lost
tree
ping
line
func
point
How are strings stored internally in Python 3?
Byte Code
UTF-8
ASCII
EBCDIC
Unicode
point
When reading data across the network (i.e. from a URL) in Python 3, what method must be used to convert it to the internal format used by strings?
decode()
upper()
find()
trim()
encode()