CSC 221 part 2

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

In a RegEx pattern, groups are defined using..?

()

What IP address function can be used to display the long form of an IPv6 address

.exploded

When defining and IPv4 network address using the following syntax: ipaddress.ip_network("10.10.10.0/24"). Which of the following is the equivalent command?

10.10.10.0/255.255.255.0 (with netmask)

XML has been a W3C standard since?

1998

Given the following code, how many match values would be printed? text_to_search = 'trala lafa lala' pattern = re.compile(r'\bla')

2

Which group of HTTP status codes is used for Redirection messages?

3XX

Which group of HTTP status codes contains the Not Found message?

4XX

Given the following pattern which string(s) would this match? text_to_search = '''800-700-123 800-100-1234 900-600-1234 900-900-1234 ''' pattern = re.compile(r'[89]00[-.][67]00[-.]\d\d\d\d'

800-700, 900-600

What is web scraping

An automated process of gathering large amounts of data from the Internet

What tool was stated to be the "leading DevOps Tool for Network Configuration Management" in Net DevOps document?

Ansible

What Python library tries to make sense of the nonsensical, including the messy web with bad HTML?

BeautifulSoup

Which web framework mentioned in this lesson is distributed as a single-file?

Bottle

Which web framework, although comprised of a single file, is not part of the Python standard library?

Bottle

Using the Ipaddress module, you can create an IPv4 address using the following syntax: ipaddress.ip_address("192.168.100.10/24"). The value "24" is referred to as -- what?

CIDR notation meaning that leading 24 of the 32 bits are used to identify the network portion of the address.

What does CSV stand for?

Comma Separated Values

Which HTTP METHOD removes a singleton resouce?

DELETE

What are some other terms commonly used in place of web scraping

Data Mining, Web Harvesting, Screen Scraping

What Python data type was converted to a JSON object in the lab?

Dictionary

Which web framework follows the MTV architectural pattern?

Django

Which web framework provides an optional administrative CRUD interface?

Django

JSON stands for?

JavaScript Object Notation

What Python module was used in the lab to parse XML

ElementTree

According to Roy Fielding, "The key abstractions of information in REST is a representation".

False

An IPv6 address is a string in decimal-dot notation, consisting of four decimal integers in the inclusive range 0-255.

False

Regex Option Flags (eg. re.IGNORECASE) can be combined using the + operator?

False

What store was the subject of the web scraping program reviewed during this lesson?

Family Dollar

Which web framework is based on Werkzeug and Jinja2?

Flask

Which web framework was originally created and named as an April Fool's joke?

Flask

What type of request is used to fetch the content of a web page from a web server?

GET

Which HTTP METHOD is the most commonly used by REST API?

GET

XML's syntax is very similar to what other format?

HTML

What is the latest version of HTML?

HTML5

What type of program is often used to view CSV files?

Microsoft Excel

Which Python library is open-source and is based on the Paramiko SSH library?

Netmiko

Which of the following is an automation framework intended to be used directly from Python?

Nornir

The ZIP file format was originally created and implemented by PKWare via the utility...?

PKZIP

Which HTTP Methods (verbs) can be used to "send data"?

POST, PUT, PATCH

Which Python library is an implementation of the SSHv2 protocol and leverages a Python C extension for low level cryptography?

Paramiko

Which Python library is used for spawning child applications and has an interface that was designed to be easy to use?

Pexpect

What does REST API stand for?

Representational State Transfer and Application Programming Interface

Who was the originator of the REST architecture?

Roy Fielding

Which of the following Networking and Interprocess Communication modules is defined as a "low-level networking interface"?

Socket

What are the metacharacters ^ and $ commonly called?

Start and end anchors

Which of the 6 REST constraints ensures no client context/information is stored on the server between requests?

Statelessness

The following pattern will match...? pattern=re.compile(r'[A-Z]\w+')

Words that start with capital A-to-Z followed by 1 or more other characters

Which web framework can scale tens of thousands of open connections?

Tornado

Which web framework was originally developed at FriendFeed?

Tornado

What were top 3 most popular python frameworks on Oct. 23, 2020?

Tornado, Flask, Django

An IPv6 address is a string consisting of eight groups of four hexadecimal digits, each group representing 16 bits.

True

One of the additional features most web frameworks include is "authentication".

True

REST Clients, like Postman and Insomnia make responses from REST APIs more readable.

True

The json.dumps() method has the indent parameter that make the JSON string easier to read.

True

The json.dumps() method is used when Python objects have to be stored in a file, and requires a filename argument.

True

What is it called when the code accesses a URL, examines that page for another URL, retrieves that page, in a recursive process?

Web Crawling

In a RegEx pattern, if you want to specify a set of characters to match you use...?

[]

When dealing with HTML elements mapped out as a tree, which elements are exactly one tag below a parent tag?

children

Using BeautifulSoup, what function is used to extract a Python list of all the <table> tags on a web page?

find_all

Which of the following InternetProtocols and Support modules is defined as a "IPv4/IPv6 manipulation library"?

ipaddress

What Windows command displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, and IPv4/IPv6 statistics?

netstat

What Windows command has an option that allows you to limit the number of echo requests sent to a specified host?

ping

What is the name of the Python library that is used for validating and working with Yang files?

pyang

What is the name of the Python module that needs to be imported to use regular expressions in your Python code?

re

Which protocol is a cryptographic network protocol for operating network services securely over an unsecured network?

ssh

What Windows command is used to see a network packet being sent and received and the amount of hops required for that packet to get to its destination?

tracert

What standard Python library contains functions for requesting data across the web, handling cookies, and even changing metadata?

urllib

What Windows command enables you to retrieve information about event logs and publishers, install and uninstall event manifests, run queries, and export, archive and clear logs?

wevtutil

What were two of the Python modules/libraries mentioned in the Net DevOps document that are often used for manipulating data?

xmltodict (XML), JSON, PyYAML (YAML), CSV, pyang (YANG)


Set pelajaran terkait

Intermediate Accounting - Chpt 15

View Set

Tx 30 Hr Law of Contracts Practice Exam

View Set

Chapter 2 - Information Systems and Strategy

View Set

Chapter 12: Family Violence and Abuse

View Set

Honan One Minute Nurse: Glasgow Coma Scale

View Set

Chapter 04 Future Value, Present Value and Interest Rates Part A

View Set

DONE True False Test 2 (includes chpt. 2 & 3) Globalization 10th and 11th edition

View Set

Women's Health Midterm Study Set

View Set