Question
Question 1 In a regular expression, _________________________ characters tell the computer or interpreter that the character that follows it has a special purpose. Question 2
Question 1
In a regular expression, _________________________ characters tell the computer or interpreter that the character that follows it has a special purpose.
Question 2
What is the "wild card" character in a regular expression (i.e., the character that matches any character)?
Question 3
What is the type of the return value of the re.findall() method?
Question 4
What Regular Expression matches one or more digits?
Question 5
Which of these options correspond to matching a pattern zero or more times?
Group of answer choices
*
?
+
{2}
{2, 2}
{2, 3}
{, 3}
Question 6
What must you do in Python before opening a socket?
Question 7
In this Python code, which line actually reads the data?
import socket mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) mysock.connect(('www.py4inf.com', 80)) mysock.send('GET http://www.py4inf.com/code/romeo.txt HTTP/1.0 ') while True: data = mysock.recv(512) if ( len(data) < 1 ) : break print data mysock.close()
Group of answer choices
mysock.send()
mysock.connect()
socket.socket()
mysock.recv()
Question 8
Which of the following is most similar to a TCP port number?
Group of answer choices
The GPS coordinates of a building
A telephone number
The distance between two locations
A telephone extension
Question 9
___________ is a Python module for fetching URLs (Uniform Resource Locators). It offers a very simple interface, in the form of the urlopen function.
Group of answer choices
urllib.request
urllib.decode
urllib.parse
None of the answers are correct
Question 10
The when using the urllib.parse package to creating URP query strings, which python data structure is used to pass the query parameters to the urlencode method?
params = urllib.parse.urlencode(some_data_structure)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started