Skip to content
SmartFigureEduExam kits ₹19

CS3352 · 5 papers compared

CS 3352 Foundations of Data Science important questions

CS3352 exam kitModel answers + all papers, 1 PDF

Exam kit

Needed by the payment gateway. Not shared or used for marketing.

Secure payment by Cashfree Payments (UPI, cards, net banking). One-time payment, no subscription. The payment page may show StrangerYaar, the business that processes payments for SmartFigure.Terms · Refunds

ANNA UNIVERSITY · REGULATION 2021

Important Questions

CS 3352 — FOUNDATIONS OF DATA SCIENCE

Third Semester · Computer Science and Engineering

Prepared from 5 previous year question papers (Nov/Dec 2024, Apr/May 2024, Nov/Dec 2023, Apr/May 2023, Nov/Dec 2022). Every question was compared with the others of its unit; the ones asked more than once come first. "Most asked topics" shows in how many different exams a syllabus topic had a question.

UNIT 1Introduction

Most asked topics: facets of data (2/5) · Data Science Process: Overview (2/5) · build the model (2/5) · Retrieving data (1/5) · Exploratory Data analysis (1/5) · Data Mining (1/5)

Part A · 2 marks

  1. 1.
    Give an overview of common errors?

    Asked 2 times: Nov/Dec 2023, Nov/Dec 2022

    (2)
  2. 2.
    Discern the difference between data analytics and data science.

    Asked in Nov/Dec 2024

    (2)
  3. 3.
    Give an approach to solve any data analytics based project.

    Asked in Nov/Dec 2024

    (2)
  4. 4.
    How missing values present in a dataset are treated during data analysis phase?

    Asked in Apr/May 2024

    (2)
  5. 5.
    Identify and write down various data analytic challenges faced in the conventional system.

    Asked in Apr/May 2024

    (2)
  6. 6.
    What is Structured data?

    Asked in Nov/Dec 2023

    (2)

Part B · 13 marks

  1. 1.
    Explain the different facets of data with example.

    Asked 2 times: Nov/Dec 2023, Nov/Dec 2022

    Free sample · model answer from the exam kit

    In data science and big data, data comes in many different forms. Each form is called a facet of data, and each needs different tools and techniques to store and analyse it. The main facets are listed below.

    1. Structured data

    Data that has a fixed data model and resides in fixed fields within a record, usually in rows and columns of a table. It is easy to store in a relational database and to query with SQL or process in Excel.

    Example: a student table with columns RegNo, Name, Dept, CGPA.

    2. Unstructured data

    Data that does not fit a fixed data model because its content is context-specific or varying. It is hard to process automatically.

    Example: e-mails, free-text feedback, Word documents. An e-mail has a few structured fields (sender, date), but the body text is unstructured.

    3. Natural language

    A special type of unstructured data. Processing it needs knowledge of linguistics and Natural Language Processing (NLP) techniques such as entity recognition, topic recognition, summarisation and sentiment analysis. Models trained in one domain do not generalise well to another.

    Example: tweets, product reviews, chat messages.

    4. Machine-generated data

    Data created automatically by a computer, process, application or machine without human intervention. It is produced in very high volume and speed, so scalable tools are needed.

    Example: web server logs, call detail records, network event logs, IoT sensor readings.

    5. Graph-based or network data

    Data that focuses on the relationship (adjacency) between objects. It is stored as nodes, edges and properties and is queried with graph databases and query languages such as SPARQL or Cypher (Neo4j).

    Example: a social network where people are nodes and "friend of" is an edge; it can be used to find shortest paths or influential persons.

    Draw: A small social graph with five nodes labelled Arun, Bala, Chitra, Divya, Ezhil. Edges: Arun-Bala, Arun-Chitra, Bala-Divya, Chitra-Divya, Divya-Ezhil. Caption: "Graph data: nodes = people, edges = friendship".

    6. Audio, image and video

    Multimedia data types that are very challenging for a computer. Recognising objects in pictures or words in speech, which is easy for humans, needs deep learning and large computing power.

    Example: CCTV video for face recognition, speech recordings for voice assistants, MRI images for diagnosis.

    7. Streaming data

    Data that flows into the system continuously when an event happens, instead of being loaded in batches. It must be processed in real time.

    Example: live stock market prices, "what's trending" on Twitter, live sports scores.

    Summary

    • Structured: tables, SQL databases.
    • Unstructured and natural language: text documents, reviews.
    • Machine-generated: logs, sensor data.
    • Graph: social networks.
    • Audio, image, video: multimedia.
    • Streaming: real-time feeds.

    Recognising the facet of the data is the first step in choosing the right storage, preparation and modelling technique.

    The CS3352 exam kit has model answers like this for 32 of these questions.

    (13)
  2. 2.
    (i) Identify and list down various data analytic challenges faced in the conventional system. Explain about any two challenges in detail. (ii) Explain in brief about Exploratory Data Analysis.

    Asked in Nov/Dec 2024

    (13)
  3. 3.
    Explain in brief about the following measures adopted in describing the characteristics of data. - measures of central tendency - measures of variability - frequency distribution

    Asked in Nov/Dec 2024

    (13)
  4. 4.
    (i) Suppose there is a dataset having variables with missing values of more than 30%, how will you deal with such dataset? (ii) List down the various feature selection methods for selecting the right variables for building efficient predictive models. Explain about any two selection methods.

    Asked in Apr/May 2024

    (13)

UNIT 2Describing Data

Most asked topics: Normal Distributions and Standard (z) Scores (3/5) · Types of Data (2/5) · Types of Variables (1/5)

Part A · 2 marks

  1. 1.
    Suppose there is a dataset having variables with missing values of more than 30%, paraphrase about how to deal with such a dataset?

    Asked in Nov/Dec 2024

    (2)
  2. 2.
    What does a "normal distribution" mean in statistics? Give an example. How to identify if the distribution is normal?

    Asked in Nov/Dec 2024

    (2)
  3. 3.
    Will treating categorical variables as continuous variables result in a better predictive model? Justify your answer.

    Asked in Apr/May 2024

    (2)
  4. 4.
    Issue: Feeding data which has variables correlated to one another is not a good statistical practice, since we are providing multiple weightage to the same type of data. Solution: Correlation Analysis. Show how such issues are prevented by correlation analysis technique. Justify with a small instance dataset.

    Asked in Apr/May 2024

    (2)
  5. 5.
    Explain the types of data.

    Asked in Nov/Dec 2023

    (2)
  6. 6.
    Define median with example.

    Asked in Nov/Dec 2023

    (2)

Part B · 13 marks

  1. 1.
    (i) Indicate whether each of the following distributions is positively or negatively skewed. The distribution of (1) Incomes of taxpayers have a mean of Rs:12,000/- and a median of Rs: 13,450/-. (3) (2) GPAs for all students at some college have a mean of 7.82 and a median of 8.21. (3) (ii) During their first swim through a water maze, 15 laboratory rats made the following number of errors (blind alleyway entrances): 15, 3, 6, 12, 8, 1, 6, 4, 3, 2, 2, 1 and 10. (1) Find the mode, median, and mean for these data. …

    Asked 2 times: Nov/Dec 2024, Apr/May 2024

    (13)
  2. 2.
    (i) What does a z-score reveal? How to interpret it? Assume that the grades on a Statistics mid semester exam at a college have a mean of mu = 63, and a standard deviation of sigma = 3.0. Advaith scored 65 on the exam. Find the z-score for Advaith's exam grade round to two decimal places. (ii) Assume that the burning times of electric light bulbs approximate a normal curve with a mean of 1152 hours and a standard deviation of 114 hours. …

    Asked in Nov/Dec 2024

    (13)
  3. 3.
    (i) Assume that SAT math scores approximate a normal curve with a mean of 500 and a standard deviation of 100. Sketch a normal curve and shade in the target area(s) described by each of the following statements: - More than 570 (2) - Less than 515 (2) - Between 520 and 540 (2) - Convert to z scores and find the target areas specific to the above values. (1) (ii) Assume that the burning times of electric light bulbs approximate a normal curve with a mean of 1200 hours and a standard deviation of 120 hours. …

    Asked in Apr/May 2024

    (13)
  4. 4.
    (i) Explain Normal curve and Z-score. (ii) Using standard normal curve table, find the proportion of the total area identified with the following statements. (1) above a z score of 1.80 (2) between the mean and a z score of 1.65 (3) between z scores of 0 and -1.96

    Asked in Nov/Dec 2023

    (13)

UNIT 3Describing Relationships

Most asked topics: Correlation (5/5) · Regression (5/5) · Scatter plots (3/5) · regression towards the mean (2/5) · correlation coefficient for quantitative data (1/5) · regression line (1/5)

Part A · 2 marks

  1. 1.
    List down the various types of multiple regression.

    Asked in Nov/Dec 2024

    (2)
  2. 2.
    List down the properties of correlation.

    Asked in Nov/Dec 2024

    (2)
  3. 3.
    State the purpose of adding additional quantitative and/or categorical explanatory variables to any developed linear regression model. Justify with an example.

    Asked in Apr/May 2024

    (2)
  4. 4.
    Give an example of a data set with a non-Gaussian distribution.

    Asked in Apr/May 2024

    (2)
  5. 5.
    Define multiple regressions.

    Asked in Nov/Dec 2023

    (2)
  6. 6.
    Define regression towards the mean.

    Asked in Nov/Dec 2023

    (2)

Part B · 13 marks

  1. 1.
    (i) In Statistics, what happens when the goodness of fit test score is low? (ii) Given the following dataset of employee, Using regression analysis, find the expected salary of an employee if the age is 48. [Table: Age, Salary: 52, 48500; 46, 46450; 39, 38750; 41, 41500; 59, 55500]

    Asked in Nov/Dec 2024

    (13)
  2. 2.
    (i) Explain in detail about fitting a Multiple Regression model. Is the Multiple Regression model a good fit? Outline the cardinal parameters to be considered while fitting the model. (ii) Define the terms correlation coefficient (r) and its square (r^2). What is the coefficient of determination (R^2)? When to use each of them and outline their differences.

    Asked in Nov/Dec 2024

    (13)
  3. 3.
    (i) In Statistics, highlight the impact when the goodness of fit test score is low? (ii) Given the following dataset of employee, Using regression analysis, find the expected salary of an employee if the age is 45. [Table: Age, Salary: 54, 67000; 42, 43000; 49, 55000; 57, 71000; 35, 25000]

    Asked in Apr/May 2024

    (13)
  4. 4.
    (i) Define autocorrelation and how is it calculated? What does the negative correlation convey? (ii) What is the philosophy of Logistic regression? What kind of model it is? What does logistic Regression predict? Tabulate the cardinal differences of Linear and Logistic Regression.

    Asked in Apr/May 2024

    (13)

UNIT 4Python Libraries for Data Wrangling

Most asked topics: aggregations (1/5) · Data manipulation with Pandas (1/5) · missing data (1/5)

Part A · 2 marks

  1. 1.
    With appropriate syntax show how to create hierarchical data from the existing data frame.

    Asked in Nov/Dec 2024

    (2)
  2. 2.
    Write a python code snippet that creates DataFrame objects for the following list of dictionaries. D1 = [{'a': 1, 'b': 2}, {'b': 3, 'c': 4}] D2 = {'a': i, 'b': (4 * i)/2.3} where i belongs to the range (0,4].

    Asked in Nov/Dec 2024

    (2)
  3. 3.
    Under what circumstances, the pivot_table( ) in pandas is used?

    Asked in Apr/May 2024

    (2)
  4. 4.
    Using appropriate data visualization modules develop a python code snippet that generates a simple sinusoidal wave in an empty gridded axes?

    Asked in Apr/May 2024

    (2)
  5. 5.
    What are the key properties of Pearson correlation coefficient?

    Asked in Nov/Dec 2023

    (2)
  6. 6.
    Summarize some built - in Pandas aggregations?

    Asked in Nov/Dec 2023

    (2)

Part B · 13 marks

  1. 1.
    (i) Write down a suitable example to drop Null values in a DataFrame using pandas. (ii) How to fill null values in Pandas. Give a suitable example. (iii) Give a code snippet to merge two Dataframes. (iv) Explain in brief about slicing a Dataframe into multiple pieces in pandas. Give a suitable example.

    Asked in Nov/Dec 2024

    (3+3+3+4)
  2. 2.
    (i) Explain in brief about pandas MultiIndex. Give the example code snippet. (ii) Explain in brief about one-to-one, many-to-one and many-to-many joins in Pandas Data manipulation. Give sample working codes for the same.

    Asked in Nov/Dec 2024

    (13)
  3. 3.
    Define Dictionary in Python. Do the following operations on dictionaries. (i) Initialize two dictionaries (D1 and D2) with key and value pairs. (ii) Compare those two dictionaries with master key list 'M' and print the missing keys. (iii) Find keys that are in D1 but NOT in D2. (iv) Merge D1 and D2 and create D3 using expressions.

    Asked in Apr/May 2024

    (13)
  4. 4.
    (i) How to create hierarchical data from the existing data frame? (ii) How to use group by with 2 columns in data set? Give a python code snippet.

    Asked in Apr/May 2024

    (13)

UNIT 5Data Visualization

Most asked topics: Scatter plots (3/5) · Histograms (3/5) · Visualization with Seaborn (2/5) · Line plots (1/5) · text and annotation (1/5) · three dimensional plotting (1/5)

Part A · 2 marks

  1. 1.
    Write a python code snippet that generates a time-series graph representing COVID-19 incidence cases for a particular week. [Table: Day1 = 71, Day2 = 8, Day3 = 92, Day4 = 41, Day5 = 23, Day6 = 5, Day7 = 2]

    Asked 2 times: Nov/Dec 2024, Apr/May 2024

    (2)
  2. 2.
    With suitable examples brief about the following indexing attributes: loc, iloc, and ix.

    Asked in Nov/Dec 2024

    (2)
  3. 3.
    Write a python code snippet that draws a histogram for the following list of positive numbers. [7, 18, 9, 44, 2, 5, 89, 91, 11, 6, 77, 85, 91, 6, 55]

    Asked in Apr/May 2024

    (2)
  4. 4.
    Explain partial sort.

    Asked in Nov/Dec 2023

    (2)
  5. 5.
    Give a summary about the comparison operators.

    Asked in Nov/Dec 2023

    (2)
  6. 6.
    State the two possible options in IPython notebook used to embed graphics directly in the notebook.

    Asked in Apr/May 2023

    (2)

Part B · 13 marks

  1. 1.
    Write a code snippet that projects our globe as a 2-D flat surface (using Cylindrical project) and convey information about the location of any three major Indian cities in the map (using scatter plot).

    Asked 2 times: Nov/Dec 2024, Apr/May 2024

    (13)
  2. 2.
    (i) Write a working code that performs a simple Gaussian process regression (GPR), using the Scikit-Learn API. (ii) Briefly explain about visualization with Seaborn. Give an example working code segment that represents a 2D kernel density plot for any data.

    Asked 2 times: Nov/Dec 2024, Apr/May 2024

    (13)
  3. 3.
    Explain the different types of joins in python.

    Asked in Nov/Dec 2023

    (13)
  4. 4.
    Explain various features of Matplotlib platform used for data visualization and illustrate its challenges.

    Asked in Nov/Dec 2023

    (13)

PART CAny unit

Part C · 15 marks

  1. 1.
    A URL Server wants to consolidate a history of websites visited by an user 'U' Every visited website information is stored in a 2-tuple format viz., (website_id, Duration_of _visit) in the URL cache. Using split, apply and combine operations (GroupBy), devise a code snippet that consolidate the website history and find out the website whose duration of visit is maximum. Example: Input: [(4,2), (5,1), (4,3), (1,4), (7,3), (5,2), (1,1), (7,1)] Output: [(4,5), (5,3), (1,5), (7,4)]. …

    Asked 2 times: Nov/Dec 2024, Apr/May 2024

    (15)
  2. 2.
    Assume that two datasets in the form of string arrays D1 and D2 are provided. A string S2 is a subset of string S1 if every letter in S2 occurs in S1 including multiplicity. For example, "wrr" is a subset of "warrior" but is not a subset of "world". A string S1 from D1 is universal if for every string S2 in D2, S2 is a subset of S1. Return an array of all the universal strings in D1. The expected output may be returned in any order. …

    Asked in Nov/Dec 2024

    (15)
  3. 3.
    Given a unsorted multi indexes that represents the distance between two cities, write a python code snippet using appropriate libraries to find the shortest distance between any two given cities. The following matrix representation can be used to create the data frame that can be served as an input for the prescribed program. [Matrix with rows and columns A, B, C, D, E: A: 0, 30, 24, 6, 13; B: 16, 0, 19, 5, 10; C: 7, 16, 0, 15, 12; D: 9, 17, 22, 0, 18; E: 21, 8, 9, 11, 0]

    Asked in Apr/May 2024

    (15)
  4. 4.
    Describe in detail about pivot table.

    Asked in Nov/Dec 2023

    (15)
  5. 5.
    Find the following for the given data set : Mean, Median, Mode, Variance, Standard Deviation and Skewness. [Table: Marks: 0-10, 10-20, 20-30, 30-40, 40-50, 50-60, 60-70, 70-80; No. of Students: 10, 40, 20, 0, 10, 40, 16, 14]

    Asked in Nov/Dec 2023

    (15)
  6. 6.
    (i) What is mode? Can there be distributions with no mode or more than one mode? The owner of a new car conducts six gas mileage tests and obtains the following results, expressed in miles per gallon: 26.3, 28.7, 27.4, 26.6. 27.4, 26.9. Find the mode for these data. (ii) What is median? Outline the steps to find the median and find the median for the following scores: first, set of five scores 2, 8,2,7,6 and second, set of six scores 3,8,9,3, 1,8 with steps.

    Asked in Apr/May 2023

    (15)

A question asked once is no guarantee for the next exam; cover the full CS3352 syllabus. Read the papers themselves:Nov/Dec 2024, Apr/May 2024, Nov/Dec 2023, Apr/May 2023, Nov/Dec 2022.