Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 25 pages
Exam (elaborations)

DAP391m - FPTU_AI Questions & Answers

Document preview thumbnail
Preview 3 out of 25 pages

DAP391m - FPTU_AI Questions & Answers Matplotlib was created by John Hunter, an American neurobiologist, and was originally developed as an EEG/ECoG visualization tool. A: True. B: False. True. Using the notebook backend, you can modify a figure after it is rendered. A: True. B: False. True. %matplotlib inline is an example of Matplotlib magic functions. A: True. B: False. True. Area plots are stacked by default. A: True B: False True Given a pandas series, series_data, which of the following will create a histogram of series_data and align the bin edges with the horizontal tick marks? A: count, bin_edges = gram(series_data) series_(kind='hist', xticks = count) count, bin_edges = gram(series_data) series_(kind='hist', xticks = count) B: series_(kind='hist') series_(kind='hist') C: count, bin_edges = gram(series_data) series_(kind='hist', xticks = count, bin_edges) count, bin_edges = gram(series_data) series_(kind='hist', xticks = count, bin_edges) D: series_(kind='hist', xticks = bin_edges) count, bin_edges = gram(series_data) series_(kind='hist', xticks = bin_edges) count, bin_edges = gram(series_data) E: series_(type='hist', xticks = bin_edges) count, bin_edges = gram(series_data) series_(type='hist', series_(kind='hist', xticks = bin_edges) count, bin_edges = gram(series_data) The following code will create a horizontal bar chart of the data in a pandas dataframe, question. (kind='barh') A: True. B: False. True. What do the letters in the box plot above represent? A: A = Median, B = Third Quartile, C = First Quartile, D = Inter Quartile Range, E = Minimum, and F = Outliers B: A = Mean, B = Upper Mean Quartile, C = Lower Mean Quartile, D = Inter Quartile Range, E = Minimum, and F = Outliers C: A = Median, B = Third Quartile, C = Mean, D = Inter Quartile Range, E = Lower Quartile, and F = Outliers D: A = Mean, B = Third Quartile, C = First Quartile, D = Inter Quartile Range, E = Minimum, and F = Maximum E: A = Mean, B = Third Quartile, C = First Quartile, D = Inter Quartile Range, E = Minimum, and F = Outliers A = Median, B = Third Quartile, C = First Quartile, D = Inter Quartile Range, E = Minimum, and F = Outliers What is the correct combination of function and parameter to create a box plot in Matplotlib? A: Function = plot, and Parameter = kind with value = "box" B: Function = plot, and Parameter = kind with value = "boxplot" C: Function = box, and Parameter = type with value = "plot" D: Function = plot, and Parameter = type with value = "box" E: Function = boxplot, and Parameter = type with value = "plot" Function = plot, and Parameter = kind with value = "box" Which of the lines of code below will create the following scatter plot, given the pandas dataframe, df_total? A: import t as plt plot(kind='scatter', x='year', y='total', data=df_total) ('Total Immigrant population to Canada from ') ('Year') ('Number of Immigrants') import t as plt plot(kind='scatter', x='year', y='total', data=df_total) ('Total Immigrant population to Canada from ') ('Year') ('Number of Immigrants') B: import t as plt df_(kind='scatter', x='year', y='total') ('Total Immigrant population to Canada from ') ('Year') ('Number of Immigrants') import t as plt df_(kind='scatter', x='year', y='total') ('Total Immigrant population to Canada from ') ('Year') plt.l import t as plt df_(kind='scatter', x='year', y='total') ('Total Immigrant population to Canada from ') l ('Year') l('Number of Immigrants') Seaborn is a Python visualization library that provides a high-level interface for visualizing geospatial data. A: True. B: False. False. Which of the choices below will create the following regression line plot, given a pandas dataframe, data_df? A: data_(kind="regression", color="green", marker="+") B: data_(kind="regplot", color="green", marker="+") C: import seaborn as sns ax = ot(x="year", y="total", data=data_df, color="green") D: import seaborn as sns ax = ot(x="total", y="year", data=data_df, color="green") E: import seaborn as sns ax = ot(x="year", y="total", data=data_df, color="green", marker="+") import seaborn as sns ax = ot(x="year", y="total", data=data_df, color="green", marker="+") The easiest way to create a waffle chart in Python is using the Python package, PyWaffle. A: True. B: False. True. You cluster markers, superimposed onto a map in Folium, using a feature group object. A: False B: True False The following code will generate a map of Spain, displaying its hill shading and natural vegetation. folium.Map(location=[-40.4637, -3.7492], zoom_start=6, tiles='Stamen Toner') A: True. B: False. False. A choropleth map is a thematic map in which areas are shaded or patterned in proportion to the measurement of the statistical variable being displayed on the map. A: True. B: False. True. Dashboards can provide real-time visuals. A: True B: False True Plotly express is a ________ wrapper A: High-level B: Low-level High-level @app_callback is the callback decorator. A: True B: False False Choose correct way of adding callback decorator A: @ack( Output{component_id='bar-plot', component_property='figure'}, Input{component_id='input-yr', component_property='value'}) B: @ack[Output(component_id='bar-plot', component_property='figure'), Input(component_id='input-yr', component_property='value')] C: @ack( Output(component_id='bar-plot', component_property='figure'), Input(component_id='input-yr', component_property='value')) @ack( Output(component_id='bar-plot', component_property='figure'), Input(component_id='input-yr', component_property='value')) Supervised learning deals with unlabeled data, while unsupervised learning deals with labelled data. A: True B: False False The "Regression" technique in Machine Learning is a group of algorithms that are used for: A: Predicting a continuous value; for example predicting the price of a house based on its characteristics. B: Finding items/events that often co-occur; for example grocery items that are usually bought together by a customer. C: Prediction of class/category of a case; for example, a cell is benign or malignant, or a customer will churn or not. Predicting a continuous value; for example predicting the price of a house based on its characteristics. When comparing Supervised with Unsupervised learning, is this sentence True or False? In contrast to Supervised learning, Unsupervised learning has more models and more evaluation methods that can be used in order to ensure the outcome of the model is accurate. A: True B: False False

Content preview

DAP391m - FPTU_AI Questions &
Answers

Matplotlib was created by John Hunter, an American neurobiologist, and was originally
developed as an EEG/ECoG visualization tool.
A: True.
B: False. - answer True.

Using the notebook backend, you can modify a figure after it is rendered.
A: True.
B: False. - answer True.

%matplotlib inline is an example of Matplotlib magic functions.
A: True.
B: False. - answer True.

Area plots are stacked by default.
A: True
B: False - answer True

Given a pandas series, series_data, which of the following will create a histogram of
series_data and align the bin edges with the horizontal tick marks?
A: count, bin_edges = np.histogram(series_data)
series_data.plot(kind='hist', xticks = count)
count, bin_edges = np.histogram(series_data)
series_data.plot(kind='hist', xticks = count)
B: series_data.plot(kind='hist')
series_data.plot(kind='hist')
C: count, bin_edges = np.histogram(series_data)
series_data.plot(kind='hist', xticks = count, bin_edges)
count, bin_edges = np.histogram(series_data)
series_data.plot(kind='hist', xticks = count, bin_edges)
D: series_data.plot(kind='hist', xticks = bin_edges)
count, bin_edges = np.histogram(series_data)
series_data.plot(kind='hist', xticks = bin_edges)
count, bin_edges = np.histogram(series_data)
E: series_data.plot(type='hist', xticks = bin_edges)
count, bin_edges = np.histogram(series_data)
series_data.plot(type='hist', - answer series_data.plot(kind='hist', xticks = bin_edges)
count, bin_edges = np.histogram(series_data)

,The following code will create a horizontal bar chart of the data in a pandas dataframe,
question.
question.plot(kind='barh')
A: True.
B: False. - answer True.

What do the letters in the box plot above represent?
A: A = Median, B = Third Quartile, C = First Quartile, D = Inter Quartile Range, E =
Minimum, and F = Outliers
B: A = Mean, B = Upper Mean Quartile, C = Lower Mean Quartile, D = Inter Quartile
Range, E = Minimum, and F = Outliers
C: A = Median, B = Third Quartile, C = Mean, D = Inter Quartile Range, E = Lower
Quartile, and F = Outliers
D: A = Mean, B = Third Quartile, C = First Quartile, D = Inter Quartile Range, E =
Minimum, and F = Maximum
E: A = Mean, B = Third Quartile, C = First Quartile, D = Inter Quartile Range, E =
Minimum, and F = Outliers - answer A = Median, B = Third Quartile, C = First
Quartile, D = Inter Quartile Range, E = Minimum, and F = Outliers

What is the correct combination of function and parameter to create a box plot in
Matplotlib?
A: Function = plot, and Parameter = kind with value = "box"
B: Function = plot, and Parameter = kind with value = "boxplot"
C: Function = box, and Parameter = type with value = "plot"
D: Function = plot, and Parameter = type with value = "box"
E: Function = boxplot, and Parameter = type with value = "plot" - answer Function =
plot, and Parameter = kind with value = "box"

Which of the lines of code below will create the following scatter plot, given the pandas
dataframe, df_total?
A: import matplotlib.pyplot as plt
plot(kind='scatter', x='year', y='total', data=df_total)
plt.title('Total Immigrant population to Canada from 1980 - 2013')
plt.label ('Year')
plt.label('Number of Immigrants')
import matplotlib.pyplot as plt
plot(kind='scatter', x='year', y='total', data=df_total)
plt.title('Total Immigrant population to Canada from 1980 - 2013')
plt.label ('Year')
plt.label('Number of Immigrants')
B: import matplotlib.scripting.pyplot as plt
df_total.plot(kind='scatter', x='year', y='total')
plt.title('Total Immigrant population to Canada from 1980 - 2013')
plt.label('Year')
plt.label('Number of Immigrants')
import matplotlib.scripting.pyplot as plt

, df_total.plot(kind='scatter', x='year', y='total')
plt.title('Total Immigrant population to Canada from 1980 - 2013')
plt.label('Year')
plt.l - answer import matplotlib.pyplot as plt
df_total.plot(kind='scatter', x='year', y='total')
plt.title('Total Immigrant population to Canada from 1980 - 2013')
plt.xlabel ('Year')
plt.ylabel('Number of Immigrants')

Seaborn is a Python visualization library that provides a high-level interface for
visualizing geospatial data.
A: True.
B: False. - answer False.

Which of the choices below will create the following regression line plot, given a pandas
dataframe, data_df?
A: data_df.plot(kind="regression", color="green", marker="+")
B: data_df.plot(kind="regplot", color="green", marker="+")
C: import seaborn as sns
ax = sns.regplot(x="year", y="total", data=data_df, color="green")
D: import seaborn as sns
ax = sns.regplot(x="total", y="year", data=data_df, color="green")
E: import seaborn as sns
ax = sns.regplot(x="year", y="total", data=data_df, color="green", marker="+") - answer
import seaborn as sns
ax = sns.regplot(x="year", y="total", data=data_df, color="green", marker="+")

The easiest way to create a waffle chart in Python is using the Python package,
PyWaffle.
A: True.
B: False. - answer True.

You cluster markers, superimposed onto a map in Folium, using a feature group object.
A: False
B: True - answer False

The following code will generate a map of Spain, displaying its hill shading and natural
vegetation.
folium.Map(location=[-40.4637, -3.7492], zoom_start=6, tiles='Stamen Toner')
A: True.
B: False. - answer False.

A choropleth map is a thematic map in which areas are shaded or patterned in
proportion to the measurement of the statistical variable being displayed on the map.
A: True.
B: False. - answer True.

Document information

Uploaded on
January 5, 2025
Number of pages
25
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Pogba119
3.9
(14)
Sold
62
Followers
2
Items
5513
Last sold
5 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions