Python Module 2 Quizzes

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

API stands for: Association for Programmers Interests Application Programming Interface America's Petroleum Institute Automated Python Interface

Application Programming Interface

In Altair, the three ingredients for creating a visualization from data are: Text, numbers, and images Data types, graphical marks, and encoding channels Graphical marks, encoding channels, and interactivity Data types, aggregation, and transformation

Data types, graphical marks, and encoding channels

T/F: Nominal data consist of values that have a specific ordering

False

T/F: REST API allows for sophisticated queries against the data in the server

False

T/F: XQUERY and XPATH are incompatible

False

The main content of a web page is contained in: HTML CSS JS PNG

HTML

XML organizes data in a: Hierarchical tree-like structure Interconnected network-like structure Fractal multi-dimensional structure Flat blockchain structure

Hierarchical tree-like structure

HTML stands for: HoverText Markup Language HyperText Markup Language HyperText Markdown Language HoloText Machine Language

HyperText Markup Language

To express queries, GraphQL uses: SQL JSON XML Regular expressions

JSON

Which of the following can be thought of as ordinal data? Letter grades (e.g., A, A-, B+ ...) Date of birth Movie genre (e.g., Action, Comedy, ...) Height

Letter grades (e.g., A, A-, B+ ...)

country is an example of ____ data: Quantitative Ordinal Temporal Nominal

Nominal

T/F: Altair provides various functions to aggregate data before plotting it

True

T/F: HTML tags can be nested within other tags

True

T/F: In Altair, it is possible to aggregate data before plotting it

True

T/F: Nominal data are also called categorical data

True

T/F: The filter transform creates a new table with a subset of the original data, removing rows that fail to meet a provided predicate test

True

T/F: The window transform performs calculations over sorted groups of data records

True

T/F: XQuery is built on XPath expressions

True

Assuming data is pandas data frame df, which Altair function plots a vertical bar chart of average precip per month? alt.Chart(df).mark_bar().encode(x='precip',y='month') alt.Chart(df).mark_bar().encode(x='month',y='average(precip)') alt.Chart(df).mark_bar().encode(x='month',y='precip') alt.Chart(df).mark_bar().encode(x='average(precip)',y='month')

alt.Chart(df).mark_bar().encode(x='month',y='average(precip)')

The following code is an example of for $x in doc("books.xml")/bookstore/bookwhere $x/price>30order by $x/titlereturn $x/title an XPATH expression an XQUERY query an XML document a regular expression

an XQUERY query

Grouping continuous data into discrete groups is called: coarsening grouping thresholding binning

binning

Which BeautifulSoup method can find all the instances of a tag on a page: find_all sip_soup extract locate_tag

find_all

In Altair, what attribute is used to specify the geometric shape of data points shape axis style mark

mark

In an XML document, the top-level element is called the: leaf stem trunk root

root

When a request is sent, the result of whether it was successful or not will be inside the property: status_code response results request

status_code

HTML consists of elements called: tags parts divs spans

tags

Which attribute is used to extract the content of the response as a string: content payload text string

text

Histograms are useful to show: the association between different dimensions of the data the size of the data the distribution of the data the number of attributes in the data

the distribution of the data

line = alt.Chart(cars).mark_line().encode(alt.X('Year'),alt.Y('average(Miles_per_Gallon)')) point = alt.Chart(cars).mark_circle().encode(alt.X('Year'),alt.Y('average(Miles_per_Gallon)')) line + point error, operation not supported will show the two plots sequentially will show the two plots side by side will show the two plots on top of each other

will show the two plots on top of each other

line = alt.Chart(cars).mark_line().encode(alt.X('Year'),alt.Y('average(Miles_per_Gallon)')) point = alt.Chart(cars).mark_circle().encode(alt.X('Year'),alt.Y('average(Miles_per_Gallon)')) line | point will show the two plots side by side error, operation is not supported will show the two plots sequentially will show the two plots on top of each other

will show the two plots side by side


संबंधित स्टडी सेट्स

Social Studies Chapter 9 Vocabulary-6th grade

View Set

CH 16- FEDERAL GOVERNMENT ACCOUNTING

View Set

Topic 17 Lesson 2: America's Role Escalates

View Set

Chapter 16 International Trade and Exchange Rates

View Set

Project Management Practice Quiz 3&4

View Set

Curriculum Development Terms for Final

View Set