Question 1
The analysis metric slope can be observed through which of the following ways?
Trend Line in Line Chart
SLOPE function
Both Trend Line in Line Chart and SLOPE function
None of these
The IIT Madras BS Tools in Data Science (Tools in Data Science (TDS)) End Term paper sat on 7 Aug 2022, in the May 2022 term, set QPD1: 46 questions for 46 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
The analysis metric slope can be observed through which of the following ways?
Trend Line in Line Chart
SLOPE function
Both Trend Line in Line Chart and SLOPE function
None of these
Correct answer
Both Trend Line in Line Chart and SLOPE function
Quill provides the option to turn on/off, for displaying the individual comments from the narrative generation process?
TRUE
FALSE
Correct answer
TRUE
We are analyzing how much the use of fertilizers affects the agricultural yield of the farmers. Which Excel function would you use as a starting point in this analysis?
STDEV.P()
STDEV.S()
SLOPE()
EXACT()
Correct answer
SLOPE()
Subjectivity score in TextBlob ranges from ___________.
0 to 1
-1 to +1
-inf to +inf
0 to inf
0 to 10
Correct answer
0 to 1
Flourish cannot be used to create animated bar charts.
TRUE
FALSE
Correct answer
FALSE
Which piece of code below will extract details of all Bollywood movies that were released in Jan – March 2009 and later prints out only those rows where the respective movie was categorized only as a Drama?
Correct answer
A very large Matrix A has a lot of zero entries in it. Which function from the scipy library is useful in efficient storage of such a matrix A?
csr_matrix
interpolate
compressed_mat
zip_mat
Correct answer
csr_matrix
Kumu is a tool that allows you to (select the most appropriate answer):
Visualize complex network data
create stunning dashboards for large projects
merge Comicgen characters into a comic
Narrate data stories
Correct answer
Visualize complex network data
Which of the following Python libraries has functions and tools that are useful in the analysis of large graphs?
scikit-network
pandas-network
numpy-network
pd-network
Correct answer
scikit-network
Which of the following Python libraries has functions extensively written to perform numerical operations?
csr_matrix
numpy
seaborn
itertools
Correct answer
numpy
You developed a sudden interest in English Premier League. Post the TDS course, you wanted to perform an analysis on all teams which played EPL from the year 1992. You performed PDF scraping using ‘tabula’ and appended every year standings of teams one below the other and saved as a single csv file. For looking at aggregating at various levels (viz Year wise, Team wise) the following can be used in Excel:
Pilot Table
Pivot Table
Pivol Table
None of these
Correct answer
Pivot Table
Assume you have data with a column “Direction” which takes the values “Left”, “Right”. If you had used one hot encoding, the new columns added would be:
Direction_Left, Direction_Right
Left_Direction, Right_Direction
Left-Direction, Right-Direction
Direction-Left, Right-Direction
Correct answer
Direction_Left, Direction_Right
One of quick ways to generate a descriptive stats file for variables along with correlation is to use
pandas_profiling
profiling_pandas
describe_dataset
Dataframe_profile
Correct answer
pandas_profiling
You decide to use keras to classify images into one of the following categories: cat, dog, bull. Which of the following loss functions from Keras would you pick for the task?
binary_crossentropy
categorical_crossentropy
mean_squared_error
mean_absolute_error
Correct answer
categorical_crossentropy
Logical calculations in tableau helps to determine if a certain condition is true or false. Is the following expression valid?
TRUE
FALSE
Correct answer
TRUE
Identify which of the following statements is/are TRUE
1. A story contains a single view along with shelves, cards, legends, and the Data and Analytics panes in its side bar.
2. A worksheet contains a sequence of stories that work together to convey information 3. A dashboard is a collection of views from multiple worksheets
1 Only
3 Only
2 & 3 Only
1 & 2 Only
Correct answer
3 Only
The dataset consists of geographic, demographic information about countries and their respective GDPs. You would like to visualize this data and study the relationship between the location of countries and their GDPs. You decide to use Tableau to visualize the dataset. But you would also like to generate a summary of the data. Choose the most suitable answer among the given options.
The summary can be generated using Quill and this is possible because Quill can be used as an extension in Tableau.
Tableau can be used for visualization. But Quill is incompatible with Tableau.
Quill does not support generation of summary. Therefore using other visualization tools such as Tableau would work.
None of the options are appropriate for the generation of summary for the given question.
Correct answer
The summary can be generated using Quill and this is possible because Quill can be used as an extension in Tableau.
What are the two outputs provided by the Excel Azure Machine Learning plugin?
Percentage, Labels
Sentiment, Percentage
Sentiment, Score
Score, Labels
Correct answer
Sentiment, Score
Provided below is an incomplete code snippet that enables you to compute distance between two locations. Choose the most appropriate option that can be used in place of <missing line> to compute the distance. Assume the coordinates of location one is stored in the variable “loc1” and the coordinates of location 2 is stored in the variable “loc2”.
geopy.distance(loc1, loc2).km
geopy.distance(loc1, loc2).km.km
geopy.distance.distance(loc1, loc2).km
geopy.distance.distance.distance(loc1_coord, loc2_coord).km
Correct answer
geopy.distance.distance(loc1, loc2).km
Provided below is a snippet of the code block of HTML tags from a website providing weather forecast. Your goal is to scrape the high and low values for the 10-day temperature forecast.
Correct answer
The final output from the BBC Weather Location Service API is in CSV format:
TRUE
FALSE
Correct answer
FALSE
Which among the following properties are returned by the sentiment function of the TextBlob library?
Score, Polarity
Polarity, Negativity
Median, Subjectivity
Polarity, Subjectivity
Correct answer
Polarity, Subjectivity
Subjectivity score ranges between -1 to +1.
TRUE
FALSE
Correct answer
FALSE
A subjectivity score of 0.4 means that the text statement:
has a positive sentiment
has a negative sentiment
is more of an opinion statement
is more of a factual statement
Correct answer
is more of a factual statement
A polarity score of 0.1 means that the text statement:
has a positive sentiment
has a negative sentiment
is more of an opinion statement
is more of a factual statement
Correct answer
has a positive sentiment
Provided below is a snapshot of the dataset which consists of movie reviews and respective labels.
To compute the sentiment scores the Azure Machine Learning add-in requires input and output values. In the figure provided below the input and output cells need to be populated with appropriate values to obtain sentiment scores.
Choose the most appropriate option that enables you to predict sentiment scores using the Excel Azure Machine Learning add-in.
Correct answer
We are interested in analyzing the effect of money spent on TV advertising on the sales volume of a product. Which Excel function would you use as a starting point in this analysis?
STDEV.P()
STDEV.S()
SLOPE()
EXACT()
Correct answer
SLOPE()
from sklearn.metrics import mean_absolute_error
from sklearn.metrics import median_absolute_error
from sklearn.metrics import median_absolute_percentage_error
from sklearn.metrics import average_absolute_percentage_error
Correct answer
from sklearn.metrics import median_absolute_error
You are working on a piece of code that classifies different vehicles into its respective class (car, LCV, truck, earth movers). Which of the following loss functions from Keras would you pick for the task?
binary_crossentropy
categorical_crossentropy
mean_squared_error
Mean_absolute_error
Correct answer
categorical_crossentropy
Tableau automatically divides the data fields into two categories. What are they?
Measures and categories
Dimensions and Measures
Columns and rows
Matrices and columns
Correct answer
Dimensions and Measures
Which Extension in Tableau transforms visualizations into narratives?
Narrator
Navigator
Quill
Quora
Correct answer
Quill
If you want to create comical characters while building business stories, which tool would be helpful.?
Cartoongen
Image size
Comicgen
Gentoon
Correct answer
Comicgen
Which of the following is used to build and host web applications?
Streamlit for building web applications, Heroku for hosting web applications
Heroku for building web applications, Streamlit for hosting web applications
Streamlit for building web applications, Streamlit for hosting web applications
Heroku for building web applications, Heroku for hosting web applications
Correct answer
Streamlit for building web applications, Heroku for hosting web applications
Which among the following excel charts is the most suitable for detecting outliers in the data?
Bar chart
Line chart
Box and Whisker chart
Histogram
Correct answer
Box and Whisker chart
Which of the following libraries is used to construct API urls?
Urllib
BeautifulSoup
Requests
Pandas
Correct answer
Urllib
Which of the following tabs is used to identify API calls in the Inspect element in any browser?
Network
Elements
Console
Sources
Correct answer
Network
Google Studio is a tool that allows you to
merge Comicgen characters into a comic
visualize complex network data
create dashboards for small scale projects
Edit photographs and videos
Correct answer
create dashboards for small scale projects
csr_matrix from the scipy library:
always helps reduce matrix space
helps reduce matrix space when there are a lot of zero entries in the matrix
helps reduce matrix space when there are a lot of negative entries in the matrix
makes matrix multiplication more meaningful and powerful
Correct answer
helps reduce matrix space when there are a lot of zero entries in the matrix
classification_report function from the sklearn.metrics module
builds a decision tree classifier and prints the accuracy of the classifier
reports the root mean square error of the model
runs different classification models and compares the results
builds a text report displaying the main classification metrics
Correct answer
builds a text report displaying the main classification metrics
pycaret is a
Visualization tool
Dashboard helper
low-code machine learning library
Data cleaning solution
Correct answer
low-code machine learning library
We are interested in fitting an ARIMA model to our time series data. Specifically, we are interested in a moving average model of 0, setting a lag value of 4 for autoregression, and a difference order of 1. Which of the following gives you such a model?
ARIMA(..., trend = (4,1,0))
ARIMA(..., order = (4,1,0))
ARIMA(..., order = (0,4,1))
ARIMA(..., trend = (0,4,1))
Correct answer
ARIMA(..., order = (4,1,0))
Scikit-learn has a DecisionTreeClassifier module that is useful in building decision tree classifiers. Suppose, our dataset is imbalanced in class. Which feature in the DecisionTreeClassifier() will help us tackle this problem?
random_state
min_sample_split
class_balance
class_weight
Correct answer
class_weight
Comicgen is a useful tool in narrating data stories using comics. Which of the following are capabilities of comicgen?
Comicgen can create comic characters
Comicgen provides options to custom create different comic characters and their emotions and pose
Comicgen can be easily integrated into Google sheets or Excel to narrate your data stories
You can type in your data story into comicgen to get your comic in return
Correct answers
Comicgen can create comic characters
Comicgen provides options to custom create different comic characters and their emotions and pose
Comicgen can be easily integrated into Google sheets or Excel to narrate your data stories
scikit-network package contains functions for (pick all correct sentences):
analysis of faults in a computer network
social network analysis
analysis of large graphs
enhancing one’s social network
Correct answers
social network analysis
analysis of large graphs
Answer the given subquestions
You decided to perform analysis of the IPL teams year on year. You downloaded the teams standings table which got downloaded as a PDF. You wish to convert to a csv file for further analysis in Excel. The following method in ‘tabula’ can be used for the same:
convert_into
convert_file
convert_all
convert_csv
Correct answer
convert_into
Answer the given subquestions
From the converted csv file in previous question, you realize that the team ‘Delhi Daredevil’ has changed its name to ‘Delhi Capital’. Using excel, you wish to replace the old name with a new name. It can be done in Excel using
Find and Replace
Finding and Replacing
Replace and Find
Search and Replace
Correct answer
Find and Replace