Predictive Analytics (AL-702-C) Important Questions
By the Paperwala team · · Exam on Fri 18 Dec
The most asked Predictive Analytics (AL-702-C) topics in RGPV papers are Steps for a successful data product strategy, Types of data products by functionality, Converting a string to a JSON array and Reading CSV and JSON files in Python. We read the RGPV B.Tech CSE-AIML semester 7 papers from 2023 and counted every question. Steps for a successful data product strategy, Types of data products by functionality, Converting a string to a JSON array and Reading CSV and JSON files in Python came once each.
Answers: We wrote these answers with AI help from the real RGPV papers and the syllabus. A teacher has not checked them yet, so read them with your syllabus. How we make these
10 most repeated Predictive Analytics topics (2023)
Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.
Predictive Analytics important questions with answers
Each answer starts with a short answer. Then come how often it was asked, the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.
Q1. Steps for a successful data product strategy
Short answer. A data product delivers value mainly through data. A strategy says whose problem it solves, which data it needs and how success will be measured.
Asked 1 time in 2023 · Unit 1
From the papers
“Explain the steps for building a successful data product strategy.” (November 2023)
Write these points
Steps
Define the problem and user. Tie it to a business goal.
Set success measures before building.
Check data: availability, quality, legal right and privacy.
Plan the team and tools.
Build a small first version and test it with users.
Data: two years of daily sales. First version: forecast for one shop.
If waste falls from 12 to 9 percent in a fair trial, extend to more shops.
Real-life example
Before opening a tea stall you decide who your customers are, what supplies you need and how you will know it works. A data product needs the same plan.
Figure: a data product strategy
Difference between Data project and data product
Point
Project
Product
Same or opposite
Uses data
Yes
Yes
Same
End
A report or one time result
Ongoing use by users
Opposite
Needs monitoring
Less
Always
Opposite
Needs a clear goal
Yes
Yes
Same
Exam tip. Write eight steps in order and add success measures early.
Short answer. Use the json module: json.loads parses a JSON string. If the text is a JSON array, Python returns a list.
Asked 1 time in 2023 · Unit 2
From the papers
“What steps are involved in converting a string to a JSON Array? Explain with a code.” (November 2023)
Write these points
Steps
Import json.
Make sure the text is valid JSON, with double quotes around keys and strings.
Call json.loads inside error handling.
Check that the result is a list.
Use the items. json.dumps converts back to text.
import json
s = '[{"name":"Asha","marks":82},{"name":"Ravi","marks":74}]'
try:
data = json.loads(s)
except json.JSONDecodeError as e:
raise SystemExit('bad JSON: %s' % e)
if not isinstance(data, list):
raise SystemExit('not an array')
print(len(data), data[0]['name'])
print(sum(d['marks'] for d in data) / len(data))
Remember. Do not use eval() to parse text. It can run harmful code.
Output.
The program prints 2 Asha and then 78.0.
Real-life example
A packing list written on paper is only text. After you copy it item by item into a register, you can count and total the items.
Short answer. A CSV file stores a table as text and a JSON file (printed as JSNO in the paper) stores nested data. Python reads them with the csv and json modules or with pandas.
Asked 1 time in 2023 · Unit 2
From the papers
“What are CSV and JSNO files in Python? Explain how you will read these files in python?” (November 2023)
Write these points
Reading CSV
import csv
with open('marks.csv', newline='', encoding='utf-8') as f:
for row in csv.DictReader(f):
print(row['name'], int(row['marks']))
Reading JSON
import json
with open('marks.json', encoding='utf-8') as f:
data = json.load(f)
With pandas
import pandas as pd
df1 = pd.read_csv('marks.csv')
df2 = pd.read_json('marks.json')
Points to remember
CSV values come as strings with the csv module, so convert numbers.
Use csv and not split(','), because quoted values may contain commas.
Use the correct encoding.
For nested JSON, pandas.json_normalize can flatten it.
Q5. Data extraction tools and techniques in Python
Short answer.Data extraction is collecting needed data from sources such as files, web services, web pages, databases and documents, so that it can be processed.
Asked 1 time in 2023 · Unit 3
From the papers
“What is Data Extraction? Explain Data Extraction Tools and Techniques available in python.” (November 2023)
Write these points
Techniques and tools
Source
Tool
CSV, JSON
csv, json, pandas
Excel
pandas with openpyxl
Web API
requests or urllib
HTML pages
BeautifulSoup, Scrapy
Pages built by JavaScript
Selenium or Playwright
Database
sqlite3, SQLAlchemy
PDF text
pypdf, pdfplumber
Text patterns
re
Good practice
Prefer an official API.
Follow site terms, robots rules, rate limits and privacy law.
Handle errors and missing values.
Save raw data and record the time and source.
Calling an API (illustrative).
r = requests.get(url, timeout=10), then r.raise_for_status() and data = r.json().
The timeout stops the program from waiting for ever.
The status check stops an error page from being treated as data.
Real-life example
A reporter gathers facts from records, interviews and notice boards, using a suitable method for each. Extraction does this with code.
Figure: data extraction in Python
Difference between API and web scraping
Point
API
Scraping
Same or opposite
Gets web data
Yes
Yes
Same
Format
Structured
HTML to be parsed
Opposite
Breaks when page design changes
Rarely
Often
Opposite
Must respect terms
Yes
Yes
Same
Exam tip. Give the source and tool table with one code line.
Short answer. Python handles text with built-in string methods and re. For language tasks it has libraries such as NLTK, spaCy, TextBlob, Gensim and scikit-learn.
Asked 1 time in 2023 · Unit 2
From the papers
“Explain the different libraries available for Text processing in Python.” (November 2023)
Write these points
Library
Main use
str methods
split, strip, lower, replace
re
Pattern search and cleaning
NLTK
Tokenising, stemming, stop words, learning NLP
spaCy
Fast pipelines: tags, parsing, named entities
TextBlob
Simple sentiment and other quick tasks
Gensim
Topic models and word vectors
scikit-learn
Bag of words and TF-IDF features
Hugging Face Transformers
Pretrained language models
Typical steps
Lower case where suitable.
Remove noise.
Tokenise.
Remove stop words only if they do not carry meaning for the task.
Short answer. Use NumPy's linalg.inv. A matrix has an inverse only if it is square and not singular (its determinant is not zero).
Asked 1 time in 2023 · Unit 3
From the papers
“Write a Python code to inverse the matrix using Python libraries.” (November 2023)
Write these points
Program
import numpy as np
A = np.array([[4.0, 7.0], [2.0, 6.0]])
try:
inv = np.linalg.inv(A)
except np.linalg.LinAlgError:
raise SystemExit('Matrix has no inverse')
print(inv)
print(np.allclose(A @ inv, np.eye(2)))
Output
[[ 0.6 -0.7]
[-0.2 0.4]]
True
Points
Check with A times inverse = identity.
Use allclose because of rounding.
For solving Ax = b use np.linalg.solve(A, b), which is better than forming the inverse.
A nearly singular matrix can give unreliable numbers. np.linalg.cond helps to check.
Check by hand.
Determinant = 4 x 6 - 7 x 2 = 10.
Inverse = (1/10) x [[6, -7], [-2, 4]], which matches the output.
Real-life example
An inverse is like an undo button. If one action scrambles two numbers, the inverse brings them back. Some actions lose information and cannot be undone.
Figure: inverting a matrix safely
Difference between inv and solve
Point
inv
solve
Same or opposite
Part of numpy.linalg
Yes
Yes
Same
Returns
The inverse matrix
The solution x
Opposite
Preferred for Ax = b
No
Yes
Opposite
Fails for singular matrices
Yes
Yes
Same
Exam tip. Write the program, the output and the determinant check.
Short answer. Use Matplotlib's bar function with the subjects on the x axis and the marks on the y axis.
Asked 1 time in 2023 · Unit 3
From the papers
“Write a Python program to display a bar chart for the below marks scored by the student: English 69, Hindi 90, Maths 76, Science 88, GK 91.” (November 2023)
Write these points
Program
import matplotlib.pyplot as plt
subjects = ['English', 'Hindi', 'Maths', 'Science', 'GK']
marks = [69, 90, 76, 88, 91]
bars = plt.bar(subjects, marks, color='steelblue')
plt.bar_label(bars)
plt.ylim(0, 100)
plt.xlabel('Subject')
plt.ylabel('Marks')
plt.title('Marks scored by the student')
plt.tight_layout()
plt.show()
Explanation
plt.bar draws one bar per subject.
bar_label writes the value above each bar (needs Matplotlib 3.4 or later).
ylim keeps the scale from 0 to 100 and starting at 0 keeps bars honest.
Labels and title make the chart readable.
Reading the chart.
Highest: GK 91. Lowest: English 69.
Total = 414 and the average is 82.8.
Real-life example
Lining up five water bottles filled to different heights shows at once which is fullest. A bar chart does this with marks.
Figure: the expected bar chart
Difference between Bar chart and histogram
Point
Bar chart
Histogram
Same or opposite
Uses bars
Yes
Yes
Same
x axis
Separate categories
Number ranges
Opposite
Height shows
A value
Count in a range
Opposite
Made with Matplotlib
Yes
Yes
Same
Exam tip. Include axis labels and title. Sketch the chart too.
What are the most important topics in Predictive Analytics?
By how often they were asked in the papers on this site: Steps for a successful data product strategy (1 times); Types of data products by functionality (1 times); Converting a string to a JSON array (1 times); Reading CSV and JSON files in Python (1 times); Data extraction tools and techniques in Python (1 times).
How were these Predictive Analytics important questions chosen?
Each topic was counted from the questions in the past papers listed on this site (2023). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.
Is there a PDF of Predictive Analytics important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Predictive Analytics is free to download from this page.
The 10 most repeated topics of Predictive Analytics (AL-702-C) for RGPV B.Tech CSE-AIML semester 7, counted from the previous year papers on this site.