Skip to content
CS-605 · Data Analytics Lab/Important Questions

Data Analytics Lab (CS-605) - Important Questions

  1. Unit 27 Marks High Priority

    Explain the role of R as a data analytics tool. In your answer describe the R execution environment, the differences between base R and popular integrated development environments such as RStudio, how to install and manage packages, and the typical workflow for an R-based data analysis project.

    Core overview of Unit 2: features and ecosystem of R as a data analytics tool; foundational for practical lab tasks.

  2. Unit 27 Marks High Priority

    Demonstrate how to import and export common data formats in R. Provide example R code to read and write a CSV file, an Excel file, and an R serialized object. Explain advantages of each format and common issues to watch for (e.g., encodings, missing values, headers).

    Fundamental I/O operations required in almost every practical; frequently examined.

  3. Unit 210 Marks High Priority

    Describe the primary data structures in R: vector, factor, matrix, data.frame (or tibble), and list. For each structure give a short R code example showing how to create it, how to index/access elements, and a typical use-case in data analysis.

    Core data structures question; essential to manipulate data in R.

  4. Unit 214 Marks High Priority

    Using the tidyverse (dplyr) demonstrate the following data manipulation tasks on a sample data.frame: selecting a subset of columns, filtering rows based on a condition, creating a new calculated column, arranging (sorting) rows, grouping by a categorical variable and computing summary statistics. Provide the R code and explain each step briefly.

    Central practical skill for data transformation in R labs and exams; high priority.

  5. Unit 27 Marks Medium Priority

    Explain how to reshape datasets between wide and long formats in R. Provide example R code using tidyr functions (for example pivot_longer and pivot_wider) and describe when each transformation is appropriate in the context of data analysis.

    Reshaping data is commonly tested in lab practicals and short-answer questions.

  6. Unit 210 Marks High Priority

    Compare base R plotting and ggplot2 for exploratory visualization. Using a sample dataset, provide R code to produce a histogram, boxplot, and a scatter plot with a fitted regression line using ggplot2. Explain how to customize axis labels, title, and color by a grouping variable.

    Visualization basics are essential for EDA and often asked as applied tasks.

  7. Unit 27 Marks High Priority

    Describe methods to detect and handle missing values in R. Provide example R code that identifies missing values, removes rows with missing data, and imputes missing numeric values using mean and median imputation. Discuss pros and cons of each approach.

    Data cleaning is a frequent practical requirement; direct application in labs.

  8. Unit 27 Marks Medium Priority

    Write an R function that takes a numeric vector and returns a named list with the mean, median, standard deviation and number of missing values. Demonstrate the use of this function on a sample vector and show how to apply it to every numeric column of a data.frame using an apply/map function.

    Programming constructs and functional approaches are required for efficient R scripting.

  9. Unit 214 Marks High Priority

    Perform exploratory data analysis (EDA) in R on a given dataset. Your answer should include: calculation and interpretation of summary statistics for numeric and categorical variables, visualizations to show distributions and relationships (histogram, boxplot, scatter plot), identification of outliers and recommendations for preprocessing steps before modeling. Provide the R code snippets you would use for each task.

    EDA question combining summary statistics and visualization; aligns with common exam patterns.

  10. Unit 27 Marks Low Priority

    Explain how to create a reproducible analysis report using R Markdown. Describe how to include R code chunks, control chunk options (such as echo and results), knit the document to HTML or PDF, and save/share the analysis along with R session information.

    Reproducibility and reporting are practical skills occasionally assessed in lab exams.

Go to where you left off?

Quick Add to Notes

Save questions, your own notes and screenshots into notes filed by unit. It takes a free account.

Create free account

Have an account? Log in